| Package | Description |
|---|---|
| com.comphenix.protocol.reflect | |
| com.comphenix.protocol.wrappers |
| Modifier and Type | Field and Description |
|---|---|
protected EquivalentConverter<TField> |
StructureModifier.converter |
| Modifier and Type | Method and Description |
|---|---|
protected void |
StructureModifier.initialize(Class targetType,
Class fieldType,
List<Field> data,
Map<Field,Integer> defaultFields,
EquivalentConverter<TField> converter,
Map<Class,StructureModifier> subTypeCache)
Initialize every field of this class.
|
protected void |
StructureModifier.initialize(Class targetType,
Class fieldType,
List<Field> data,
Map<Field,Integer> defaultFields,
EquivalentConverter<TField> converter,
Map<Class,StructureModifier> subTypeCache,
boolean useStructureCompiler)
Initialize every field of this class.
|
protected void |
StructureModifier.setConverter(EquivalentConverter<TField> converter)
Set the current object converter.
|
protected <T> StructureModifier<T> |
StructureModifier.withFieldType(Class fieldType,
List<Field> filtered,
Map<Field,Integer> defaults,
EquivalentConverter<T> converter)
Create a new structure modifier for the new field type.
|
<T> StructureModifier<T> |
StructureModifier.withType(Class fieldType,
EquivalentConverter<T> converter)
Retrieves a structure modifier that only reads and writes fields of a given type.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
BukkitConverters.IgnoreNullConverter<TType>
Represents a typical equivalence converter.
|
static class |
EnumWrappers.EnumConverter<T extends Enum<T>> |
| Modifier and Type | Method and Description |
|---|---|
static EquivalentConverter<MultiBlockChangeInfo[]> |
MultiBlockChangeInfo.getArrayConverter(ChunkCoordIntPair chunk) |
static <T> EquivalentConverter<Iterable<? extends T>> |
BukkitConverters.getArrayConverter(Class<?> genericItemType,
EquivalentConverter<T> itemConverter)
Retrieve an equivalent converter for an array of generic items.
|
static EquivalentConverter<org.bukkit.Material> |
BukkitConverters.getBlockConverter()
Retrieve a converter for block instances.
|
static EquivalentConverter<Integer> |
BukkitConverters.getBlockIDConverter()
Deprecated.
ID's are deprecated
|
static EquivalentConverter<EnumWrappers.ChatType> |
EnumWrappers.getChatTypeConverter() |
static EquivalentConverter<EnumWrappers.ChatVisibility> |
EnumWrappers.getChatVisibilityConverter() |
static EquivalentConverter<EnumWrappers.ClientCommand> |
EnumWrappers.getClientCommandConverter() |
static EquivalentConverter<EnumWrappers.CombatEventType> |
EnumWrappers.getCombatEventTypeConverter() |
static EquivalentConverter<Vector3F> |
Vector3F.getConverter() |
static EquivalentConverter<PlayerInfoData> |
PlayerInfoData.getConverter()
Used to convert between NMS PlayerInfoData and the wrapper instance.
|
static EquivalentConverter<MinecraftKey> |
MinecraftKey.getConverter() |
static EquivalentConverter<ChunkPosition> |
ChunkPosition.getConverter()
Used to convert between NMS ChunkPosition and the wrapper instance.
|
static EquivalentConverter<ChunkCoordIntPair> |
ChunkCoordIntPair.getConverter()
Used to convert between NMS ChunkPosition and the wrapper instance.
|
static EquivalentConverter<BlockPosition> |
BlockPosition.getConverter()
Used to convert between NMS ChunkPosition and the wrapper instance.
|
static EquivalentConverter<MultiBlockChangeInfo> |
MultiBlockChangeInfo.getConverter(ChunkCoordIntPair chunk) |
static EquivalentConverter<WrappedDataWatcher> |
BukkitConverters.getDataWatcherConverter()
Retrieve a converter for the NMS DataWatcher class and our wrapper.
|
static EquivalentConverter<EnumWrappers.Difficulty> |
EnumWrappers.getDifficultyConverter() |
static EquivalentConverter<EnumWrappers.Direction> |
EnumWrappers.getDirectionConverter() |
static EquivalentConverter<org.bukkit.potion.PotionEffectType> |
BukkitConverters.getEffectTypeConverter() |
static EquivalentConverter<EnumWrappers.PlayerAction> |
EnumWrappers.getEntityActionConverter() |
static EquivalentConverter<org.bukkit.entity.Entity> |
BukkitConverters.getEntityConverter(org.bukkit.World world)
Retrieve a converter for NMS entities and Bukkit entities.
|
static EquivalentConverter<EnumWrappers.EntityUseAction> |
EnumWrappers.getEntityUseActionConverter() |
static EquivalentConverter<EnumWrappers.NativeGameMode> |
EnumWrappers.getGameModeConverter() |
static <T extends Enum<T>> |
EnumWrappers.getGenericConverter(Class<T> enumClass)
Retrieve a generic enum converter for use with StructureModifiers.
|
static EquivalentConverter<EnumWrappers.Hand> |
EnumWrappers.getHandConverter() |
static <TType> EquivalentConverter<TType> |
BukkitConverters.getIgnoreNull(EquivalentConverter<TType> delegate)
Wraps a given equivalent converter in NULL checks, ensuring that such values are ignored.
|
static EquivalentConverter<EnumWrappers.ItemSlot> |
EnumWrappers.getItemSlotConverter() |
static EquivalentConverter<org.bukkit.inventory.ItemStack> |
BukkitConverters.getItemStackConverter()
Retrieve the converter used to convert NMS ItemStacks to Bukkit's ItemStack.
|
static <T> EquivalentConverter<List<T>> |
BukkitConverters.getListConverter(Class<?> genericItemType,
EquivalentConverter<T> itemConverter)
Retrieve an equivalent converter for a list of generic items.
|
static <T,U> EquivalentConverter<Map<T,U>> |
BukkitConverters.getMapConverter(Class<?> genericKeyType,
EquivalentConverter<T> keyConverter)
Retrieve an equivalent converter for a map of generic keys and primitive values.
|
static EquivalentConverter<NbtBase<?>> |
BukkitConverters.getNbtConverter()
Retrieve an equivalent converter for net.minecraft.server NBT classes and their wrappers.
|
static EquivalentConverter<EnumWrappers.Particle> |
EnumWrappers.getParticleConverter() |
static EquivalentConverter<EnumWrappers.PlayerDigType> |
EnumWrappers.getPlayerDiggingActionConverter() |
static EquivalentConverter<EnumWrappers.PlayerInfoAction> |
EnumWrappers.getPlayerInfoActionConverter() |
static EquivalentConverter<org.bukkit.potion.PotionEffect> |
BukkitConverters.getPotionEffectConverter()
Retrieve the converter used to convert between a PotionEffect and the equivalent NMS Mobeffect.
|
static EquivalentConverter<PacketType.Protocol> |
EnumWrappers.getProtocolConverter() |
static EquivalentConverter<EnumWrappers.ResourcePackStatus> |
EnumWrappers.getResourcePackStatusConverter() |
static <T> EquivalentConverter<Set<T>> |
BukkitConverters.getSetConverter(Class<?> genericItemType,
EquivalentConverter<T> itemConverter)
Retrieve an equivalent converter for a set of generic items.
|
static EquivalentConverter<EnumWrappers.SoundCategory> |
EnumWrappers.getSoundCategoryConverter() |
static EquivalentConverter<org.bukkit.Sound> |
BukkitConverters.getSoundConverter() |
static EquivalentConverter<EnumWrappers.TitleAction> |
EnumWrappers.getTitleActionConverter() |
static EquivalentConverter<EnumWrappers.ScoreboardAction> |
EnumWrappers.getUpdateScoreActionConverter() |
static EquivalentConverter<org.bukkit.util.Vector> |
BukkitConverters.getVectorConverter()
Retrieve the converter used to convert between a Vector and the equivalent NMS Vec3d.
|
static EquivalentConverter<WrappedWatchableObject> |
BukkitConverters.getWatchableObjectConverter()
Retrieve a converter for watchable objects and the respective wrapper.
|
static EquivalentConverter<EnumWrappers.WorldBorderAction> |
EnumWrappers.getWorldBorderActionConverter() |
static EquivalentConverter<org.bukkit.World> |
BukkitConverters.getWorldConverter()
Retrieve the converter used to convert between a NMS World and a Bukkit world.
|
static EquivalentConverter<org.bukkit.WorldType> |
BukkitConverters.getWorldTypeConverter()
Retrieve a converter for Bukkit's world type enum and the NMS equivalent.
|
static EquivalentConverter<WrappedAttribute> |
BukkitConverters.getWrappedAttributeConverter()
Retrieve a converter for wrapped attribute snapshots.
|
static EquivalentConverter<WrappedBlockData> |
BukkitConverters.getWrappedBlockDataConverter()
Retrieve a converter for wrapped block data.
|
static EquivalentConverter<WrappedChatComponent> |
BukkitConverters.getWrappedChatComponentConverter()
Retrieve a converter for wrapped chat components.
|
static EquivalentConverter<WrappedGameProfile> |
BukkitConverters.getWrappedGameProfileConverter()
Retrieve a converter for wrapped attribute snapshots.
|
static EquivalentConverter<WrappedServerPing> |
BukkitConverters.getWrappedServerPingConverter()
Retrieve the converter for the ServerPing packet in
PacketType.Status.Server#OUT_SERVER_INFO. |
static EquivalentConverter<WrappedStatistic> |
BukkitConverters.getWrappedStatisticConverter()
Retrieve the converter for a statistic.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<Class<?>,EquivalentConverter<Object>> |
BukkitConverters.getConvertersForGeneric()
Retrieve every converter that is associated with a generic class.
|
static Map<Class<?>,EquivalentConverter<Object>> |
BukkitConverters.getConvertersForSpecific()
Retrieve every converter that is associated with a specific class.
|
static Map<Class<?>,EquivalentConverter<?>> |
EnumWrappers.getFromNativeMap() |
static Map<Class<?>,EquivalentConverter<?>> |
EnumWrappers.getFromWrapperMap() |
| Modifier and Type | Method and Description |
|---|---|
static PacketConstructor.Unwrapper |
BukkitConverters.asUnwrapper(Class<?> nativeType,
EquivalentConverter<Object> converter)
Retrieve an equivalent unwrapper for the converter.
|
static <T> EquivalentConverter<Iterable<? extends T>> |
BukkitConverters.getArrayConverter(Class<?> genericItemType,
EquivalentConverter<T> itemConverter)
Retrieve an equivalent converter for an array of generic items.
|
static <TType> EquivalentConverter<TType> |
BukkitConverters.getIgnoreNull(EquivalentConverter<TType> delegate)
Wraps a given equivalent converter in NULL checks, ensuring that such values are ignored.
|
static <T> EquivalentConverter<List<T>> |
BukkitConverters.getListConverter(Class<?> genericItemType,
EquivalentConverter<T> itemConverter)
Retrieve an equivalent converter for a list of generic items.
|
static <T,U> EquivalentConverter<Map<T,U>> |
BukkitConverters.getMapConverter(Class<?> genericKeyType,
EquivalentConverter<T> keyConverter)
Retrieve an equivalent converter for a map of generic keys and primitive values.
|
static <T> EquivalentConverter<Set<T>> |
BukkitConverters.getSetConverter(Class<?> genericItemType,
EquivalentConverter<T> itemConverter)
Retrieve an equivalent converter for a set of generic items.
|
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.