Package | Description |
---|---|
com.comphenix.protocol.events | |
com.comphenix.protocol.injector | |
com.comphenix.protocol.reflect |
Modifier and Type | Field and Description |
---|---|
protected StructureModifier<java.lang.Object> |
PacketContainer.structureModifier |
Modifier and Type | Method and Description |
---|---|
StructureModifier<org.bukkit.entity.Entity> |
PacketContainer.getEntityModifier(org.bukkit.World world)
Retrieves a read/write structure for entity objects.
|
StructureModifier<org.bukkit.inventory.ItemStack[]> |
PacketContainer.getItemArrayModifier()
Retrieves a read/write structure for arrays of ItemStacks.
|
StructureModifier<org.bukkit.inventory.ItemStack> |
PacketContainer.getItemModifier()
Retrieves a read/write structure for ItemStack.
|
StructureModifier<java.lang.Object> |
PacketContainer.getModifier()
Retrieves the generic structure modifier for this packet.
|
<T> StructureModifier<T> |
PacketContainer.getSpecificModifier(java.lang.Class<T> primitiveType)
Retrieves a read/write structure for every field with the given type.
|
StructureModifier<org.bukkit.WorldType> |
PacketContainer.getWorldTypeModifier()
Retrieves a read/write structure for the world type enum.
|
Constructor and Description |
---|
PacketContainer(int id,
net.minecraft.server.Packet handle,
StructureModifier<java.lang.Object> structure)
Creates a packet container for an existing packet.
|
Modifier and Type | Method and Description |
---|---|
static StructureModifier<java.lang.Object> |
StructureCache.getStructure(int id)
Retrieve a cached structure modifier for the given packet id.
|
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.
|
StructureModifier<TField> |
StructureModifier.withTarget(java.lang.Object target)
Retrieves a structure modifier of the same type for a different object target.
|
<T> StructureModifier<T> |
StructureModifier.withType(java.lang.Class fieldType)
Retrieves a structure modifier that only reads and writes fields of a given 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.
|
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.
|