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(java.lang.Class targetType,
java.lang.Class fieldType,
java.util.List<java.lang.reflect.Field> data,
java.util.Map<java.lang.reflect.Field,java.lang.Integer> defaultFields,
EquivalentConverter<TField> converter,
java.util.Map<java.lang.Class,StructureModifier> subTypeCache)
Initialize every field of this class.
|
protected void |
StructureModifier.initialize(java.lang.Class targetType,
java.lang.Class fieldType,
java.util.List<java.lang.reflect.Field> data,
java.util.Map<java.lang.reflect.Field,java.lang.Integer> defaultFields,
EquivalentConverter<TField> converter,
java.util.Map<java.lang.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(java.lang.Class fieldType,
java.util.List<java.lang.reflect.Field> filtered,
java.util.Map<java.lang.reflect.Field,java.lang.Integer> defaults,
EquivalentConverter<T> converter)
Create a new structure modifier for the new field type.
|
<T> StructureModifier<T> |
StructureModifier.withType(java.lang.Class fieldType,
EquivalentConverter<T> converter)
Retrieves a structure modifier that only reads and writes fields of a given type.
|
Modifier and Type | Method and Description |
---|---|
static <T> EquivalentConverter<java.lang.Iterable<? extends T>> |
BukkitConverters.getArrayConverter(java.lang.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<EnumWrappers.ChatVisibility> |
EnumWrappers.getChatVisibilityConverter() |
static EquivalentConverter<EnumWrappers.ClientCommand> |
EnumWrappers.getClientCommandConverter() |
static EquivalentConverter<ChunkCoordIntPair> |
ChunkCoordIntPair.getConverter()
Used to convert between NMS ChunkPosition and the wrapper instance.
|
static EquivalentConverter<ChunkPosition> |
ChunkPosition.getConverter()
Used to convert between NMS ChunkPosition and the wrapper instance.
|
static EquivalentConverter<WrappedDataWatcher> |
BukkitConverters.getDataWatcherConverter()
Retrieve a converter for the NMS DataWatcher class and our wrapper.
|
static EquivalentConverter<EnumWrappers.Difficulty> |
EnumWrappers.getDifficultyConverter() |
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 <TType> EquivalentConverter<TType> |
BukkitConverters.getIgnoreNull(EquivalentConverter<TType> delegate)
Wraps a given equivalent converter in NULL checks, ensuring that such values are ignored.
|
static EquivalentConverter<org.bukkit.inventory.ItemStack> |
BukkitConverters.getItemStackConverter()
Retrieve the converter used to convert NMS ItemStacks to Bukkit's ItemStack.
|
static <T> EquivalentConverter<java.util.List<T>> |
BukkitConverters.getListConverter(java.lang.Class<?> genericItemType,
EquivalentConverter<T> itemConverter)
Retrieve an equivalent converter for a list of generic items.
|
static <T,U> EquivalentConverter<java.util.Map<T,U>> |
BukkitConverters.getMapConverter(java.lang.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<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<WrappedWatchableObject> |
BukkitConverters.getWatchableObjectConverter()
Retrieve a converter for watchable objects and the respective wrapper.
|
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<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 java.util.Map<java.lang.Class<?>,EquivalentConverter<java.lang.Object>> |
BukkitConverters.getConvertersForGeneric()
Retrieve every converter that is associated with a generic class.
|
static java.util.Map<java.lang.Class<?>,EquivalentConverter<java.lang.Object>> |
BukkitConverters.getConvertersForSpecific()
Retrieve every converter that is associated with a specific class.
|
static java.util.Map<java.lang.Class<?>,EquivalentConverter<?>> |
EnumWrappers.getFromNativeMap() |
static java.util.Map<java.lang.Class<?>,EquivalentConverter<?>> |
EnumWrappers.getFromWrapperMap() |
Modifier and Type | Method and Description |
---|---|
static PacketConstructor.Unwrapper |
BukkitConverters.asUnwrapper(java.lang.Class<?> nativeType,
EquivalentConverter<java.lang.Object> converter)
Retrieve an equivalent unwrapper for the converter.
|
static <T> EquivalentConverter<java.lang.Iterable<? extends T>> |
BukkitConverters.getArrayConverter(java.lang.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<java.util.List<T>> |
BukkitConverters.getListConverter(java.lang.Class<?> genericItemType,
EquivalentConverter<T> itemConverter)
Retrieve an equivalent converter for a list of generic items.
|
static <T,U> EquivalentConverter<java.util.Map<T,U>> |
BukkitConverters.getMapConverter(java.lang.Class<?> genericKeyType,
EquivalentConverter<T> keyConverter)
Retrieve an equivalent converter for a map of generic keys and primitive values.
|