diff --git a/Javadoc/allclasses-frame.html b/Javadoc/allclasses-frame.html index 100c0901..0745c7de 100644 --- a/Javadoc/allclasses-frame.html +++ b/Javadoc/allclasses-frame.html @@ -2,9 +2,9 @@
- +java.util.List<org.bukkit.entity.Player>
getEntityTrackers(org.bukkit.entity.Entity entity)
+com.google.common.collect.ImmutableSet<PacketListener>
getPacketListeners()
java.util.Set<java.lang.Integer>
getReceivingFilters()
java.util.Set<java.lang.Integer>
getSendingFilters()
boolean
isClosed()
void
recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet,
@@ -190,19 +196,19 @@ extends Simulate recieving a certain packet from a given player.
void
removePacketListener(PacketListener listener)
void
removePacketListeners(org.bukkit.plugin.Plugin plugin)
void
sendServerPacket(org.bukkit.entity.Player reciever,
PacketContainer packet,
@@ -210,11 +216,11 @@ extends Send a packet to the given player.
void
updateEntity(org.bukkit.entity.Entity entity,
java.util.List<org.bukkit.entity.Player> observers)
-Note that this method is NOT thread safe. If you call this method from anything but the main thread, it will throw an exception.
java.util.List<org.bukkit.entity.Player> getEntityTrackers(org.bukkit.entity.Entity entity) + throws FieldAccessException+
entity
- - the entity that is being tracked.FieldAccessException
- If reflection failed.lowerBound
- - lowest value to remove.upperBound
- - highest value to remove.preserveOutside
- - whether or not to preserve the intervals that are partially outside.lowerBound
- - lowest value to remove.upperBound
- - highest value to remove.preserveDifference
- - whether or not to preserve the intervals that are partially outside.TKey
- - type of the key.TValue
- - type of the value.public class BlockingHashMap<TKey,TValue>
+extends java.lang.Object
++ Keys are stored as weak references, and will be automatically removed once they've all been dereferenced. +
Constructor and Description | +
---|
BlockingHashMap()
+Initialize a new map.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static <TKey,TValue> |
+create()
+Initialize a new map.
+ |
+
TValue |
+get(TKey key)
+Waits until a value has been associated with the given key, and then retrieves that value.
+ |
+
TValue |
+get(TKey key,
+ long timeout,
+ java.util.concurrent.TimeUnit unit)
+Waits until a value has been associated with the given key, and then retrieves that value.
+ |
+
java.util.Set<TKey> |
+keys() |
+
TValue |
+put(TKey key,
+ TValue value)
+Associate a given key with the given value.
+ |
+
int |
+size() |
+
java.util.Collection<TValue> |
+values() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BlockingHashMap()+
public static <TKey,TValue> BlockingHashMap<TKey,TValue> create()+
public TValue get(TKey key) + throws java.lang.InterruptedException+
key
- - the key whose associated value is to be returnedjava.lang.InterruptedException
- If the current thread got interrupted while waiting.public TValue get(TKey key, + long timeout, + java.util.concurrent.TimeUnit unit) + throws java.lang.InterruptedException+
key
- - the key whose associated value is to be returnedtimeout
- - the amount of time to wait until an association has been made.unit
- - unit of timeout.java.lang.InterruptedException
- If the current thread got interrupted while waiting.public TValue put(TKey key, + TValue value)+
+ Wakes up any blocking getters on this specific key.
key
- - the key to associate.value
- - the value.public int size()+
public java.util.Collection<TValue> values()+
public java.util.Set<TKey> keys()+
public class BlockingHashMapTest
+extends java.lang.Object
+Constructor and Description | +
---|
BlockingHashMapTest() |
+
Package | +Description | +
---|---|
com.comphenix.protocol.concurrency | ++ |
Modifier and Type | +Method and Description | +
---|---|
static <TKey,TValue> |
+BlockingHashMap.create()
+Initialize a new map.
+ |
+
PacketContainer
deepClone()
+StructureModifier<byte[]>
getByteArrays()
StructureModifier<java.lang.Byte>
getBytes()
StructureModifier<WrappedDataWatcher>
getDataWatcherModifier()
StructureModifier<java.lang.Double>
getDoubles()
StructureModifier<org.bukkit.entity.Entity>
getEntityModifier(org.bukkit.World world)
StructureModifier<java.lang.Float>
getFloat()
net.minecraft.server.Packet
getHandle()
int
getID()
StructureModifier<int[]>
getIntegerArrays()
+StructureModifier<java.lang.Integer>
getIntegers()
@@ -544,6 +556,17 @@ implements java.io.Serializable
public StructureModifier<int[]> getIntegerArrays()+
public int getID()@@ -663,6 +686,17 @@ implements java.io.Serializable
public PacketContainer deepClone()+
PacketContainer
deepClone()
+PacketContainer
getPacket()
java.util.List<org.bukkit.entity.Player>
getEntityTrackers(org.bukkit.entity.Entity entity)
+java.lang.Class<?>
getPacketClassFromID(int packetID,
boolean forceVanilla)
int
getPacketID(net.minecraft.server.Packet packet)
com.google.common.collect.ImmutableSet<PacketListener>
getPacketListeners()
PacketFilterManager.PlayerInjectHooks
getPlayerHook()
java.util.Set<java.lang.Integer>
getReceivingFilters()
java.util.Set<java.lang.Integer>
getSendingFilters()
static java.util.Set<java.lang.Integer>
getServerPackets()
void
initializePlayers(org.bukkit.entity.Player[] players)
void
invokePacketRecieving(PacketEvent event)
void
invokePacketSending(PacketEvent event)
boolean
isClosed()
void
recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet)
void
recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet,
@@ -307,40 +313,40 @@ implements Simulate recieving a certain packet from a given player.
void
registerEvents(org.bukkit.plugin.PluginManager manager,
org.bukkit.plugin.Plugin plugin)
void
registerPacketClass(java.lang.Class<?> clazz,
int packetID)
void
removePacketListener(PacketListener listener)
void
removePacketListeners(org.bukkit.plugin.Plugin plugin)
void
sendServerPacket(org.bukkit.entity.Player reciever,
PacketContainer packet)
void
sendServerPacket(org.bukkit.entity.Player reciever,
PacketContainer packet,
@@ -348,32 +354,32 @@ implements Send a packet to the given player.
void
setPlayerHook(PacketFilterManager.PlayerInjectHooks playerHook)
void
uninitializePlayers(org.bukkit.entity.Player[] players)
void
unregisterPacketClass(java.lang.Class<?> clazz)
void
updateEntity(org.bukkit.entity.Entity entity,
java.util.List<org.bukkit.entity.Player> observers)
-static void
verifyWhitelist(PacketListener listener,
ListeningWhitelist whitelist)
@@ -758,7 +764,7 @@ implements FieldAccessException
ProtocolManager
Note that this method is NOT thread safe. If you call this method from anything but the main thread, it will throw an exception.
FieldAccessException
- Reflection failed.
+
+
+
+public java.util.List<org.bukkit.entity.Player> getEntityTrackers(org.bukkit.entity.Entity entity) + throws FieldAccessException+
ProtocolManager
getEntityTrackers
in interface ProtocolManager
entity
- - the entity that is being tracked.FieldAccessException
- If reflection failed.org.bukkit.entity.Player
getPlayerByConnection(java.io.DataInputStream inputStream,
+ long playerTimeout,
+ java.util.concurrent.TimeUnit unit)
+PacketFilterManager.PlayerInjectHooks
getPlayerHook()
PacketFilterManager.PlayerInjectHooks
getPlayerHook(GamePhase phase)
java.util.Set<java.lang.Integer>
getSendingFilters()
void
handleDisconnect(org.bukkit.entity.Player player)
void
injectPlayer(org.bukkit.entity.Player player)
boolean
isInjectionNecessary(GamePhase phase)
void
processPacket(org.bukkit.entity.Player player,
net.minecraft.server.Packet mcPacket)
void
removePacketHandler(int packetID)
void
scheduleDataInputRefresh(org.bukkit.entity.Player player)
void
sendServerPacket(org.bukkit.entity.Player reciever,
PacketContainer packet,
@@ -232,32 +240,32 @@ extends java.lang.Object
Send the given packet to the given reciever.
void
setPlayerHook(GamePhase phase,
PacketFilterManager.PlayerInjectHooks playerHook)
void
setPlayerHook(PacketFilterManager.PlayerInjectHooks playerHook)
boolean
uninjectPlayer(java.net.InetSocketAddress address)
boolean
uninjectPlayer(org.bukkit.entity.Player player)
boolean
uninjectPlayer(org.bukkit.entity.Player player,
boolean removeAuxiliary)
@@ -382,10 +390,30 @@ extends java.lang.Object
public org.bukkit.entity.Player getPlayerByConnection(java.io.DataInputStream inputStream)+
public org.bukkit.entity.Player getPlayerByConnection(java.io.DataInputStream inputStream) + throws java.lang.InterruptedException
inputStream
- - the associated DataInput connection.java.lang.InterruptedException
- If the thread was interrupted during the wait.public org.bukkit.entity.Player getPlayerByConnection(java.io.DataInputStream inputStream, + long playerTimeout, + java.util.concurrent.TimeUnit unit) + throws java.lang.InterruptedException+
inputStream
- - the associated DataInput connection.playerTimeout
- - the amount of time to wait for a result.unit
- - unit of playerTimeout.java.lang.InterruptedException
- If the thread was interrupted during the wait.public class FieldAccessException
-extends java.lang.Exception
+extends java.lang.RuntimeException
java.util.List<org.bukkit.entity.Player>
getEntityTrackers(org.bukkit.entity.Entity entity)
+static java.util.Set<java.lang.Integer>
getSupported()
static java.util.Set<java.lang.Integer>
getSupported()
static boolean
isSupported(int packetID)
static boolean
isSupported(int packetID)
void
updateEntity(org.bukkit.entity.Entity entity,
java.util.List<org.bukkit.entity.Player> observers)
-java.util.List<org.bukkit.entity.Player>
getEntityTrackers(org.bukkit.entity.Entity entity)
static java.util.Set<java.lang.Integer>
getServerPackets()
void
updateEntity(org.bukkit.entity.Entity entity,
java.util.List<org.bukkit.entity.Player> observers)
StructureModifier<int[]>
getIntegerArrays()
+StructureModifier<java.lang.Integer>
getIntegers()
StructureModifier<org.bukkit.inventory.ItemStack[]>
getItemArrayModifier()
StructureModifier<org.bukkit.inventory.ItemStack>
getItemModifier()
StructureModifier<java.lang.Long>
getLongs()
StructureModifier<java.lang.Object>
getModifier()
StructureModifier<java.util.List<ChunkPosition>>
getPositionCollectionModifier()
StructureModifier<ChunkPosition>
getPositionModifier()
StructureModifier<java.lang.Short>
getShorts()
<T> StructureModifier<T>
getSpecificModifier(java.lang.Class<T> primitiveType)
StructureModifier<java.lang.String[]>
getStringArrays()
StructureModifier<java.lang.String>
getStrings()
StructureModifier<java.util.List<WrappedWatchableObject>>
getWatchableCollectionModifier()
StructureModifier<org.bukkit.WorldType>
getWorldTypeModifier()
WrappedWatchableObject(net.minecraft.server.WatchableObject handle)
WrappedWatchableObject(int index,
+ java.lang.Object value)
+WrappedWatchableObject(net.minecraft.server.WatchableObject handle)
+public WrappedWatchableObject(net.minecraft.server.WatchableObject handle)+
handle
- - the raw watchable object to wrap.public WrappedWatchableObject(int index, + java.lang.Object value)+
index
- - the index.value
- - non-null value of specific types.