diff --git a/Javadoc/allclasses-frame.html b/Javadoc/allclasses-frame.html index 812c4a28..100c0901 100644 --- a/Javadoc/allclasses-frame.html +++ b/Javadoc/allclasses-frame.html @@ -2,9 +2,9 @@
- +AsyncListenerHandler registerAsyncHandler(PacketListener listener)
+ Use AsyncMarker.incrementProcessingDelay()
to delay a packet until its ready to be transmitted.
To start listening asynchronously, pass the getListenerLoop() runnable to a different thread.
listener
- - the packet listener that will recieve these asynchronous events.void
removePacketListener(PacketListener listener)
-recieveClientPacket(org.bukkit.entity.Player sender,
+ PacketContainer packet,
+ boolean filters)
+void
removePacketListener(PacketListener listener)
+void
removePacketListeners(org.bukkit.plugin.Plugin plugin)
void
sendServerPacket(org.bukkit.entity.Player reciever,
+ PacketContainer packet,
+ boolean filters)
+void
updateEntity(org.bukkit.entity.Entity entity,
@@ -207,7 +223,7 @@ extends PacketStream
-recieveClientPacket, recieveClientPacket, sendServerPacket, sendServerPacket
+recieveClientPacket, sendServerPacket
@@ -223,6 +239,52 @@ extends
+
+
+
+-
+
sendServerPacket
+void sendServerPacket(org.bukkit.entity.Player reciever,
+ PacketContainer packet,
+ boolean filters)
+ throws java.lang.reflect.InvocationTargetException
+Send a packet to the given player.
+
+ Re-sending a previously cancelled packet is discuraged. Use AsyncMarker.incrementProcessingDelay()
+ to delay a packet until a certain condition has been met.
+
+- Specified by:
+sendServerPacket
in interface PacketStream
+- Parameters:
reciever
- - the reciever.packet
- - packet to send.filters
- - whether or not to invoke any packet filters.
+- Throws:
+java.lang.reflect.InvocationTargetException
- - if an error occured when sending the packet.
+
+
+
+
+
+
+-
+
recieveClientPacket
+void recieveClientPacket(org.bukkit.entity.Player sender,
+ PacketContainer packet,
+ boolean filters)
+ throws java.lang.IllegalAccessException,
+ java.lang.reflect.InvocationTargetException
+Simulate recieving a certain packet from a given player.
+
+ Receiving a previously cancelled packet is discuraged. Use AsyncMarker.incrementProcessingDelay()
+ to delay a packet until a certain condition has been met.
+
+- Specified by:
+recieveClientPacket
in interface PacketStream
+- Parameters:
sender
- - the sender.packet
- - the packet that was sent.filters
- - whether or not to invoke any packet filters.
+- Throws:
+java.lang.reflect.InvocationTargetException
- If the reflection machinery failed.
+java.lang.IllegalAccessException
- If the underlying method caused an error.
+
+
diff --git a/Javadoc/com/comphenix/protocol/async/AsyncFilterManager.html b/Javadoc/com/comphenix/protocol/async/AsyncFilterManager.html
index 76d8b619..7fc21006 100644
--- a/Javadoc/com/comphenix/protocol/async/AsyncFilterManager.html
+++ b/Javadoc/com/comphenix/protocol/async/AsyncFilterManager.html
@@ -2,9 +2,9 @@
-
+
AsyncFilterManager
-
+
@@ -103,7 +103,10 @@
public class AsyncFilterManager
extends java.lang.Object
implements AsynchronousManager
-Represents a filter manager for asynchronous packets.
+Represents a filter manager for asynchronous packets.
+
+ By using AsyncMarker.incrementProcessingDelay()
, a packet can be delayed without having to block the
+ processing thread.
- Author:
- Kristian
@@ -126,7 +129,9 @@ implements
AsyncFilterManager(ErrorReporter reporter,
org.bukkit.scheduler.BukkitScheduler scheduler,
- ProtocolManager manager)
+ ProtocolManager manager)
+com.comphenix.protocol.async.PacketProcessingQueue
getProcessingQueue(PacketEvent packet)
+java.util.Set<java.lang.Integer>
getReceivingFilters()
org.bukkit.scheduler.BukkitScheduler
getScheduler()
+java.util.Set<java.lang.Integer>
getSendingFilters()
@@ -196,6 +213,19 @@ implements
com.comphenix.protocol.async.PacketSendingQueue
getSendingQueue(PacketEvent packet)
+com.comphenix.protocol.async.PacketSendingQueue
getSendingQueue(PacketEvent packet,
+ boolean createNew)
+java.util.Set<PacketListener>
getTimeoutHandlers()
void
scheduleAsyncTask(org.bukkit.plugin.Plugin plugin,
- java.lang.Runnable runnable)
-removePlayer(org.bukkit.entity.Player player)
++ Internal method. Retrieve the global asynchronous manager from the protocol manager instead.
reporter
- - desired error reporter.scheduler
- - task scheduler.manager
- - protocol manager.AsynchronousManager
+ Use AsyncMarker.incrementProcessingDelay()
to delay a packet until its ready to be transmitted.
To start listening asynchronously, pass the getListenerLoop() runnable to a different thread.
+ Use AsyncMarker.incrementProcessingDelay()
to delay a packet until its ready to be transmitted.
To start listening asynchronously, pass the getListenerLoop() runnable to a different thread.
@@ -466,16 +503,15 @@ implements Returns:
public void scheduleAsyncTask(org.bukkit.plugin.Plugin plugin, - java.lang.Runnable runnable)-
plugin
- - the calling plugin.runnable
- - the runnable.public org.bukkit.scheduler.BukkitScheduler getScheduler()+
packet
- - packet to signal.public com.comphenix.protocol.async.PacketSendingQueue getSendingQueue(PacketEvent packet)+
packet
- - the packet.public com.comphenix.protocol.async.PacketSendingQueue getSendingQueue(PacketEvent packet, + boolean createNew)+
packet
- - the packet.createNew
- - if TRUE, create a new queue if it hasn't already been created.public com.comphenix.protocol.async.PacketProcessingQueue getProcessingQueue(PacketEvent packet)+
packet
- - the packet.public void sendProcessedPackets(int tickCounter, @@ -603,6 +676,17 @@ implements Send any due packets, or clean up packets that have expired.
public void removePlayer(org.bukkit.entity.Player player)+
player
- - the player that has just logged out.public class AsyncListenerHandler
extends java.lang.Object
-
+ Use AsyncMarker.incrementProcessingDelay()
to delay a packet until a certain condition has been met.
Constructor and Description | -
---|
AsyncListenerHandler(java.lang.Thread mainThread,
- AsyncFilterManager filterManager,
- PacketListener listener) |
-
PacketListener
getAsyncListener()
getAsyncListener()
+java.lang.String
boolean
isCancelled()
isCancelled()
+void
boolean
syncStart()
+boolean
syncStart(long time,
+ java.util.concurrent.TimeUnit unit)
+boolean
syncStop()
+public AsyncListenerHandler(java.lang.Thread mainThread, - AsyncFilterManager filterManager, - PacketListener listener)-
public PacketListener getAsyncListener()+
public boolean syncStart()+
+ This is useful if you need to synchronize with the main thread in your packet listener, but + you're not performing any expensive processing. +
+ Note: Use a asynchronous worker if the packet listener may use more than 0.5 ms + of processing time on a single packet. Do as much as possible on the worker thread, and schedule synchronous tasks + to use the Bukkit API instead.
java.lang.IllegalStateException
- If we couldn't start the underlying task.public boolean syncStart(long time, + java.util.concurrent.TimeUnit unit)+
+ This is useful if you need to synchronize with the main thread in your packet listener, but + you're not performing any expensive processing. +
+ The processing time parameter gives the upper bound for the amount of time spent processing pending packets. + It should be set to a fairly low number, such as 0.5 ms or 1% of a game tick - to reduce the impact + on the main thread. Never go beyond 50 milliseconds. +
+ Note: Use a asynchronous worker if the packet listener may exceed the ideal processing time + on a single packet. Do as much as possible on the worker thread, and schedule synchronous tasks + to use the Bukkit API instead.
time
- - the amount of processing time alloted per game tick (20 ticks per second).unit
- - the unit of the processingTime argument.java.lang.IllegalStateException
- If we couldn't start the underlying task.public boolean syncStop()+
compareTo(AsyncMarker o)
boolean
equals(java.lang.Object other)
long
getInitialTime()
AsyncListenerHandler
getListenerHandler()
long
getNewSendingIndex()
long
getOriginalSendingIndex()
PacketStream
getPacketStream()
int
getProcessingDelay()
java.lang.Object
getProcessingLock()
long
getQueuedSendingIndex()
long
getTimeout()
int
getWorkerID()
boolean
hasExpired()
boolean
hasExpired(long currentTime)
int
hashCode()
int
incrementProcessingDelay()
-public int incrementProcessingDelay()-
This is useful if an asynchronous listener is waiting for further information before the
packet can be sent to the user. A packet listener MUST eventually call
@@ -464,10 +472,7 @@ implements java.io.Serializable, java.lang.Comparable<getProcessingLock()
method.
-
- To decrement the processing delay, call signalPacketUpdate. A thread that calls this method - multiple times must call signalPacketUpdate at least that many times.
getProcessingLock()
method.public int compareTo(AsyncMarker o)@@ -635,6 +640,32 @@ implements java.io.Serializable, java.lang.Comparable< + + +
public boolean equals(java.lang.Object other)+
equals
in class java.lang.Object
public int hashCode()+
hashCode
in class java.lang.Object
Package | -Description | -
---|---|
com.comphenix.protocol.async | -- |
Constructor and Description | -
---|
AsyncListenerHandler(java.lang.Thread mainThread,
- AsyncFilterManager filterManager,
- PacketListener listener) |
-
AsyncFilterManager(ErrorReporter reporter,
org.bukkit.scheduler.BukkitScheduler scheduler,
- ProtocolManager manager)
TKey
key
AbstractIntervalTree.State
state
TValue
value
AbstractIntervalTree.EndPoint(AbstractIntervalTree.State state,
+AbstractIntervalTree.EndPoint(AbstractIntervalTree.State state,
+ TKey key,
TValue value)
public AbstractIntervalTree.EndPoint(AbstractIntervalTree.State state, + TKey key, TValue value)
boolean
equals(java.lang.Object obj)
com.google.common.collect.Range<TKey>
getKey()
TValue
getValue()
int
hashCode()
TValue
setValue(TValue value)
java.lang.String
toString()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public boolean equals(java.lang.Object obj)+ +
public int hashCode()+ +
public java.lang.String toString()+
toString
in class java.lang.Object
protected AbstractIntervalTree.EndPoint
getEndPoint(TKey key)
-protected AbstractIntervalTree.Entry
getEntry(AbstractIntervalTree.EndPoint left,
+ AbstractIntervalTree.EndPoint right)
+protected AbstractIntervalTree.EndPoint
getNextEndPoint(TKey point,
+ boolean inclusive)
+protected AbstractIntervalTree.EndPoint
getPreviousEndPoint(TKey point,
+ boolean inclusive)
+protected abstract TKey
incrementKey(TKey key)
protected void
onEntryAdded(AbstractIntervalTree.Entry added)
protected void
onEntryRemoved(AbstractIntervalTree.Entry removed)
void
put(TKey lowerBound,
TKey upperBound,
@@ -258,20 +279,20 @@ extends java.lang.Object
Associates a given interval of keys with a certain value.
void
putAll(AbstractIntervalTree<TKey,TValue> other)
java.util.Set<AbstractIntervalTree.Entry>
remove(TKey lowerBound,
TKey upperBound)
java.util.Set<AbstractIntervalTree.Entry>
remove(TKey lowerBound,
TKey upperBound,
@@ -364,6 +385,19 @@ extends java.lang.Object
- Parameters:
lowerBound
- - lowest value to remove.upperBound
- - highest value to remove.preserveOutside
- - whether or not to preserve the intervals that are partially outside.
+
+
+
+
+-
+
getEntry
+protected AbstractIntervalTree.Entry getEntry(AbstractIntervalTree.EndPoint left,
+ AbstractIntervalTree.EndPoint right)
+Retrieve the entry from a given set of end points.
+- Parameters:
left
- - leftmost end point.right
- - rightmost end point.
+- Returns:
- The associated entry.
+
+
@@ -464,11 +498,41 @@ extends java.lang.Object
getEndPoint
protected AbstractIntervalTree.EndPoint getEndPoint(TKey key)
-Get the end-point composite associated with this key.
+Get the left-most end-point associated with this key.
- Parameters:
key
- - key to search for.
- Returns:
- The end point found, or NULL.
+
+
+
+
+
+
+-
+
getPreviousEndPoint
+protected AbstractIntervalTree.EndPoint getPreviousEndPoint(TKey point,
+ boolean inclusive)
+Get the previous end point of a given key.
+- Parameters:
point
- - the point to search with.inclusive
- - whether or not to include the current point in the search.
+- Returns:
- The previous end point of a given given key, or NULL if not found.
+
+
+
+
+
+
+
+
+-
+
getNextEndPoint
+protected AbstractIntervalTree.EndPoint getNextEndPoint(TKey point,
+ boolean inclusive)
+Get the next end point of a given key.
+- Parameters:
point
- - the point to search with.inclusive
- - whether or not to include the current point in the search.
+- Returns:
- The next end point of a given given key, or NULL if not found.
+
+
diff --git a/Javadoc/com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html b/Javadoc/com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html
index 8a116eb7..79f0f50a 100644
--- a/Javadoc/com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html
+++ b/Javadoc/com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html
@@ -2,9 +2,9 @@
-
+
SortedCopyOnWriteArray
-
+
diff --git a/Javadoc/com/comphenix/protocol/concurrency/class-use/AbstractConcurrentListenerMultimap.html b/Javadoc/com/comphenix/protocol/concurrency/class-use/AbstractConcurrentListenerMultimap.html
index 594144b8..51b74f48 100644
--- a/Javadoc/com/comphenix/protocol/concurrency/class-use/AbstractConcurrentListenerMultimap.html
+++ b/Javadoc/com/comphenix/protocol/concurrency/class-use/AbstractConcurrentListenerMultimap.html
@@ -2,9 +2,9 @@
-
+
Uses of Class com.comphenix.protocol.concurrency.AbstractConcurrentListenerMultimap
-
+
diff --git a/Javadoc/com/comphenix/protocol/concurrency/class-use/AbstractIntervalTree.EndPoint.html b/Javadoc/com/comphenix/protocol/concurrency/class-use/AbstractIntervalTree.EndPoint.html
index f51f08c8..3f2ce427 100644
--- a/Javadoc/com/comphenix/protocol/concurrency/class-use/AbstractIntervalTree.EndPoint.html
+++ b/Javadoc/com/comphenix/protocol/concurrency/class-use/AbstractIntervalTree.EndPoint.html
@@ -2,9 +2,9 @@
-
+
Uses of Class com.comphenix.protocol.concurrency.AbstractIntervalTree.EndPoint
-
+
@@ -117,7 +117,44 @@
protected AbstractIntervalTree.EndPoint
AbstractIntervalTree.getEndPoint(TKey key)
-Get the end-point composite associated with this key.
+Get the left-most end-point associated with this key.
+
+
+
+protected AbstractIntervalTree.EndPoint
+AbstractIntervalTree.getNextEndPoint(TKey point,
+ boolean inclusive)
+Get the next end point of a given key.
+
+
+
+protected AbstractIntervalTree.EndPoint
+AbstractIntervalTree.getPreviousEndPoint(TKey point,
+ boolean inclusive)
+Get the previous end point of a given key.
+
+
+
+
+
+
+
+Uses of ErrorReporter in com.comphenix.protocol.reflect.compiler
+
+Constructors in com.comphenix.protocol.reflect.compiler with parameters of type ErrorReporter
+
+Constructor and Description
+
+
+
+BackgroundCompiler(java.lang.ClassLoader loader,
+ ErrorReporter reporter)
+Initialize a background compiler.
+
+
+
+BackgroundCompiler(java.lang.ClassLoader loader,
+ ErrorReporter reporter,
+ java.util.concurrent.ExecutorService executor)
+Initialize a background compiler utilizing the given thread pool.
+
+
+
+
+
diff --git a/Javadoc/com/comphenix/protocol/error/package-frame.html b/Javadoc/com/comphenix/protocol/error/package-frame.html
index 1f1fbb5f..1c024345 100644
--- a/Javadoc/com/comphenix/protocol/error/package-frame.html
+++ b/Javadoc/com/comphenix/protocol/error/package-frame.html
@@ -2,9 +2,9 @@
-
+
com.comphenix.protocol.error
-
+
diff --git a/Javadoc/com/comphenix/protocol/error/package-summary.html b/Javadoc/com/comphenix/protocol/error/package-summary.html
index 5e7d04aa..e74984fd 100644
--- a/Javadoc/com/comphenix/protocol/error/package-summary.html
+++ b/Javadoc/com/comphenix/protocol/error/package-summary.html
@@ -2,9 +2,9 @@
-
+
com.comphenix.protocol.error
-
+
diff --git a/Javadoc/com/comphenix/protocol/error/package-tree.html b/Javadoc/com/comphenix/protocol/error/package-tree.html
index 62aaa568..0f174e02 100644
--- a/Javadoc/com/comphenix/protocol/error/package-tree.html
+++ b/Javadoc/com/comphenix/protocol/error/package-tree.html
@@ -2,9 +2,9 @@
-
+
com.comphenix.protocol.error Class Hierarchy
-
+
diff --git a/Javadoc/com/comphenix/protocol/error/package-use.html b/Javadoc/com/comphenix/protocol/error/package-use.html
index d6bf2d49..b203ff0e 100644
--- a/Javadoc/com/comphenix/protocol/error/package-use.html
+++ b/Javadoc/com/comphenix/protocol/error/package-use.html
@@ -2,9 +2,9 @@
-
+
Uses of Package com.comphenix.protocol.error
-
+
@@ -95,6 +95,10 @@
com.comphenix.protocol.injector.player
Class and Description | +
---|
ErrorReporter | +
public void setCancelled(boolean cancel)-
+ Warning: A cancelled packet should never be re-transmitted. Use the asynchronous + packet manager if you need to perform extensive processing. It should also be used + if you need to synchronize with the main thread. +
+ This ensures that other plugins can work with the same packet. +
+ An asynchronous listener can also delay a packet indefinitely without having to block its thread.
setCancelled
in interface org.bukkit.event.Cancellable
void
recieveClientPacket(org.bukkit.entity.Player sender,
+ProtocolManager.recieveClientPacket(org.bukkit.entity.Player sender,
PacketContainer packet,
boolean filters)
Simulate recieving a certain packet from a given player.
@@ -146,11 +146,27 @@
void
recieveClientPacket(org.bukkit.entity.Player sender,
+ PacketContainer packet,
+ boolean filters)
+void
sendServerPacket(org.bukkit.entity.Player reciever,
PacketContainer packet)
void
sendServerPacket(org.bukkit.entity.Player reciever,
+ PacketContainer packet,
+ boolean filters)
+void
sendServerPacket(org.bukkit.entity.Player reciever,
diff --git a/Javadoc/com/comphenix/protocol/events/class-use/PacketEvent.html b/Javadoc/com/comphenix/protocol/events/class-use/PacketEvent.html
index 70bbace7..bb08999e 100644
--- a/Javadoc/com/comphenix/protocol/events/class-use/PacketEvent.html
+++ b/Javadoc/com/comphenix/protocol/events/class-use/PacketEvent.html
@@ -2,9 +2,9 @@
-
+
Uses of Class com.comphenix.protocol.events.PacketEvent
-
+
@@ -147,22 +147,41 @@
com.comphenix.protocol.async.PacketProcessingQueue
getProcessingQueue(PacketEvent packet)
+com.comphenix.protocol.async.PacketSendingQueue
getSendingQueue(PacketEvent packet)
+com.comphenix.protocol.async.PacketSendingQueue
getSendingQueue(PacketEvent packet,
+ boolean createNew)
+boolean
hasAsynchronousListeners(PacketEvent packet)
boolean
isMinecraftAsync(PacketEvent event)
void
signalFreeProcessingSlot(PacketEvent packet)
void
signalPacketTransmission(PacketEvent packet)
PacketListener
getAsyncListener()
getAsyncListener()
+Constructor and Description | -
---|
AsyncListenerHandler(java.lang.Thread mainThread,
- AsyncFilterManager filterManager,
- PacketListener listener) |
-
PacketStream
ProtocolManager
+ Re-sending a previously cancelled packet is discuraged. Use AsyncMarker.incrementProcessingDelay()
+ to delay a packet until a certain condition has been met.
sendServerPacket
in interface PacketStream
sendServerPacket
in interface ProtocolManager
reciever
- - the reciever.packet
- - packet to send.filters
- - whether or not to invoke any packet filters.java.lang.reflect.InvocationTargetException
- - if an error occured when sending the packet.PacketStream
ProtocolManager
+ Receiving a previously cancelled packet is discuraged. Use AsyncMarker.incrementProcessingDelay()
+ to delay a packet until a certain condition has been met.
recieveClientPacket
in interface PacketStream
recieveClientPacket
in interface ProtocolManager
sender
- - the sender.packet
- - the packet that was sent.filters
- - whether or not to invoke any packet filters.java.lang.IllegalAccessException
- If the underlying method caused an error.TField
java.lang.Object
read(int fieldIndex)
StructureModifier<TField>
StructureModifier<java.lang.Object>
write(int index,
java.lang.Object value)
StructureModifier<TField>
StructureModifier<java.lang.Object>
writeDefaults()
protected abstract StructureModifier<TField>
protected abstract StructureModifier<java.lang.Object>
writeGenerated(int index,
java.lang.Object value)
WrappedWatchableObject
deepClone()
+java.lang.Byte
getByte(int index)
WrappedChunkCoordinate
getChunkCoordinate(int index)
boolean
getDirtyState()
static WrappedDataWatcher
getEntityWatcher(org.bukkit.entity.Entity entity)
java.lang.Float
getFloat(int index)
int
getIndex()
java.lang.Integer
getInteger(int index)
org.bukkit.inventory.ItemStack
getItemStack(int index)
java.lang.Object
getObject(int index)
protected java.util.concurrent.locks.ReadWriteLock
getReadWriteLock()
java.lang.Short
getShort(int index)
java.lang.String
getString(int index)
java.lang.Class<?>
getType()
static java.lang.Class<?>
getTypeClass(int id)
int
getTypeID()
static java.lang.Integer
getTypeID(java.lang.Class<?> clazz)
java.lang.Object
getValue()
protected java.util.Map<java.lang.Integer,java.lang.Object>
getWatchableObjectMap()
java.util.List<WrappedWatchableObject>
getWatchableObjects()
java.util.Set<java.lang.Integer>
indexSet()
void
setDirtyState(boolean dirty)
void
setIndex(int index)
void
setObject(int index,
java.lang.Object newValue)
void
setObject(int index,
java.lang.Object newValue,
@@ -514,26 +520,26 @@
Set a watched byte.
void
setTypeID(int id)
void
setValue(java.lang.Object newValue)
void
setValue(java.lang.Object newValue,
boolean updateClient)
int
size()
class
CompiledStructureModifier<TField>
+CompiledStructureModifier
StructureModifier<TField>
StructureModifier<java.lang.Object>
withTarget(java.lang.Object target)
StructureModifier<TField>
StructureModifier<java.lang.Object>
write(int index,
java.lang.Object value)
StructureModifier<TField>
StructureModifier<java.lang.Object>
writeDefaults()
protected abstract StructureModifier<TField>
protected abstract StructureModifier<java.lang.Object>
writeGenerated(int index,
java.lang.Object value)
static int
SHUTDOWN_DELAY_MS
static java.lang.String
THREAD_FORMAT
+BackgroundCompiler(java.lang.ClassLoader loader)
+BackgroundCompiler(java.lang.ClassLoader loader,
+ ErrorReporter reporter)
BackgroundCompiler(java.lang.ClassLoader loader,
+BackgroundCompiler(java.lang.ClassLoader loader,
+ ErrorReporter reporter,
java.util.concurrent.ExecutorService executor)
Initialize a background compiler utilizing the given thread pool.
@@ -244,6 +252,17 @@ extends java.lang.Object
Field Detail
+
+
+
+
+-
+
THREAD_FORMAT
+public static final java.lang.String THREAD_FORMAT
+The default format for the name of new worker threads.
+- See Also:
- Constant Field Values
+
+
@@ -262,27 +281,31 @@ extends java.lang.Object
Constructor Detail
-
+
-
BackgroundCompiler
-public BackgroundCompiler(java.lang.ClassLoader loader)
-Initialize a background compiler.
-- Parameters:
loader
- - class loader from Bukkit.
+public BackgroundCompiler(java.lang.ClassLoader loader,
+ ErrorReporter reporter)
+Initialize a background compiler.
+
+ Uses the default THREAD_FORMAT
to name worker threads.
+- Parameters:
loader
- - class loader from Bukkit.reporter
- - current error reporter.
-
+
-
BackgroundCompiler
public BackgroundCompiler(java.lang.ClassLoader loader,
+ ErrorReporter reporter,
java.util.concurrent.ExecutorService executor)
Initialize a background compiler utilizing the given thread pool.
-- Parameters:
loader
- - class loader from Bukkit.executor
- - thread pool we'll use.
+- Parameters:
loader
- - class loader from Bukkit.reporter
- - current error reporter.executor
- - thread pool we'll use.
diff --git a/Javadoc/com/comphenix/protocol/reflect/compiler/CompileListener.html b/Javadoc/com/comphenix/protocol/reflect/compiler/CompileListener.html
index eb60d179..14e087f7 100644
--- a/Javadoc/com/comphenix/protocol/reflect/compiler/CompileListener.html
+++ b/Javadoc/com/comphenix/protocol/reflect/compiler/CompileListener.html
@@ -2,9 +2,9 @@
-
+
CompileListener
-
+
diff --git a/Javadoc/com/comphenix/protocol/reflect/compiler/CompiledStructureModifier.html b/Javadoc/com/comphenix/protocol/reflect/compiler/CompiledStructureModifier.html
index a678668c..f8bf3114 100644
--- a/Javadoc/com/comphenix/protocol/reflect/compiler/CompiledStructureModifier.html
+++ b/Javadoc/com/comphenix/protocol/reflect/compiler/CompiledStructureModifier.html
@@ -2,9 +2,9 @@
-
+
CompiledStructureModifier
-
+
@@ -80,17 +80,17 @@
com.comphenix.protocol.reflect.compiler
-Class CompiledStructureModifier<TField>
+Class CompiledStructureModifier
- java.lang.Object
-
-- com.comphenix.protocol.reflect.StructureModifier<TField>
+- com.comphenix.protocol.reflect.StructureModifier<java.lang.Object>
-
-- com.comphenix.protocol.reflect.compiler.CompiledStructureModifier<TField>
+- com.comphenix.protocol.reflect.compiler.CompiledStructureModifier
@@ -99,11 +99,10 @@
-
-
- Type Parameters:
TField
- Field type.
-public abstract class CompiledStructureModifier<TField>
-extends StructureModifier<TField>
+public abstract class CompiledStructureModifier
+extends StructureModifier<java.lang.Object>
Represents a compiled structure modifier.
- Author:
- Kristian
@@ -169,7 +168,7 @@ extends Method and Description
TField
java.lang.Object
read(int fieldIndex)
StructureModifier<TField>
StructureModifier<java.lang.Object>
withTarget(java.lang.Object target)
StructureModifier<TField>
StructureModifier<java.lang.Object>
write(int index,
java.lang.Object value)
StructureModifier<TField>
StructureModifier<java.lang.Object>
writeDefaults()
protected abstract StructureModifier<TField>
protected abstract StructureModifier<java.lang.Object>
writeGenerated(int index,
java.lang.Object value)
StructureModifier<TField>
+setReadOnly
in class StructureModifier<java.lang.Object>
fieldIndex
- - index of the field.value
- - TRUE if this field should be read only, FALSE otherwise.FieldAccessException
- If we cannot modify the read-only status.public StructureModifier<TField> writeDefaults() - throws FieldAccessException+
public StructureModifier<java.lang.Object> writeDefaults() + throws FieldAccessException
StructureModifier
DefaultInstances.getDefault(Class)
.writeDefaults
in class StructureModifier<TField>
writeDefaults
in class StructureModifier<java.lang.Object>
FieldAccessException
- If we're unable to write to the fields due to a security limitation.public final TField read(int fieldIndex) - throws FieldAccessException+
public final java.lang.Object read(int fieldIndex) + throws FieldAccessException
StructureModifier
read
in class StructureModifier<TField>
read
in class StructureModifier<java.lang.Object>
fieldIndex
- - index of the field.public StructureModifier<TField> write(int index, - java.lang.Object value) - throws FieldAccessException+
public StructureModifier<java.lang.Object> write(int index, + java.lang.Object value) + throws FieldAccessException
StructureModifier
write
in class StructureModifier<TField>
write
in class StructureModifier<java.lang.Object>
index
- - index of the field.value
- - new value of the field.protected abstract StructureModifier<TField> writeGenerated(int index, - java.lang.Object value) - throws FieldAccessException+
protected abstract StructureModifier<java.lang.Object> writeGenerated(int index, + java.lang.Object value) + throws FieldAccessException
FieldAccessException
public StructureModifier<TField> withTarget(java.lang.Object target)+
public StructureModifier<java.lang.Object> withTarget(java.lang.Object target)
StructureModifier
withTarget
in class StructureModifier<TField>
withTarget
in class StructureModifier<java.lang.Object>
target
- - different target of the same type.int
getX()
-int
getY()
-int
getZ()
-void
setX(int newX)
-void
setY(int newY)
-public int getX()-
public void setX(int newX)-
newX
- - the new x coordinate.public int getY()-
public void setY(int newY)-
newY
- - the new y coordinate.public int getZ()-
WrappedWatchableObject
deepClone()
+boolean
getDirtyState()
net.minecraft.server.WatchableObject
getHandle()
int
getIndex()
java.lang.Class<?>
getType()
int
getTypeID()
java.lang.Object
getValue()
void
setDirtyState(boolean dirty)
void
setIndex(int index)
void
setTypeID(int id)
void
setValue(java.lang.Object newValue)
void
setValue(java.lang.Object newValue,
boolean updateClient)
@@ -432,7 +438,7 @@ extends java.lang.Object
-public boolean getDirtyState() @@ -443,6 +449,20 @@ extends java.lang.Object
FieldAccessException
- Unable to use reflection.public WrappedWatchableObject deepClone() + throws FieldAccessException+
FieldAccessException
- If we're unable to use reflection.Modifier and Type | +Method and Description | +
---|---|
WrappedWatchableObject |
+WrappedWatchableObject.deepClone()
+Clone the current wrapped watchable object, along with any contained objects.
+ |
+
Modifier and Type | diff --git a/Javadoc/com/comphenix/protocol/wrappers/package-frame.html b/Javadoc/com/comphenix/protocol/wrappers/package-frame.html index 181b493e..ef25c09a 100644 --- a/Javadoc/com/comphenix/protocol/wrappers/package-frame.html +++ b/Javadoc/com/comphenix/protocol/wrappers/package-frame.html @@ -2,9 +2,9 @@ - +SHUTDOWN_DELAY_MS |
2000 |
---|---|---|
+
+public static final java.lang.String |
+THREAD_FORMAT |
+"ProtocolLib-StructureCompiler %s" |
+