| Modifier and Type | Field and Description |
|---|---|
protected StructureModifier<Object> |
PacketContainer.structureModifier |
| Modifier and Type | Method and Description |
|---|---|
StructureModifier<List<WrappedAttribute>> |
PacketContainer.getAttributeCollectionModifier()
Retrieves a read/write structure for collections of attribute snapshots.
|
StructureModifier<WrappedBlockData> |
PacketContainer.getBlockData()
Retrieves a read/write structure for BlockData in Minecraft 1.8.
|
StructureModifier<List<BlockPosition>> |
PacketContainer.getBlockPositionCollectionModifier()
Retrieves a read/write structure for collections of chunk positions.
|
StructureModifier<BlockPosition> |
PacketContainer.getBlockPositionModifier()
Retrieves a read/write structure for block positions.
|
StructureModifier<org.bukkit.Material> |
PacketContainer.getBlocks()
Retrieves a read/write structure for block fields.
|
StructureModifier<Boolean> |
PacketContainer.getBooleans()
Retrieves a read/write structure for every boolean field.
|
StructureModifier<byte[]> |
PacketContainer.getByteArrays()
Retrieves a read/write structure for every byte array field.
|
StructureModifier<Byte> |
PacketContainer.getBytes()
Retrieves a read/write structure for every byte field.
|
StructureModifier<WrappedChatComponent[]> |
PacketContainer.getChatComponentArrays()
Retrieves a read/write structure for arrays of chat components.
|
StructureModifier<WrappedChatComponent> |
PacketContainer.getChatComponents()
Retrieves a read/write structure for chat components in Minecraft 1.7.2.
|
StructureModifier<EnumWrappers.ChatVisibility> |
PacketContainer.getChatVisibilities()
Retrieve a read/write structure for the ChatVisibility enum in 1.7.2.
|
StructureModifier<ChunkCoordIntPair> |
PacketContainer.getChunkCoordIntPairs()
Retrieves a read/write structure for wrapped ChunkCoordIntPairs.
|
StructureModifier<EnumWrappers.ClientCommand> |
PacketContainer.getClientCommands()
Retrieve a read/write structure for the ClientCommand enum in 1.7.2.
|
StructureModifier<EnumWrappers.CombatEventType> |
PacketContainer.getCombatEvents()
Retrieve a read/write structure for the CombatEventType enum in 1.8.
|
StructureModifier<WrappedDataWatcher> |
PacketContainer.getDataWatcherModifier()
Retrieves a read/write structure for data watchers.
|
StructureModifier<EnumWrappers.Difficulty> |
PacketContainer.getDifficulties()
Retrieve a read/write structure for the Difficulty enum in 1.7.2.
|
StructureModifier<EnumWrappers.Direction> |
PacketContainer.getDirections()
Retrieve a read/write structure for the Direction enum in 1.10.
|
StructureModifier<Double> |
PacketContainer.getDoubles()
Retrieves a read/write structure for every double field.
|
StructureModifier<org.bukkit.potion.PotionEffectType> |
PacketContainer.getEffectTypes()
Retrieve a read/write structure for the MobEffectList class in 1.9.
|
StructureModifier<org.bukkit.entity.Entity> |
PacketContainer.getEntityModifier(PacketEvent event)
Retrieves a read/write structure for entity objects.
|
StructureModifier<org.bukkit.entity.Entity> |
PacketContainer.getEntityModifier(org.bukkit.World world)
Retrieves a read/write structure for entity objects.
|
StructureModifier<EnumWrappers.EntityUseAction> |
PacketContainer.getEntityUseActions()
Retrieve a read/write structure for the EntityUse enum in 1.7.2.
|
<T extends Enum<T>> |
PacketContainer.getEnumModifier(Class<T> enumClass,
Class<?> nmsClass)
Retrieve a read/write structure for an enum.
|
<T extends Enum<T>> |
PacketContainer.getEnumModifier(Class<T> enumClass,
int index)
Retrieve a read/write structure for an enum.
|
StructureModifier<Float> |
PacketContainer.getFloat()
Retrieves a read/write structure for every float field.
|
StructureModifier<EnumWrappers.NativeGameMode> |
PacketContainer.getGameModes()
Retrieve a read/write structure for the NativeGameMode enum in 1.7.2.
|
StructureModifier<WrappedGameProfile> |
PacketContainer.getGameProfiles()
Retrieves a read/write structure for game profiles in Minecraft 1.7.2.
|
StructureModifier<EnumWrappers.Hand> |
PacketContainer.getHands()
Retrieve a read/write structure for the Hand enum in 1.9.
|
StructureModifier<int[]> |
PacketContainer.getIntegerArrays()
Retrieves a read/write structure for every int array field.
|
StructureModifier<Integer> |
PacketContainer.getIntegers()
Retrieves a read/write structure for every integer field.
|
StructureModifier<org.bukkit.inventory.ItemStack[]> |
PacketContainer.getItemArrayModifier()
Retrieves a read/write structure for arrays of ItemStacks.
|
StructureModifier<List<org.bukkit.inventory.ItemStack>> |
PacketContainer.getItemListModifier()
Retrieves a read/write structure for lists of ItemStacks.
|
StructureModifier<org.bukkit.inventory.ItemStack> |
PacketContainer.getItemModifier()
Retrieves a read/write structure for ItemStack.
|
StructureModifier<EnumWrappers.ItemSlot> |
PacketContainer.getItemSlots()
Retrieve a read/write structure for the ItemSlot enum in 1.9.
|
StructureModifier<List<NbtBase<?>>> |
PacketContainer.getListNbtModifier()
Retrieves a read/write structure for lists of NBT classes.
|
StructureModifier<Long> |
PacketContainer.getLongs()
Retrieves a read/write structure for every long field.
|
StructureModifier<Object> |
PacketContainer.getModifier()
Retrieves the generic structure modifier for this packet.
|
StructureModifier<MultiBlockChangeInfo[]> |
PacketContainer.getMultiBlockChangeInfoArrays()
Retrieves a read/write structure for MultiBlockChangeInfo arrays in Minecraft 1.8.
|
StructureModifier<NbtBase<?>> |
PacketContainer.getNbtModifier()
Retrieves a read/write structure for NBT classes.
|
StructureModifier<EnumWrappers.Particle> |
PacketContainer.getParticles()
Retrieve a read/write structure for the Particle enum in 1.8.
|
StructureModifier<EnumWrappers.PlayerAction> |
PacketContainer.getPlayerActions()
Retrieve a read/write structure for the PlayerAction enum in 1.8.
|
StructureModifier<EnumWrappers.PlayerDigType> |
PacketContainer.getPlayerDigTypes()
Retrieve a read/write structure for the PlayerDigType enum in 1.8.
|
StructureModifier<EnumWrappers.PlayerInfoAction> |
PacketContainer.getPlayerInfoAction()
Retrieve a read/write structure for the PlayerInfo enum in 1.8.
|
StructureModifier<List<PlayerInfoData>> |
PacketContainer.getPlayerInfoDataLists()
Retrieve a read/write structure for the PlayerInfoData list fields in the following packet:
PacketType.Play.Server#PLAYER_INFO
|
StructureModifier<List<ChunkPosition>> |
PacketContainer.getPositionCollectionModifier()
Retrieves a read/write structure for collections of chunk positions.
|
StructureModifier<ChunkPosition> |
PacketContainer.getPositionModifier()
Retrieves a read/write structure for chunk positions.
|
StructureModifier<PacketType.Protocol> |
PacketContainer.getProtocols()
Retrieve a read/write structure for the Protocol enum in 1.7.2.
|
StructureModifier<EnumWrappers.ResourcePackStatus> |
PacketContainer.getResourcePackStatus()
Retrieve a read/write structure for the ResourcePackStatus enum in 1.8.
|
StructureModifier<EnumWrappers.ScoreboardAction> |
PacketContainer.getScoreboardActions()
Retrieve a read/write structure for the ScoreboardAction enum in 1.8.
|
StructureModifier<WrappedServerPing> |
PacketContainer.getServerPings()
Retrieve a read/write structure for the ServerPing fields in the following packet:
PacketType.Status.Server#OUT_SERVER_INFO
|
StructureModifier<Short> |
PacketContainer.getShorts()
Retrieves a read/write structure for every short field.
|
StructureModifier<EnumWrappers.SoundCategory> |
PacketContainer.getSoundCategories()
Retrieve a read/write structure for the SoundCategory enum in 1.9.
|
StructureModifier<org.bukkit.Sound> |
PacketContainer.getSoundEffects()
Retrieve a read/write structure for the SoundEffect enum in 1.9.
|
<T> StructureModifier<T> |
PacketContainer.getSpecificModifier(Class<T> primitiveType)
Retrieves a read/write structure for every field with the given type.
|
StructureModifier<Map<WrappedStatistic,Integer>> |
PacketContainer.getStatisticMaps()
Retrieve a read/write structure for maps of statistics.
|
StructureModifier<String[]> |
PacketContainer.getStringArrays()
Retrieves a read/write structure for every String array field.
|
StructureModifier<String> |
PacketContainer.getStrings()
Retrieves a read/write structure for every String field.
|
StructureModifier<EnumWrappers.TitleAction> |
PacketContainer.getTitleActions()
Retrieve a read/write structure for the TitleAction enum in 1.8.
|
StructureModifier<UUID> |
PacketContainer.getUUIDs()
Retrieves a read/write structure for every UUID field.
|
StructureModifier<org.bukkit.util.Vector> |
PacketContainer.getVectors()
Retrieves a read/write structure for Vectors.
|
StructureModifier<List<WrappedWatchableObject>> |
PacketContainer.getWatchableCollectionModifier()
Retrieves a read/write structure for collections of watchable objects.
|
StructureModifier<EnumWrappers.WorldBorderAction> |
PacketContainer.getWorldBorderActions()
Retrieve a read/write structure for the WorldBorderAction enum in 1.8.
|
StructureModifier<org.bukkit.WorldType> |
PacketContainer.getWorldTypeModifier()
Retrieves a read/write structure for the world type enum.
|
| Constructor and Description |
|---|
PacketContainer(int id,
Object handle,
StructureModifier<Object> structure)
Deprecated.
|
PacketContainer(PacketType type,
Object handle,
StructureModifier<Object> structure)
Creates a packet container for an existing packet.
|
| Modifier and Type | Method and Description |
|---|---|
static StructureModifier<Object> |
StructureCache.getStructure(Class<?> packetType)
Retrieve a cached structure modifier given a packet type.
|
static StructureModifier<Object> |
StructureCache.getStructure(Class<?> packetType,
boolean compile)
Retrieve a cached structure modifier given a packet type.
|
static StructureModifier<Object> |
StructureCache.getStructure(int legacyId)
Deprecated.
|
static StructureModifier<Object> |
StructureCache.getStructure(int legacyId,
boolean compile)
Deprecated.
|
static StructureModifier<Object> |
StructureCache.getStructure(PacketType type)
Retrieve a cached structure modifier for the given packet type.
|
static StructureModifier<Object> |
StructureCache.getStructure(PacketType type,
boolean compile)
Retrieve a cached structure modifier for the given packet type.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class,StructureModifier> |
StructureModifier.subtypeCache |
| Modifier and Type | Method and Description |
|---|---|
StructureModifier<TField> |
StructureModifier.modify(int fieldIndex,
com.google.common.base.Function<TField,TField> select)
Correctly modifies the value of a field.
|
protected <T> StructureModifier<T> |
StructureModifier.withFieldType(Class fieldType,
List<Field> filtered,
Map<Field,Integer> defaults)
Create a new structure modifier for the new field type.
|
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.
|
StructureModifier<TField> |
StructureModifier.withTarget(Object target)
Retrieves a structure modifier of the same type for a different object target.
|
<T> StructureModifier<T> |
StructureModifier.withType(Class fieldType)
Retrieves a structure modifier that only reads and writes fields of a given 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.
|
StructureModifier<TField> |
StructureModifier.write(int fieldIndex,
TField value)
Writes the value of a field given its index.
|
StructureModifier<TField> |
StructureModifier.writeDefaults()
Sets all non-primitive fields to a more fitting default value.
|
StructureModifier<TField> |
StructureModifier.writeSafely(int fieldIndex,
TField value)
Writes the value of a given field IF and ONLY if it exists.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
StructureModifier.initialize(StructureModifier<TField> other)
Initialize using the same field types.
|
protected void |
ObjectWriter.transformField(StructureModifier<Object> modifierSource,
StructureModifier<Object> modifierDest,
int fieldIndex)
Called for every non-static field that will be copied.
|
protected void |
ObjectWriter.transformField(StructureModifier<Object> modifierSource,
StructureModifier<Object> modifierDest,
int fieldIndex)
Called for every non-static field that will be copied.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
FieldCloner.defaultTransform(StructureModifier<Object> modifierSource,
StructureModifier<Object> modifierDest,
Cloner defaultCloner,
int fieldIndex)
Default implementation of the field transform.
|
protected void |
FieldCloner.defaultTransform(StructureModifier<Object> modifierSource,
StructureModifier<Object> modifierDest,
Cloner defaultCloner,
int fieldIndex)
Default implementation of the field transform.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CompiledStructureModifier
Represents a compiled structure modifier.
|
| Modifier and Type | Method and Description |
|---|---|
<TField> StructureModifier<TField> |
StructureCompiler.compile(StructureModifier<TField> source)
Compiles the given structure modifier.
|
StructureModifier<Object> |
CompiledStructureModifier.withTarget(Object target) |
StructureModifier<Object> |
CompiledStructureModifier.write(int index,
Object value) |
StructureModifier<Object> |
CompiledStructureModifier.writeDefaults() |
protected abstract StructureModifier<Object> |
CompiledStructureModifier.writeGenerated(int index,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
<TKey> void |
BackgroundCompiler.addListener(StructureModifier<TKey> uncompiled,
CompileListener<TKey> listener)
Add a compile listener if we are still waiting for the structure modifier to be compiled.
|
<TField> StructureModifier<TField> |
StructureCompiler.compile(StructureModifier<TField> source)
Compiles the given structure modifier.
|
<TField> boolean |
StructureCompiler.lookupClassLoader(StructureModifier<TField> source)
Lookup the current class loader for any previously generated classes before we attempt to generate something.
|
void |
CompileListener.onCompiled(StructureModifier<TKey> compiledModifier)
Invoked when a structure modifier has been successfully compiled.
|
<TKey> void |
BackgroundCompiler.scheduleCompilation(StructureModifier<TKey> uncompiled,
CompileListener<TKey> listener)
Ensure that the given structure modifier is eventually compiled.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BackgroundCompiler.scheduleCompilation(Map<Class,StructureModifier> cache,
Class key)
Ensure that the indirectly given structure modifier is eventually compiled.
|
| Modifier and Type | Field and Description |
|---|---|
protected StructureModifier<Object> |
WrappedAttributeModifier.modifier |
protected StructureModifier<Object> |
WrappedAttribute.modifier |
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.