Package | Description |
---|---|
com.comphenix.protocol |
Contains classes for retrieving the main ProtocolMananger object.
|
com.comphenix.protocol.async | |
com.comphenix.protocol.injector | |
com.comphenix.protocol.reflect | |
com.comphenix.protocol.reflect.compiler | |
com.comphenix.protocol.wrappers |
Modifier and Type | Method and Description |
---|---|
org.bukkit.entity.Entity |
ProtocolManager.getEntityFromID(org.bukkit.World container,
int id)
Retrieve the associated entity.
|
java.util.List<org.bukkit.entity.Player> |
ProtocolManager.getEntityTrackers(org.bukkit.entity.Entity entity)
Retrieve every client that is receiving information about a given entity.
|
static java.util.Set<java.lang.Integer> |
Packets.Server.getSupported()
Deprecated.
|
static java.util.Set<java.lang.Integer> |
Packets.Client.getSupported()
Deprecated.
Retrieve every client packet the current version of Minecraft is aware of.
|
static boolean |
Packets.Server.isSupported(int packetID)
Deprecated.
|
static boolean |
Packets.Client.isSupported(int packetID)
Deprecated.
Determine if the given packet is a valid client packet in the current version of Minecraft.
|
void |
ProtocolManager.updateEntity(org.bukkit.entity.Entity entity,
java.util.List<org.bukkit.entity.Player> observers)
Completely resend an entity to a list of clients.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AsyncMarker.isMinecraftAsync(PacketEvent event)
Determine if Minecraft allows asynchronous processing of this packet.
|
Modifier and Type | Method and Description |
---|---|
PacketContainer |
PacketConstructor.createPacket(java.lang.Object... values)
Construct a packet using the special builtin Minecraft constructors.
|
static java.util.Set<java.lang.Integer> |
PacketFilterManager.getClientPackets()
Deprecated.
|
org.bukkit.entity.Entity |
DelayedPacketManager.getEntityFromID(org.bukkit.World container,
int id) |
org.bukkit.entity.Entity |
PacketFilterManager.getEntityFromID(org.bukkit.World container,
int id) |
java.util.List<org.bukkit.entity.Player> |
DelayedPacketManager.getEntityTrackers(org.bukkit.entity.Entity entity) |
java.util.List<org.bukkit.entity.Player> |
PacketFilterManager.getEntityTrackers(org.bukkit.entity.Entity entity) |
static java.util.Set<java.lang.Integer> |
PacketFilterManager.getServerPackets()
Deprecated.
|
void |
DelayedPacketManager.updateEntity(org.bukkit.entity.Entity entity,
java.util.List<org.bukkit.entity.Player> observers) |
void |
PacketFilterManager.updateEntity(org.bukkit.entity.Entity entity,
java.util.List<org.bukkit.entity.Player> observers) |
Modifier and Type | Method and Description |
---|---|
static FieldAccessException |
FieldAccessException.fromFormat(java.lang.String message,
java.lang.Object... params) |
Modifier and Type | Method and Description |
---|---|
java.util.List<TField> |
StructureModifier.getValues()
Retrieve every value stored in the fields of the current type.
|
StructureModifier<TField> |
StructureModifier.modify(int fieldIndex,
com.google.common.base.Function<TField,TField> select)
Correctly modifies the value of a field.
|
TField |
StructureModifier.read(int fieldIndex)
Reads the value of a field given its index.
|
TField |
StructureModifier.readSafely(int fieldIndex)
Reads the value of a field if and ONLY IF it exists.
|
void |
StructureModifier.setReadOnly(int fieldIndex,
boolean value)
Set whether or not a field should be treated as read only.
|
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 |
---|---|
java.lang.Object |
CompiledStructureModifier.read(int fieldIndex) |
protected abstract java.lang.Object |
CompiledStructureModifier.readGenerated(int fieldIndex) |
protected java.lang.Object |
CompiledStructureModifier.readReflected(int index)
Read the given field index using reflection.
|
void |
CompiledStructureModifier.setReadOnly(int fieldIndex,
boolean value) |
StructureModifier<java.lang.Object> |
CompiledStructureModifier.write(int index,
java.lang.Object value) |
StructureModifier<java.lang.Object> |
CompiledStructureModifier.writeDefaults() |
protected abstract StructureModifier<java.lang.Object> |
CompiledStructureModifier.writeGenerated(int index,
java.lang.Object value) |
protected void |
CompiledStructureModifier.writeReflected(int index,
java.lang.Object value)
Write the given field using reflection.
|
Modifier and Type | Method and Description |
---|---|
WrappedWatchableObject |
WrappedWatchableObject.deepClone()
Clone the current wrapped watchable object, along with any contained objects.
|
java.lang.Byte |
WrappedDataWatcher.getByte(int index)
Get a watched byte.
|
WrappedChunkCoordinate |
WrappedDataWatcher.getChunkCoordinate(int index)
Get a watched string.
|
boolean |
WrappedWatchableObject.getDirtyState()
Retrieve whether or not the value must be synchronized with the client.
|
static WrappedDataWatcher |
WrappedDataWatcher.getEntityWatcher(org.bukkit.entity.Entity entity)
Retrieve the data watcher associated with an entity.
|
java.lang.Float |
WrappedDataWatcher.getFloat(int index)
Get a watched float.
|
int |
WrappedWatchableObject.getIndex()
Retrieve the index of this watchable object.
|
java.lang.Integer |
WrappedDataWatcher.getInteger(int index)
Get a watched integer.
|
org.bukkit.inventory.ItemStack |
WrappedDataWatcher.getItemStack(int index)
Get a watched string.
|
java.lang.Object |
WrappedDataWatcher.getObject(int index)
Retrieve a watchable object by index.
|
protected java.util.concurrent.locks.ReadWriteLock |
WrappedDataWatcher.getReadWriteLock()
Retrieve the current read write lock.
|
java.lang.Short |
WrappedDataWatcher.getShort(int index)
Get a watched short.
|
java.lang.String |
WrappedDataWatcher.getString(int index)
Get a watched string.
|
java.lang.Class<?> |
WrappedWatchableObject.getType()
Retrieve the correct super type of the current value.
|
static java.lang.Class<?> |
WrappedDataWatcher.getTypeClass(int id)
Retrieve the type of a given ID, if it's allowed to be watched.
|
int |
WrappedWatchableObject.getTypeID()
Retrieve the type ID of a watchable object.
|
static java.lang.Integer |
WrappedDataWatcher.getTypeID(java.lang.Class<?> clazz)
Retrieve the ID of a given type, if it's allowed to be watched.
|
java.lang.Object |
WrappedWatchableObject.getValue()
Read the value field.
|
protected java.util.Map<java.lang.Integer,java.lang.Object> |
WrappedDataWatcher.getWatchableObjectMap()
Retrieve the underlying map of key values that stores watchable objects.
|
java.util.List<WrappedWatchableObject> |
WrappedDataWatcher.getWatchableObjects()
Retrieve every watchable object in this watcher.
|
java.util.Set<java.lang.Integer> |
WrappedDataWatcher.indexSet()
Retrieve a copy of every index associated with a watched object.
|
void |
WrappedWatchableObject.setDirtyState(boolean dirty)
Set whether or not the value must be synchronized with the client.
|
void |
WrappedWatchableObject.setIndex(int index)
Set the the index of this watchable object.
|
void |
WrappedDataWatcher.setObject(int index,
java.lang.Object newValue)
Set a watched byte.
|
void |
WrappedDataWatcher.setObject(int index,
java.lang.Object newValue,
boolean update)
Set a watched byte.
|
void |
WrappedWatchableObject.setTypeID(int id)
Set the type ID of a watchable object.
|
void |
WrappedWatchableObject.setValue(java.lang.Object newValue)
Update the value field.
|
void |
WrappedWatchableObject.setValue(java.lang.Object newValue,
boolean updateClient)
Update the value field.
|
int |
WrappedDataWatcher.size()
Retrieve the number of watched objects.
|
Constructor and Description |
---|
WrappedDataWatcher(java.util.List<WrappedWatchableObject> watchableObjects)
Create a new data watcher for a list of watchable objects.
|