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 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<Entity> |
BukkitConverters.getEntityConverter(World world)
Retrieve a converter for NMS entities and Bukkit entities.
|
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<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) |
static EquivalentConverter<NbtBase<?>> |
BukkitConverters.getNbtConverter()
Retrieve an equivalent converter for net.minecraft.server NBT classes and their wrappers.
|
static EquivalentConverter<WrappedWatchableObject> |
BukkitConverters.getWatchableObjectConverter()
Retrieve a converter for watchable objects and the respective wrapper.
|
static EquivalentConverter<WorldType> |
BukkitConverters.getWorldTypeConverter()
Retrieve a converter for Bukkit's world type enum and the NMS equivalent.
|
Modifier and Type | Method and Description |
---|---|
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) |