Modifier and Type | Method and Description |
---|---|
org.bukkit.entity.Entity |
ProtocolManager.getEntityFromID(org.bukkit.World container,
int id)
Retrieve the associated entity.
|
static java.util.Set<java.lang.Integer> |
Packets.Server.getSupported()
Retrieve every client packet the current version of Minecraft is aware of.
|
static java.util.Set<java.lang.Integer> |
Packets.Client.getSupported()
Retrieve every client packet the current version of Minecraft is aware of.
|
static boolean |
Packets.Server.isSupported(int packetID)
Determine if the given packet is a valid server packet in the current version of Minecraft.
|
static boolean |
Packets.Client.isSupported(int packetID)
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 refresh all clients about an entity.
|
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()
Retrieve every known and supported client packet.
|
org.bukkit.entity.Entity |
PacketFilterManager.getEntityFromID(org.bukkit.World container,
int id) |
static java.util.Set<java.lang.Integer> |
PacketFilterManager.getServerPackets()
Retrieve every known and supported server packet.
|
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.
|
void |
StructureModifierTest.test() |
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 |
---|---|
TField |
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<TField> |
CompiledStructureModifier.write(int index,
java.lang.Object value) |
StructureModifier<TField> |
CompiledStructureModifier.writeDefaults() |
protected abstract StructureModifier<TField> |
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 |
---|---|
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 from a list of watchable objects.
|