diff --git a/ItemDisguise/.settings/org.eclipse.core.resources.prefs b/ItemDisguise/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000..1a9b29c0 --- /dev/null +++ b/ItemDisguise/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=cp1252 diff --git a/ItemDisguise/target/ItemDisguise-1.0.0.jar b/ItemDisguise/target/ItemDisguise-1.0.0.jar new file mode 100644 index 00000000..746a95b6 Binary files /dev/null and b/ItemDisguise/target/ItemDisguise-1.0.0.jar differ diff --git a/ItemDisguise/target/classes/com/comphenix/itemdisguise/HideEnchantmentsListener$1.class b/ItemDisguise/target/classes/com/comphenix/itemdisguise/HideEnchantmentsListener$1.class new file mode 100644 index 00000000..1d840c01 Binary files /dev/null and b/ItemDisguise/target/classes/com/comphenix/itemdisguise/HideEnchantmentsListener$1.class differ diff --git a/ItemDisguise/target/classes/com/comphenix/itemdisguise/HideEnchantmentsListener$2.class b/ItemDisguise/target/classes/com/comphenix/itemdisguise/HideEnchantmentsListener$2.class new file mode 100644 index 00000000..42f31252 Binary files /dev/null and b/ItemDisguise/target/classes/com/comphenix/itemdisguise/HideEnchantmentsListener$2.class differ diff --git a/ItemDisguise/target/classes/com/comphenix/itemdisguise/HideEnchantmentsListener.class b/ItemDisguise/target/classes/com/comphenix/itemdisguise/HideEnchantmentsListener.class new file mode 100644 index 00000000..7d4de35b Binary files /dev/null and b/ItemDisguise/target/classes/com/comphenix/itemdisguise/HideEnchantmentsListener.class differ diff --git a/ItemDisguise/target/classes/com/comphenix/itemdisguise/ItemDisguiseMod.class b/ItemDisguise/target/classes/com/comphenix/itemdisguise/ItemDisguiseMod.class new file mode 100644 index 00000000..a00cd5b0 Binary files /dev/null and b/ItemDisguise/target/classes/com/comphenix/itemdisguise/ItemDisguiseMod.class differ diff --git a/ItemDisguise/target/classes/plugin.yml b/ItemDisguise/target/classes/plugin.yml new file mode 100644 index 00000000..7639f0b5 --- /dev/null +++ b/ItemDisguise/target/classes/plugin.yml @@ -0,0 +1,14 @@ +name: ItemDisguiseMod +version: 1.0.0 +description: Change the appearance of inventory items. +author: Comphenix +website: http://www.comphenix.net/ItemDisguise + +main: com.comphenix.itemdisguise.ItemDisguiseMod +depends: [ProtocolLib] +database: false + +commands: + explosion: + description: Creates a fake explosion around the caller. + usage: / \ No newline at end of file diff --git a/ItemDisguise/target/maven-archiver/pom.properties b/ItemDisguise/target/maven-archiver/pom.properties new file mode 100644 index 00000000..10155862 --- /dev/null +++ b/ItemDisguise/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Thu Oct 11 09:08:39 CEST 2012 +version=1.0.0 +groupId=com.comphenix.itemdisguise +artifactId=ItemDisguise diff --git a/Javadoc/com/comphenix/protocol/AsynchronousManager.html b/Javadoc/com/comphenix/protocol/AsynchronousManager.html index dd0d28db..dfd2b78e 100644 --- a/Javadoc/com/comphenix/protocol/AsynchronousManager.html +++ b/Javadoc/com/comphenix/protocol/AsynchronousManager.html @@ -135,14 +135,14 @@ java.util.Set<java.lang.Integer> getReceivingFilters() -
Retrieves a immutable set containing the ID of the recieved client packets that will be +
Retrieves a immutable set containing the ID of the recieved client packets that will be observed by the asynchronous listeners.
java.util.Set<java.lang.Integer> getSendingFilters() -
Retrieves a immutable set containing the ID of the sent server packets that will be +
Retrieves a immutable set containing the ID of the sent server packets that will be observed by the asynchronous listeners.
@@ -198,8 +198,8 @@
  • registerAsyncHandler

    AsyncListenerHandler registerAsyncHandler(PacketListener listener)
    -
    Registers an asynchronous packet handler. -

    +

    Registers an asynchronous packet handler. +

    To start listening asynchronously, pass the getListenerLoop() runnable to a different thread.

    Parameters:
    listener - - the packet listener that will recieve these asynchronous events.
    Returns:
    An asynchrouns handler.
    @@ -234,7 +234,7 @@
  • getSendingFilters

    java.util.Set<java.lang.Integer> getSendingFilters()
    -
    Retrieves a immutable set containing the ID of the sent server packets that will be +
    Retrieves a immutable set containing the ID of the sent server packets that will be observed by the asynchronous listeners.
    Returns:
    Every filtered server packet.
  • @@ -246,7 +246,7 @@
  • getReceivingFilters

    java.util.Set<java.lang.Integer> getReceivingFilters()
    -
    Retrieves a immutable set containing the ID of the recieved client packets that will be +
    Retrieves a immutable set containing the ID of the recieved client packets that will be observed by the asynchronous listeners.
    Returns:
    Every filtered client packet.
  • @@ -302,9 +302,9 @@
  • signalPacketTransmission

    void signalPacketTransmission(PacketEvent packet)
    -
    Signal that a packet is ready to be transmitted. -

    - This should only be called if AsyncMarker.incrementProcessingDelay() +

    Signal that a packet is ready to be transmitted. +

    + This should only be called if AsyncMarker.incrementProcessingDelay() has been called previously.

    Parameters:
    packet - - packet to signal.
  • diff --git a/Javadoc/com/comphenix/protocol/ProtocolLibrary.html b/Javadoc/com/comphenix/protocol/ProtocolLibrary.html index 5455f279..4e8b949d 100644 --- a/Javadoc/com/comphenix/protocol/ProtocolLibrary.html +++ b/Javadoc/com/comphenix/protocol/ProtocolLibrary.html @@ -290,8 +290,8 @@ extends org.bukkit.plugin.java.JavaPlugin
  • getStatistics

    public Statistics getStatistics()
    -
    Retrieve the metrics instance used to measure users of this library. -

    +

    Retrieve the metrics instance used to measure users of this library. +

    Note that this method may return NULL when the server is reloading or shutting down.

    Returns:
    Metrics instance container.
  • diff --git a/Javadoc/com/comphenix/protocol/ProtocolManager.html b/Javadoc/com/comphenix/protocol/ProtocolManager.html index a37fa553..c3dcfed3 100644 --- a/Javadoc/com/comphenix/protocol/ProtocolManager.html +++ b/Javadoc/com/comphenix/protocol/ProtocolManager.html @@ -234,10 +234,10 @@ extends

    addPacketListener

    void addPacketListener(PacketListener listener)
    -
    Adds a packet listener. -

    - Adding an already registered listener has no effect. If you need to change the packets - the current listener is observing, you must first remove the packet listener before you +

    Adds a packet listener. +

    + Adding an already registered listener has no effect. If you need to change the packets + the current listener is observing, you must first remove the packet listener before you can register it again.

    Parameters:
    listener - - new packet listener.
    @@ -249,8 +249,8 @@ extends

    removePacketListener

    void removePacketListener(PacketListener listener)
    -
    Removes a given packet listener. -

    +

    Removes a given packet listener. +

    Attempting to remove a listener that doesn't exist has no effect.

    Parameters:
    listener - - the packet listener to remove.
    @@ -286,11 +286,11 @@ extends PacketContainer createPacket(int id, boolean forceDefaults) -
    Constructs a new encapsulated Minecraft packet with the given ID. -

    - If set to true, the forceDefaults option will force the system to automatically - give non-primitive fields in the packet sensible default values. For instance, certain - packets - like Packet60Explosion - require a List or Set to be non-null. If the +

    Constructs a new encapsulated Minecraft packet with the given ID. +

    + If set to true, the forceDefaults option will force the system to automatically + give non-primitive fields in the packet sensible default values. For instance, certain + packets - like Packet60Explosion - require a List or Set to be non-null. If the forceDefaults option is true, the List or Set will be automatically created.

    Parameters:
    id - - packet ID.
    forceDefaults - - TRUE to use sensible defaults in most fields, FALSE otherwise.
    Returns:
    New encapsulated Minecraft packet.
    @@ -318,9 +318,9 @@ extends FieldAccessException -
    Completely refresh all clients about an entity. -

    - Note that this method is NOT thread safe. If you call this method from anything +

    Completely refresh all clients about an entity. +

    + Note that this method is NOT thread safe. If you call this method from anything but the main thread, it will throw an exception.

    Parameters:
    entity - - entity to refresh.
    observers - - the clients to update.
    Throws:
    diff --git a/Javadoc/com/comphenix/protocol/async/AsyncFilterManager.html b/Javadoc/com/comphenix/protocol/async/AsyncFilterManager.html index 901d8689..326c714e 100644 --- a/Javadoc/com/comphenix/protocol/async/AsyncFilterManager.html +++ b/Javadoc/com/comphenix/protocol/async/AsyncFilterManager.html @@ -184,14 +184,14 @@ implements java.util.Set<java.lang.Integer> getReceivingFilters() -
    Retrieves a immutable set containing the ID of the recieved client packets that will be +
    Retrieves a immutable set containing the ID of the recieved client packets that will be observed by the asynchronous listeners.
    java.util.Set<java.lang.Integer> getSendingFilters() -
    Retrieves a immutable set containing the ID of the sent server packets that will be +
    Retrieves a immutable set containing the ID of the sent server packets that will be observed by the asynchronous listeners.
    @@ -301,8 +301,8 @@ implements registerAsyncHandler
    public AsyncListenerHandler registerAsyncHandler(PacketListener listener)
    Description copied from interface: AsynchronousManager
    -
    Registers an asynchronous packet handler. -

    +

    Registers an asynchronous packet handler. +

    To start listening asynchronously, pass the getListenerLoop() runnable to a different thread.

    Specified by:
    @@ -319,11 +319,11 @@ implements registerAsyncHandler
    public AsyncListenerHandler registerAsyncHandler(PacketListener listener,
                                             boolean autoInject)
    -
    Registers an asynchronous packet handler. -

    - To start listening asynchronously, pass the getListenerLoop() runnable to a different thread. -

    - Asynchronous events will only be executed if a synchronous listener with the same packets is registered. +

    Registers an asynchronous packet handler. +

    + To start listening asynchronously, pass the getListenerLoop() runnable to a different thread. +

    + Asynchronous events will only be executed if a synchronous listener with the same packets is registered. If you already have a synchronous event, call this method with autoInject set to FALSE.

    Parameters:
    listener - - the packet listener that will recieve these asynchronous events.
    autoInject - - whether or not to automatically create the corresponding synchronous listener,
    Returns:
    An asynchrouns handler.
    @@ -379,7 +379,7 @@ implements getSendingFilters
    public java.util.Set<java.lang.Integer> getSendingFilters()
    -
    Retrieves a immutable set containing the ID of the sent server packets that will be +
    Retrieves a immutable set containing the ID of the sent server packets that will be observed by the asynchronous listeners.
    Specified by:
    @@ -395,7 +395,7 @@ implements getReceivingFilters
    public java.util.Set<java.lang.Integer> getReceivingFilters()
    -
    Retrieves a immutable set containing the ID of the recieved client packets that will be +
    Retrieves a immutable set containing the ID of the recieved client packets that will be observed by the asynchronous listeners.
    Specified by:
    @@ -508,9 +508,9 @@ implements signalPacketTransmission
    public void signalPacketTransmission(PacketEvent packet)
    Description copied from interface: AsynchronousManager
    -
    Signal that a packet is ready to be transmitted. -

    - This should only be called if AsyncMarker.incrementProcessingDelay() +

    Signal that a packet is ready to be transmitted. +

    + This should only be called if AsyncMarker.incrementProcessingDelay() has been called previously.

    Specified by:
    diff --git a/Javadoc/com/comphenix/protocol/async/AsyncListenerHandler.html b/Javadoc/com/comphenix/protocol/async/AsyncListenerHandler.html index 9dede55a..69fbfbd6 100644 --- a/Javadoc/com/comphenix/protocol/async/AsyncListenerHandler.html +++ b/Javadoc/com/comphenix/protocol/async/AsyncListenerHandler.html @@ -318,9 +318,9 @@ extends java.lang.Object
  • getListenerLoop

    public AsyncRunnable getListenerLoop()
    -
    Create a worker that will initiate the listener loop. Note that using stop() to - close a specific worker is less efficient than stopping an arbitrary worker. -

    +

    Create a worker that will initiate the listener loop. Note that using stop() to + close a specific worker is less efficient than stopping an arbitrary worker. +

    Warning: Never call the run() method in the main thread.

  • @@ -341,25 +341,25 @@ extends java.lang.Object
  • start

    public void start(com.google.common.base.Function<AsyncRunnable,java.lang.Void> executor)
    -
    Start a singler worker thread handling the asynchronous listener. -

    - This method is intended to allow callers to customize the thread priority - before the worker loop is actually called. This is simpler than to - schedule the worker threads manually. -

    
    - listenerHandler.start(new Function<AsyncRunnable, Void>() {
    -     @Override
    -     public Void apply(@Nullable AsyncRunnable workerLoop) {
    -         Thread thread = Thread.currentThread();
    -         int prevPriority = thread.getPriority();
    -               
    -         thread.setPriority(Thread.MIN_PRIORITY);
    -         workerLoop.run();
    -         thread.setPriority(prevPriority);
    -         return null;
    -     }
    -   });
    - }
    +
    Start a singler worker thread handling the asynchronous listener. +

    + This method is intended to allow callers to customize the thread priority + before the worker loop is actually called. This is simpler than to + schedule the worker threads manually. +

    
    + listenerHandler.start(new Function<AsyncRunnable, Void>() {
    +     @Override
    +     public Void apply(@Nullable AsyncRunnable workerLoop) {
    +         Thread thread = Thread.currentThread();
    +         int prevPriority = thread.getPriority();
    +               
    +         thread.setPriority(Thread.MIN_PRIORITY);
    +         workerLoop.run();
    +         thread.setPriority(prevPriority);
    +         return null;
    +     }
    +   });
    + }
      
    Parameters:
    executor - - a method that will execute the given listener loop.
  • @@ -371,9 +371,9 @@ extends java.lang.Object
  • getFriendlyWorkerName

    public java.lang.String getFriendlyWorkerName(int id)
    -
    Create a friendly thread name using the following convention: -

    -     Protocol Worker {id} - {plugin} - [recv: {packets}, send: {packets}] +

    Create a friendly thread name using the following convention: +

    +     Protocol Worker {id} - {plugin} - [recv: {packets}, send: {packets}]

    Parameters:
    id - - the worker ID.
    Returns:
    A friendly thread name.
    @@ -418,8 +418,8 @@ extends java.lang.Object
  • setWorkers

    public void setWorkers(int count)
    -
    Set the current number of workers. -

    +

    Set the current number of workers. +

    This method can only be called with a count of zero when the listener is closing.

    Parameters:
    count - - new number of workers.
  • @@ -431,8 +431,8 @@ extends java.lang.Object
  • getWorkers

    public int getWorkers()
    -
    Retrieve the current number of registered workers. -

    +

    Retrieve the current number of registered workers. +

    Note that the returned value may be out of data.

    Returns:
    Number of registered workers.
  • diff --git a/Javadoc/com/comphenix/protocol/async/AsyncMarker.html b/Javadoc/com/comphenix/protocol/async/AsyncMarker.html index 41e6464e..94923f54 100644 --- a/Javadoc/com/comphenix/protocol/async/AsyncMarker.html +++ b/Javadoc/com/comphenix/protocol/async/AsyncMarker.html @@ -103,8 +103,8 @@
    public class AsyncMarker
     extends java.lang.Object
     implements java.io.Serializable, java.lang.Comparable<AsyncMarker>
    -
    Contains information about the packet that is being processed by asynchronous listeners. -

    +

    Contains information about the packet that is being processed by asynchronous listeners. +

    Asynchronous listeners can use this to set packet timeout or transmission order.

    Author:
    Kristian
    @@ -397,8 +397,8 @@ implements java.io.Serializable, java.lang.Comparable<

    getNewSendingIndex

    public long getNewSendingIndex()
    -
    Retrieve the desired sending order after processing has completed. -

    +

    Retrieve the desired sending order after processing has completed. +

    Higher sending order means lower priority.

    Returns:
    Desired sending order.
    @@ -410,8 +410,8 @@ implements java.io.Serializable, java.lang.Comparable<

    setNewSendingIndex

    public void setNewSendingIndex(long newSendingIndex)
    -
    Sets the desired sending order after processing has completed. -

    +

    Sets the desired sending order after processing has completed. +

    Higher sending order means lower priority.

    Parameters:
    newSendingIndex - - new packet send index.
    @@ -456,17 +456,17 @@ implements java.io.Serializable, java.lang.Comparable<

    incrementProcessingDelay

    public int incrementProcessingDelay()
    -
    Increment the number of times this packet must be signalled as done before its transmitted. -

    - 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 - AsyncFilterManager.signalPacketTransmission(PacketEvent), - even if the packet is cancelled, after this method is called. -

    - It is recommended that processing outside a packet listener is wrapped in a synchronized block - using the getProcessingLock() method. -

    - To decrement the processing delay, call signalPacketUpdate. A thread that calls this method +

    Increment the number of times this packet must be signalled as done before its transmitted. +

    + 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 + AsyncFilterManager.signalPacketTransmission(PacketEvent), + even if the packet is cancelled, after this method is called. +

    + It is recommended that processing outside a packet listener is wrapped in a synchronized block + using the 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.

    Returns:
    The new processing delay.
    @@ -511,9 +511,9 @@ implements java.io.Serializable, java.lang.Comparable<

    getProcessingLock

    public java.lang.Object getProcessingLock()
    -
    Processing lock used to synchronize access to the parent PacketEvent and PacketContainer. -

    - This lock is automatically acquired for every asynchronous packet listener. It should only be +

    Processing lock used to synchronize access to the parent PacketEvent and PacketContainer. +

    + This lock is automatically acquired for every asynchronous packet listener. It should only be used to synchronize access to a PacketEvent if it's processing has been delayed.

    Returns:
    A processing lock.
    @@ -579,9 +579,9 @@ implements java.io.Serializable, java.lang.Comparable<

    setAsyncCancelled

    public void setAsyncCancelled(boolean asyncCancelled)
    -
    Set whether or not the asynchronous handling should be cancelled. -

    - This is only relevant during the synchronous processing. Asynchronous +

    Set whether or not the asynchronous handling should be cancelled. +

    + This is only relevant during the synchronous processing. Asynchronous listeners should use the normal cancel-field to cancel a PacketEvent.

    Parameters:
    asyncCancelled - - TRUE to cancel it, FALSE otherwise.
    diff --git a/Javadoc/com/comphenix/protocol/async/AsyncRunnable.html b/Javadoc/com/comphenix/protocol/async/AsyncRunnable.html index 4e8eb16a..820f95cc 100644 --- a/Javadoc/com/comphenix/protocol/async/AsyncRunnable.html +++ b/Javadoc/com/comphenix/protocol/async/AsyncRunnable.html @@ -180,8 +180,8 @@ extends java.lang.Runnable

    stop

    boolean stop()
                  throws java.lang.InterruptedException
    -
    Stop the given runnable. -

    +

    Stop the given runnable. +

    This may not occur right away.

    Returns:
    TRUE if the thread was stopped, FALSE if it was already stopped.
    Throws:
    diff --git a/Javadoc/com/comphenix/protocol/concurrency/AbstractConcurrentListenerMultimap.html b/Javadoc/com/comphenix/protocol/concurrency/AbstractConcurrentListenerMultimap.html index c2ffdbc8..4c516b0f 100644 --- a/Javadoc/com/comphenix/protocol/concurrency/AbstractConcurrentListenerMultimap.html +++ b/Javadoc/com/comphenix/protocol/concurrency/AbstractConcurrentListenerMultimap.html @@ -249,8 +249,8 @@ extends java.lang.Object
  • getListener

    public java.util.Collection<PrioritizedListener<TListener>> getListener(int packetID)
    -
    Retrieve the registered listeners, in order from the lowest to the highest priority. -

    +

    Retrieve the registered listeners, in order from the lowest to the highest priority. +

    The returned list is thread-safe and doesn't require synchronization.

    Parameters:
    packetID - - packet ID.
    Returns:
    Registered listeners.
    diff --git a/Javadoc/com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html b/Javadoc/com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html index 0bfa631d..310cb2ab 100644 --- a/Javadoc/com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html +++ b/Javadoc/com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html @@ -331,8 +331,8 @@ implements java.lang.Iterable<T>, java.util.Collection<T>
  • remove

    public boolean remove(java.lang.Object value)
    -
    Removes from the list by making a new list with every element except the one given. -

    +

    Removes from the list by making a new list with every element except the one given. +

    Objects will be compared using the given objects equals() method.

    Specified by:
    @@ -410,7 +410,7 @@ implements java.lang.Iterable<T>, java.util.Collection<T>
  • iterator

    public java.util.Iterator<T> iterator()
    -
    Retrieves an iterator over the elements in the given list. +
    Retrieves an iterator over the elements in the given list. Warning: No not attempt to remove elements using the iterator.
    Specified by:
    diff --git a/Javadoc/com/comphenix/protocol/events/ConnectionSide.html b/Javadoc/com/comphenix/protocol/events/ConnectionSide.html index 06b03de5..30a78a6f 100644 --- a/Javadoc/com/comphenix/protocol/events/ConnectionSide.html +++ b/Javadoc/com/comphenix/protocol/events/ConnectionSide.html @@ -174,7 +174,7 @@ extends java.lang.Enum< static ConnectionSide[] values() -
    Returns an array containing the constants of this enum type, in +
    Returns an array containing the constants of this enum type, in the order they are declared.
    @@ -252,14 +252,14 @@ the order they are declared.
  • values

    public static ConnectionSide[] values()
    -
    Returns an array containing the constants of this enum type, in -the order they are declared. This method may be used to iterate -over the constants as follows: -
    -for (ConnectionSide c : ConnectionSide.values())
    -    System.out.println(c);
    +
    Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
    +for (ConnectionSide c : ConnectionSide.values())
    +    System.out.println(c);
     
    -
    Returns:
    an array containing the constants of this enum type, in +
    Returns:
    an array containing the constants of this enum type, in the order they are declared
  • @@ -270,14 +270,14 @@ the order they are declared
  • valueOf

    public static ConnectionSide valueOf(java.lang.String name)
    -
    Returns the enum constant of this type with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this type. (Extraneous whitespace characters are +
    Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are not permitted.)
    Parameters:
    name - the name of the enum constant to be returned.
    Returns:
    the enum constant with the specified name
    Throws:
    -
    java.lang.IllegalArgumentException - if this enum type has no constant +
    java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
    java.lang.NullPointerException - if the argument is null
  • diff --git a/Javadoc/com/comphenix/protocol/events/ListenerPriority.html b/Javadoc/com/comphenix/protocol/events/ListenerPriority.html index 70dd91c8..071d1bc6 100644 --- a/Javadoc/com/comphenix/protocol/events/ListenerPriority.html +++ b/Javadoc/com/comphenix/protocol/events/ListenerPriority.html @@ -134,7 +134,7 @@ extends java.lang.Enum< HIGHEST -
    Event call is critical and must have the final say in what happens to the +
    Event call is critical and must have the final say in what happens to the event.
    @@ -145,7 +145,7 @@ extends java.lang.Enum< LOWEST -
    Event call is of very low importance and should be ran first, to allow +
    Event call is of very low importance and should be ran first, to allow other plugins to further customise the outcome.
    @@ -189,7 +189,7 @@ extends java.lang.Enum< static ListenerPriority[] values() -
    Returns an array containing the constants of this enum type, in +
    Returns an array containing the constants of this enum type, in the order they are declared.
    @@ -229,7 +229,7 @@ the order they are declared.
  • LOWEST

    public static final ListenerPriority LOWEST
    -
    Event call is of very low importance and should be ran first, to allow +
    Event call is of very low importance and should be ran first, to allow other plugins to further customise the outcome.
  • @@ -270,7 +270,7 @@ the order they are declared.
  • HIGHEST

    public static final ListenerPriority HIGHEST
    -
    Event call is critical and must have the final say in what happens to the +
    Event call is critical and must have the final say in what happens to the event.
  • @@ -281,8 +281,8 @@ the order they are declared.
  • MONITOR

    public static final ListenerPriority MONITOR
    -
    Event is listened to purely for monitoring the outcome of an event. -

    +

    Event is listened to purely for monitoring the outcome of an event. +

    No modifications to the event should be made under this priority.

  • @@ -301,14 +301,14 @@ the order they are declared.
  • values

    public static ListenerPriority[] values()
    -
    Returns an array containing the constants of this enum type, in -the order they are declared. This method may be used to iterate -over the constants as follows: -
    -for (ListenerPriority c : ListenerPriority.values())
    -    System.out.println(c);
    +
    Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
    +for (ListenerPriority c : ListenerPriority.values())
    +    System.out.println(c);
     
    -
    Returns:
    an array containing the constants of this enum type, in +
    Returns:
    an array containing the constants of this enum type, in the order they are declared
  • @@ -319,14 +319,14 @@ the order they are declared
  • valueOf

    public static ListenerPriority valueOf(java.lang.String name)
    -
    Returns the enum constant of this type with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this type. (Extraneous whitespace characters are +
    Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are not permitted.)
    Parameters:
    name - the name of the enum constant to be returned.
    Returns:
    the enum constant with the specified name
    Throws:
    -
    java.lang.IllegalArgumentException - if this enum type has no constant +
    java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
    java.lang.NullPointerException - if the argument is null
  • diff --git a/Javadoc/com/comphenix/protocol/events/PacketAdapter.html b/Javadoc/com/comphenix/protocol/events/PacketAdapter.html index 0eda4a46..deb1dd88 100644 --- a/Javadoc/com/comphenix/protocol/events/PacketAdapter.html +++ b/Javadoc/com/comphenix/protocol/events/PacketAdapter.html @@ -333,11 +333,11 @@ implements PacketEvent event)
    Description copied from interface: PacketListener
    -
    Invoked right before a recieved packet from a client is being processed. -

    - WARNING:
    - This method will be called asynchronously! You should synchronize with the main - thread using scheduleSyncDelayedTask +

    Invoked right before a recieved packet from a client is being processed. +

    + WARNING:
    + This method will be called asynchronously! You should synchronize with the main + thread using scheduleSyncDelayedTask if you need to call the Bukkit API.

    Specified by:
    @@ -353,10 +353,10 @@ implements PacketEvent event)
    Description copied from interface: PacketListener
    -
    Invoked right before a packet is transmitted from the server to the client. -

    - Note that the packet may be replaced, if needed. -

    +

    Invoked right before a packet is transmitted from the server to the client. +

    + Note that the packet may be replaced, if needed. +

    This method is executed on the main thread, and thus the Bukkit API is safe to use.

    Specified by:
    diff --git a/Javadoc/com/comphenix/protocol/events/PacketContainer.html b/Javadoc/com/comphenix/protocol/events/PacketContainer.html index bd5c4de1..33d7e548 100644 --- a/Javadoc/com/comphenix/protocol/events/PacketContainer.html +++ b/Javadoc/com/comphenix/protocol/events/PacketContainer.html @@ -374,9 +374,9 @@ implements java.io.Serializable
  • getItemModifier

    public StructureModifier<org.bukkit.inventory.ItemStack> getItemModifier()
    -
    Retrieves a read/write structure for ItemStack. -

    - This modifier will automatically marshall between the Bukkit ItemStack and the +

    Retrieves a read/write structure for ItemStack. +

    + This modifier will automatically marshall between the Bukkit ItemStack and the internal Minecraft ItemStack.

    Returns:
    A modifier for ItemStack fields.
  • @@ -388,9 +388,9 @@ implements java.io.Serializable
  • getItemArrayModifier

    public StructureModifier<org.bukkit.inventory.ItemStack[]> getItemArrayModifier()
    -
    Retrieves a read/write structure for arrays of ItemStacks. -

    - This modifier will automatically marshall between the Bukkit ItemStack and the +

    Retrieves a read/write structure for arrays of ItemStacks. +

    + This modifier will automatically marshall between the Bukkit ItemStack and the internal Minecraft ItemStack.

    Returns:
    A modifier for ItemStack array fields.
  • @@ -402,9 +402,9 @@ implements java.io.Serializable
  • getWorldTypeModifier

    public StructureModifier<org.bukkit.WorldType> getWorldTypeModifier()
    -
    Retrieves a read/write structure for the world type enum. -

    - This modifier will automatically marshall between the Bukkit world type and the +

    Retrieves a read/write structure for the world type enum. +

    + This modifier will automatically marshall between the Bukkit world type and the internal Minecraft world type.

    Returns:
    A modifier for world type fields.
  • @@ -416,11 +416,11 @@ implements java.io.Serializable
  • getEntityModifier

    public StructureModifier<org.bukkit.entity.Entity> getEntityModifier(org.bukkit.World world)
    -
    Retrieves a read/write structure for entity objects. -

    - Note that entities are transmitted by integer ID, and the type may not be enough - to distinguish between entities and other values. Thus, this structure modifier - MAY return null or invalid entities for certain fields. Using the correct index +

    Retrieves a read/write structure for entity objects. +

    + Note that entities are transmitted by integer ID, and the type may not be enough + to distinguish between entities and other values. Thus, this structure modifier + MAY return null or invalid entities for certain fields. Using the correct index is essential.

    Returns:
    A modifier entity types.
  • diff --git a/Javadoc/com/comphenix/protocol/events/PacketEvent.html b/Javadoc/com/comphenix/protocol/events/PacketEvent.html index dd61fed7..8e9317a7 100644 --- a/Javadoc/com/comphenix/protocol/events/PacketEvent.html +++ b/Javadoc/com/comphenix/protocol/events/PacketEvent.html @@ -412,8 +412,8 @@ implements org.bukkit.event.Cancellable
  • isServerPacket

    public boolean isServerPacket()
    -
    Whether or not this packet was created by the server. -

    +

    Whether or not this packet was created by the server. +

    Most listeners can deduce this by noting which listener method was invoked.

    Returns:
    TRUE if the packet was created by the server, FALSE if it was created by a client.
  • @@ -425,11 +425,11 @@ implements org.bukkit.event.Cancellable
  • getAsyncMarker

    public AsyncMarker getAsyncMarker()
    -
    Retrieve the asynchronous marker. -

    - If the packet is synchronous, this marker will be used to schedule an asynchronous event. In the following - asynchronous event, the marker is used to correctly pass the packet around to the different threads. -

    +

    Retrieve the asynchronous marker. +

    + If the packet is synchronous, this marker will be used to schedule an asynchronous event. In the following + asynchronous event, the marker is used to correctly pass the packet around to the different threads. +

    Note that if there are no asynchronous events that can receive this packet, the marker is NULL.

    Returns:
    The current asynchronous marker, or NULL.
  • @@ -441,11 +441,11 @@ implements org.bukkit.event.Cancellable
  • setAsyncMarker

    public void setAsyncMarker(AsyncMarker asyncMarker)
    -
    Set the asynchronous marker. -

    - If the marker is non-null at the end of an synchronous event processing, the packet will be scheduled - to be processed asynchronously with the given settings. -

    +

    Set the asynchronous marker. +

    + If the marker is non-null at the end of an synchronous event processing, the packet will be scheduled + to be processed asynchronously with the given settings. +

    Note that if there are no asynchronous events that can receive this packet, the marker should be NULL.

    Parameters:
    asyncMarker - - the new asynchronous marker, or NULL.
    Throws:
    diff --git a/Javadoc/com/comphenix/protocol/events/PacketListener.html b/Javadoc/com/comphenix/protocol/events/PacketListener.html index 1ce25383..d7ce8574 100644 --- a/Javadoc/com/comphenix/protocol/events/PacketListener.html +++ b/Javadoc/com/comphenix/protocol/events/PacketListener.html @@ -93,8 +93,8 @@

    public interface PacketListener
    -
    Represents a listener that recieves notifications when packets are sent or recieved. -

    +

    Represents a listener that recieves notifications when packets are sent or recieved. +

    Use PacketAdapter for a simple wrapper around this interface.

    Author:
    Kristian
    @@ -168,10 +168,10 @@
  • onPacketSending

    void onPacketSending(PacketEvent event)
    -
    Invoked right before a packet is transmitted from the server to the client. -

    - Note that the packet may be replaced, if needed. -

    +

    Invoked right before a packet is transmitted from the server to the client. +

    + Note that the packet may be replaced, if needed. +

    This method is executed on the main thread, and thus the Bukkit API is safe to use.

    Parameters:
    event - - the packet that should be sent.
  • @@ -183,11 +183,11 @@
  • onPacketReceiving

    void onPacketReceiving(PacketEvent event)
    -
    Invoked right before a recieved packet from a client is being processed. -

    - WARNING:
    - This method will be called asynchronously! You should synchronize with the main - thread using scheduleSyncDelayedTask +

    Invoked right before a recieved packet from a client is being processed. +

    + WARNING:
    + This method will be called asynchronously! You should synchronize with the main + thread using scheduleSyncDelayedTask if you need to call the Bukkit API.

    Parameters:
    event - - the packet that has been recieved.
  • diff --git a/Javadoc/com/comphenix/protocol/events/class-use/ConnectionSide.html b/Javadoc/com/comphenix/protocol/events/class-use/ConnectionSide.html index e29e880c..8c65beb4 100644 --- a/Javadoc/com/comphenix/protocol/events/class-use/ConnectionSide.html +++ b/Javadoc/com/comphenix/protocol/events/class-use/ConnectionSide.html @@ -117,7 +117,7 @@ static ConnectionSide[] ConnectionSide.values() -
    Returns an array containing the constants of this enum type, in +
    Returns an array containing the constants of this enum type, in the order they are declared.
    diff --git a/Javadoc/com/comphenix/protocol/events/class-use/ListenerPriority.html b/Javadoc/com/comphenix/protocol/events/class-use/ListenerPriority.html index 15fe9274..a20f4cdc 100644 --- a/Javadoc/com/comphenix/protocol/events/class-use/ListenerPriority.html +++ b/Javadoc/com/comphenix/protocol/events/class-use/ListenerPriority.html @@ -114,7 +114,7 @@ static ListenerPriority[] ListenerPriority.values() -
    Returns an array containing the constants of this enum type, in +
    Returns an array containing the constants of this enum type, in the order they are declared.
    diff --git a/Javadoc/com/comphenix/protocol/injector/BukkitUnwrapper.html b/Javadoc/com/comphenix/protocol/injector/BukkitUnwrapper.html index 8a18d96b..b5059294 100644 --- a/Javadoc/com/comphenix/protocol/injector/BukkitUnwrapper.html +++ b/Javadoc/com/comphenix/protocol/injector/BukkitUnwrapper.html @@ -103,12 +103,12 @@
    public class BukkitUnwrapper
     extends java.lang.Object
     implements PacketConstructor.Unwrapper
    -
    Represents an object capable of converting wrapped Bukkit objects into NMS objects. -

    - Typical conversions include: -

      -
    • org.bukkit.entity.Player -> net.minecraft.server.EntityPlayer
    • -
    • org.bukkit.World -> net.minecraft.server.WorldServer
    • +
      Represents an object capable of converting wrapped Bukkit objects into NMS objects. +

      + Typical conversions include: +

        +
      • org.bukkit.entity.Player -> net.minecraft.server.EntityPlayer
      • +
      • org.bukkit.World -> net.minecraft.server.WorldServer
      Author:
      Kristian
      diff --git a/Javadoc/com/comphenix/protocol/injector/NetworkServerInjector.html b/Javadoc/com/comphenix/protocol/injector/NetworkServerInjector.html index d4ceb771..ad651608 100644 --- a/Javadoc/com/comphenix/protocol/injector/NetworkServerInjector.html +++ b/Javadoc/com/comphenix/protocol/injector/NetworkServerInjector.html @@ -535,8 +535,8 @@ extends java.lang.Object
    • checkListener

      public void checkListener(PacketListener listener)
      -
      Invoked before a new listener is registered. -

      +

      Invoked before a new listener is registered. +

      The player injector should throw an exception if this listener cannot be properly supplied with packet events.

      Parameters:
      listener - - the listener that is about to be registered.
    • diff --git a/Javadoc/com/comphenix/protocol/injector/PacketConstructor.html b/Javadoc/com/comphenix/protocol/injector/PacketConstructor.html index 14d750bd..9e38f538 100644 --- a/Javadoc/com/comphenix/protocol/injector/PacketConstructor.html +++ b/Javadoc/com/comphenix/protocol/injector/PacketConstructor.html @@ -219,8 +219,8 @@ extends java.lang.Object
    • DEFAULT

      public static PacketConstructor DEFAULT
      -
      A packet constructor that automatically converts Bukkit types to their NMS conterpart. -

      +

      A packet constructor that automatically converts Bukkit types to their NMS conterpart. +

      Remember to call withPacket().

    diff --git a/Javadoc/com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html b/Javadoc/com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html index 2b2c8a9c..0260d62e 100644 --- a/Javadoc/com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html +++ b/Javadoc/com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html @@ -170,7 +170,7 @@ extends java.lang.Enum< static PacketFilterManager.PlayerInjectHooks[] values() -
    Returns an array containing the constants of this enum type, in +
    Returns an array containing the constants of this enum type, in the order they are declared.
    @@ -210,8 +210,8 @@ the order they are declared.
  • NETWORK_MANAGER_OBJECT

    public static final PacketFilterManager.PlayerInjectHooks NETWORK_MANAGER_OBJECT
    -
    Override the network handler object itself. Only works in 1.3. -

    +

    Override the network handler object itself. Only works in 1.3. +

    Cannot intercept MapChunk packets.

  • @@ -222,8 +222,8 @@ the order they are declared.
  • NETWORK_HANDLER_FIELDS

    public static final PacketFilterManager.PlayerInjectHooks NETWORK_HANDLER_FIELDS
    -
    Override the packet queue lists in NetworkHandler. -

    +

    Override the packet queue lists in NetworkHandler. +

    Cannot intercept MapChunk packets.

  • @@ -252,14 +252,14 @@ the order they are declared.
  • values

    public static PacketFilterManager.PlayerInjectHooks[] values()
    -
    Returns an array containing the constants of this enum type, in -the order they are declared. This method may be used to iterate -over the constants as follows: -
    -for (PacketFilterManager.PlayerInjectHooks c : PacketFilterManager.PlayerInjectHooks.values())
    -    System.out.println(c);
    +
    Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
    +for (PacketFilterManager.PlayerInjectHooks c : PacketFilterManager.PlayerInjectHooks.values())
    +    System.out.println(c);
     
    -
    Returns:
    an array containing the constants of this enum type, in +
    Returns:
    an array containing the constants of this enum type, in the order they are declared
  • @@ -270,14 +270,14 @@ the order they are declared
  • valueOf

    public static PacketFilterManager.PlayerInjectHooks valueOf(java.lang.String name)
    -
    Returns the enum constant of this type with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this type. (Extraneous whitespace characters are +
    Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are not permitted.)
    Parameters:
    name - the name of the enum constant to be returned.
    Returns:
    the enum constant with the specified name
    Throws:
    -
    java.lang.IllegalArgumentException - if this enum type has no constant +
    java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
    java.lang.NullPointerException - if the argument is null
  • diff --git a/Javadoc/com/comphenix/protocol/injector/PacketFilterManager.html b/Javadoc/com/comphenix/protocol/injector/PacketFilterManager.html index 5558ee27..7ea904be 100644 --- a/Javadoc/com/comphenix/protocol/injector/PacketFilterManager.html +++ b/Javadoc/com/comphenix/protocol/injector/PacketFilterManager.html @@ -461,10 +461,10 @@ implements addPacketListener
    public void addPacketListener(PacketListener listener)
    Description copied from interface: ProtocolManager
    -
    Adds a packet listener. -

    - Adding an already registered listener has no effect. If you need to change the packets - the current listener is observing, you must first remove the packet listener before you +

    Adds a packet listener. +

    + Adding an already registered listener has no effect. If you need to change the packets + the current listener is observing, you must first remove the packet listener before you can register it again.

    Specified by:
    @@ -494,8 +494,8 @@ implements removePacketListener
    public void removePacketListener(PacketListener listener)
    Description copied from interface: ProtocolManager
    -
    Removes a given packet listener. -

    +

    Removes a given packet listener. +

    Attempting to remove a listener that doesn't exist has no effect.

    Specified by:
    @@ -655,11 +655,11 @@ implements public PacketContainer createPacket(int id, boolean forceDefaults)
    Description copied from interface: ProtocolManager
    -
    Constructs a new encapsulated Minecraft packet with the given ID. -

    - If set to true, the forceDefaults option will force the system to automatically - give non-primitive fields in the packet sensible default values. For instance, certain - packets - like Packet60Explosion - require a List or Set to be non-null. If the +

    Constructs a new encapsulated Minecraft packet with the given ID. +

    + If set to true, the forceDefaults option will force the system to automatically + give non-primitive fields in the packet sensible default values. For instance, certain + packets - like Packet60Explosion - require a List or Set to be non-null. If the forceDefaults option is true, the List or Set will be automatically created.

    Specified by:
    @@ -725,9 +725,9 @@ implements FieldAccessException
    Description copied from interface: ProtocolManager
    -
    Completely refresh all clients about an entity. -

    - Note that this method is NOT thread safe. If you call this method from anything +

    Completely refresh all clients about an entity. +

    + Note that this method is NOT thread safe. If you call this method from anything but the main thread, it will throw an exception.

    Specified by:
    diff --git a/Javadoc/com/comphenix/protocol/injector/class-use/PacketFilterManager.PlayerInjectHooks.html b/Javadoc/com/comphenix/protocol/injector/class-use/PacketFilterManager.PlayerInjectHooks.html index 7d064bcb..6cd37a31 100644 --- a/Javadoc/com/comphenix/protocol/injector/class-use/PacketFilterManager.PlayerInjectHooks.html +++ b/Javadoc/com/comphenix/protocol/injector/class-use/PacketFilterManager.PlayerInjectHooks.html @@ -114,7 +114,7 @@ static PacketFilterManager.PlayerInjectHooks[] PacketFilterManager.PlayerInjectHooks.values() -
    Returns an array containing the constants of this enum type, in +
    Returns an array containing the constants of this enum type, in the order they are declared.
    diff --git a/Javadoc/com/comphenix/protocol/injector/player/NetworkServerInjector.html b/Javadoc/com/comphenix/protocol/injector/player/NetworkServerInjector.html index e613c9c3..08ebe8c0 100644 --- a/Javadoc/com/comphenix/protocol/injector/player/NetworkServerInjector.html +++ b/Javadoc/com/comphenix/protocol/injector/player/NetworkServerInjector.html @@ -591,8 +591,8 @@ extends java.lang.Object
  • checkListener

    public void checkListener(PacketListener listener)
    -
    Invoked before a new listener is registered. -

    +

    Invoked before a new listener is registered. +

    The player injector should throw an exception if this listener cannot be properly supplied with packet events.

    Parameters:
    listener - - the listener that is about to be registered.
  • diff --git a/Javadoc/com/comphenix/protocol/reflect/FieldUtils.html b/Javadoc/com/comphenix/protocol/reflect/FieldUtils.html index 1d369fb6..751cacfc 100644 --- a/Javadoc/com/comphenix/protocol/reflect/FieldUtils.html +++ b/Javadoc/com/comphenix/protocol/reflect/FieldUtils.html @@ -98,11 +98,11 @@
    public class FieldUtils
     extends java.lang.Object
    -
    Utilities for working with fields by reflection. Adapted and refactored from - the dormant [reflect] Commons sandbox component. -

    - The ability is provided to break the scoping restrictions coded by the - programmer. This can allow fields to be changed that shouldn't be. This +

    Utilities for working with fields by reflection. Adapted and refactored from + the dormant [reflect] Commons sandbox component. +

    + The ability is provided to break the scoping restrictions coded by the + programmer. This can allow fields to be changed that shouldn't be. This facility should be used with care.

    Since:
    2.5
    @@ -159,7 +159,7 @@ extends java.lang.Object getField(java.lang.Class cls, java.lang.String fieldName, boolean forceAccess) -
    Gets an accessible Field by name breaking scope if +
    Gets an accessible Field by name breaking scope if requested.
    @@ -316,9 +316,9 @@ extends java.lang.Object
  • FieldUtils

    public FieldUtils()
    -
    FieldUtils instances should NOT be constructed in standard programming. -

    - This constructor is public to permit tools that require a JavaBean +

    FieldUtils instances should NOT be constructed in standard programming. +

    + This constructor is public to permit tools that require a JavaBean instance to operate.

  • @@ -338,7 +338,7 @@ extends java.lang.Object

    getField

    public static java.lang.reflect.Field getField(java.lang.Class cls,
                                    java.lang.String fieldName)
    -
    Gets an accessible Field by name respecting scope. +
    Gets an accessible Field by name respecting scope. Superclasses/interfaces will be considered.
    Parameters:
    cls - the class to reflect, must not be null
    fieldName - the field name to obtain
    Returns:
    the Field object
    @@ -355,10 +355,10 @@ extends java.lang.Object
    public static java.lang.reflect.Field getField(java.lang.Class cls,
                                    java.lang.String fieldName,
                                    boolean forceAccess)
    -
    Gets an accessible Field by name breaking scope if +
    Gets an accessible Field by name breaking scope if requested. Superclasses/interfaces will be considered.
    -
    Parameters:
    cls - the class to reflect, must not be null
    fieldName - the field name to obtain
    forceAccess - whether to break scope restrictions using the - setAccessible method. False will +
    Parameters:
    cls - the class to reflect, must not be null
    fieldName - the field name to obtain
    forceAccess - whether to break scope restrictions using the + setAccessible method. False will only match public fields.
    Returns:
    the Field object
    Throws:
    @@ -391,7 +391,7 @@ extends java.lang.Object boolean forceAccess) throws java.lang.IllegalAccessException
    Read a static Field.
    -
    Parameters:
    field - to read
    forceAccess - whether to break scope restrictions using the +
    Parameters:
    field - to read
    forceAccess - whether to break scope restrictions using the setAccessible method.
    Returns:
    the field value
    Throws:
    @@ -427,8 +427,8 @@ extends java.lang.Object boolean forceAccess) throws java.lang.IllegalAccessException
    Read the named static field. Superclasses will be considered.
    -
    Parameters:
    cls - the class to reflect, must not be null
    fieldName - the field name to obtain
    forceAccess - whether to break scope restrictions using the - setAccessible method. False will +
    Parameters:
    cls - the class to reflect, must not be null
    fieldName - the field name to obtain
    forceAccess - whether to break scope restrictions using the + setAccessible method. False will only match public fields.
    Returns:
    the Field object
    Throws:
    @@ -464,7 +464,7 @@ extends java.lang.Object boolean forceAccess) throws java.lang.IllegalAccessException
    Read a Field.
    -
    Parameters:
    field - the field to use
    target - the object to call on, may be null for static fields
    forceAccess - whether to break scope restrictions using the +
    Parameters:
    field - the field to use
    target - the object to call on, may be null for static fields
    forceAccess - whether to break scope restrictions using the setAccessible method.
    Returns:
    the field value
    Throws:
    @@ -500,8 +500,8 @@ extends java.lang.Object boolean forceAccess) throws java.lang.IllegalAccessException
    Read the named field. Superclasses will be considered.
    -
    Parameters:
    target - the object to reflect, must not be null
    fieldName - the field name to obtain
    forceAccess - whether to break scope restrictions using the - setAccessible method. False will +
    Parameters:
    target - the object to reflect, must not be null
    fieldName - the field name to obtain
    forceAccess - whether to break scope restrictions using the + setAccessible method. False will only match public fields.
    Returns:
    the field value
    Throws:
    @@ -536,12 +536,12 @@ extends java.lang.Object boolean forceAccess) throws java.lang.IllegalAccessException
    Write a static Field.
    -
    Parameters:
    field - to write
    value - to set
    forceAccess - whether to break scope restrictions using the - setAccessible method. False will +
    Parameters:
    field - to write
    value - to set
    forceAccess - whether to break scope restrictions using the + setAccessible method. False will only match public fields.
    Throws:
    java.lang.IllegalArgumentException - if the field is null or not static
    -
    java.lang.IllegalAccessException - if the field is not made accessible or is +
    java.lang.IllegalAccessException - if the field is not made accessible or is final
    @@ -558,7 +558,7 @@ extends java.lang.Object
    Write a named public static Field. Superclasses will be considered.
    Parameters:
    cls - Class on which the Field is to be found
    fieldName - to write
    value - to set
    Throws:
    -
    java.lang.IllegalArgumentException - if the field cannot be located or is not +
    java.lang.IllegalArgumentException - if the field cannot be located or is not static
    java.lang.IllegalAccessException - if the field is not public or is final
    @@ -575,13 +575,13 @@ extends java.lang.Object boolean forceAccess) throws java.lang.IllegalAccessException
    Write a named static Field. Superclasses will be considered.
    -
    Parameters:
    cls - Class on which the Field is to be found
    fieldName - to write
    value - to set
    forceAccess - whether to break scope restrictions using the - setAccessible method. False will +
    Parameters:
    cls - Class on which the Field is to be found
    fieldName - to write
    value - to set
    forceAccess - whether to break scope restrictions using the + setAccessible method. False will only match public fields.
    Throws:
    -
    java.lang.IllegalArgumentException - if the field cannot be located or is not +
    java.lang.IllegalArgumentException - if the field cannot be located or is not static
    -
    java.lang.IllegalAccessException - if the field is not made accessible or is +
    java.lang.IllegalAccessException - if the field is not made accessible or is final
    @@ -614,12 +614,12 @@ extends java.lang.Object boolean forceAccess) throws java.lang.IllegalAccessException
    Write a field.
    -
    Parameters:
    field - to write
    target - the object to call on, may be null for static fields
    value - to set
    forceAccess - whether to break scope restrictions using the - setAccessible method. False will +
    Parameters:
    field - to write
    target - the object to call on, may be null for static fields
    value - to set
    forceAccess - whether to break scope restrictions using the + setAccessible method. False will only match public fields.
    Throws:
    java.lang.IllegalArgumentException - if the field is null
    -
    java.lang.IllegalAccessException - if the field is not made accessible or is +
    java.lang.IllegalAccessException - if the field is not made accessible or is final
    @@ -636,7 +636,7 @@ extends java.lang.Object
    Write a public field. Superclasses will be considered.
    Parameters:
    target - the object to reflect, must not be null
    fieldName - the field name to obtain
    value - to set
    Throws:
    -
    java.lang.IllegalArgumentException - if target or +
    java.lang.IllegalArgumentException - if target or fieldName is null
    java.lang.IllegalAccessException - if the field is not accessible
    @@ -653,11 +653,11 @@ extends java.lang.Object boolean forceAccess) throws java.lang.IllegalAccessException
    Write a field. Superclasses will be considered.
    -
    Parameters:
    target - the object to reflect, must not be null
    fieldName - the field name to obtain
    value - to set
    forceAccess - whether to break scope restrictions using the - setAccessible method. False will +
    Parameters:
    target - the object to reflect, must not be null
    fieldName - the field name to obtain
    value - to set
    forceAccess - whether to break scope restrictions using the + setAccessible method. False will only match public fields.
    Throws:
    -
    java.lang.IllegalArgumentException - if target or +
    java.lang.IllegalArgumentException - if target or fieldName is null
    java.lang.IllegalAccessException - if the field is not made accessible
    diff --git a/Javadoc/com/comphenix/protocol/reflect/FuzzyReflection.html b/Javadoc/com/comphenix/protocol/reflect/FuzzyReflection.html index 656d844f..7a078292 100644 --- a/Javadoc/com/comphenix/protocol/reflect/FuzzyReflection.html +++ b/Javadoc/com/comphenix/protocol/reflect/FuzzyReflection.html @@ -512,12 +512,12 @@ extends java.lang.Object
  • getFieldByType

    public java.lang.reflect.Field getFieldByType(java.lang.String typeRegex)
    -
    Retrieves a field by type. -

    - Note that the type is matched using the full canonical representation, i.e.: -

      -
    • java.util.List
    • -
    • net.comphenix.xp.ExperienceMod
    • +
      Retrieves a field by type. +

      + Note that the type is matched using the full canonical representation, i.e.: +

        +
      • java.util.List
      • +
      • net.comphenix.xp.ExperienceMod
      Parameters:
      typeRegex - - regular expression that will match the field type.
      Returns:
      The first field with a type that matches the given regular expression.
      @@ -531,12 +531,12 @@ extends java.lang.Object

      getFieldByType

      public java.lang.reflect.Field getFieldByType(java.lang.String typeRegex,
                                            java.util.Set<java.lang.Class> ignored)
      -
      Retrieves a field by type. -

      - Note that the type is matched using the full canonical representation, i.e.: -

        -
      • java.util.List
      • -
      • net.comphenix.xp.ExperienceMod
      • +
        Retrieves a field by type. +

        + Note that the type is matched using the full canonical representation, i.e.: +

          +
        • java.util.List
        • +
        • net.comphenix.xp.ExperienceMod
        Parameters:
        typeRegex - - regular expression that will match the field type.
        ignored - - types to ignore.
        Returns:
        The first field with a type that matches the given regular expression.
        diff --git a/Javadoc/com/comphenix/protocol/reflect/MethodUtils.html b/Javadoc/com/comphenix/protocol/reflect/MethodUtils.html index 3fb34c71..50868ef4 100644 --- a/Javadoc/com/comphenix/protocol/reflect/MethodUtils.html +++ b/Javadoc/com/comphenix/protocol/reflect/MethodUtils.html @@ -98,18 +98,18 @@
        public class MethodUtils
         extends java.lang.Object
        -

        Utility reflection methods focussed on methods in general rather than properties in particular.

        - -

        Known Limitations

        -

        Accessing Public Methods In A Default Access Superclass

        -

        There is an issue when invoking public methods contained in a default access superclass. - Reflection locates these methods fine and correctly assigns them as public. - However, an IllegalAccessException is thrown if the method is invoked.

        - -

        MethodUtils contains a workaround for this situation. - It will attempt to call setAccessible on this method. - If this call succeeds, then the method can be invoked as normal. - This call will only succeed when the application has sufficient security privilages. +

        Utility reflection methods focussed on methods in general rather than properties in particular.

        + +

        Known Limitations

        +

        Accessing Public Methods In A Default Access Superclass

        +

        There is an issue when invoking public methods contained in a default access superclass. + Reflection locates these methods fine and correctly assigns them as public. + However, an IllegalAccessException is thrown if the method is invoked.

        + +

        MethodUtils contains a workaround for this situation. + It will attempt to call setAccessible on this method. + If this call succeeds, then the method can be invoked as normal. + This call will only succeed when the application has sufficient security privilages. If this call fails then a warning will be logged and the method may fail.

        Author:
        Craig R. McClanahan, Ralph Schaer, Chris Audley, Rey François, Gregor Raýman, Jan Sorensen, Robert Burrell Donkin
        @@ -158,7 +158,7 @@ extends java.lang.Object static java.lang.reflect.Method getAccessibleMethod(java.lang.Class clazz, java.lang.reflect.Method method) -
        Return an accessible method (that is, one that can be invoked via +
        Return an accessible method (that is, one that can be invoked via reflection) that implements the specified Method.
        @@ -167,14 +167,14 @@ extends java.lang.Object getAccessibleMethod(java.lang.Class clazz, java.lang.String methodName, java.lang.Class[] parameterTypes) -
        Return an accessible method (that is, one that can be invoked via +
        Return an accessible method (that is, one that can be invoked via reflection) with given name and parameters.
        static java.lang.reflect.Method getAccessibleMethod(java.lang.reflect.Method method) -
        Return an accessible method (that is, one that can be invoked via +
        Return an accessible method (that is, one that can be invoked via reflection) that implements the specified Method.
        @@ -203,7 +203,7 @@ extends java.lang.Object invokeExactMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object arg) -
        Invoke a method whose parameter type matches exactly the object +
        Invoke a method whose parameter type matches exactly the object type.
        @@ -212,7 +212,7 @@ extends java.lang.Object invokeExactMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object[] args) -
        Invoke a method whose parameter types match exactly the object +
        Invoke a method whose parameter types match exactly the object types.
        @@ -222,7 +222,7 @@ extends java.lang.Object java.lang.String methodName, java.lang.Object[] args, java.lang.Class[] parameterTypes) -
        Invoke a method whose parameter types match exactly the parameter +
        Invoke a method whose parameter types match exactly the parameter types given.
        @@ -231,7 +231,7 @@ extends java.lang.Object invokeExactStaticMethod(java.lang.Class objectClass, java.lang.String methodName, java.lang.Object arg) -
        Invoke a static method whose parameter type matches exactly the object +
        Invoke a static method whose parameter type matches exactly the object type.
        @@ -240,7 +240,7 @@ extends java.lang.Object invokeExactStaticMethod(java.lang.Class objectClass, java.lang.String methodName, java.lang.Object[] args) -
        Invoke a static method whose parameter types match exactly the object +
        Invoke a static method whose parameter types match exactly the object types.
        @@ -250,7 +250,7 @@ extends java.lang.Object java.lang.String methodName, java.lang.Object[] args, java.lang.Class[] parameterTypes) -
        Invoke a static method whose parameter types match exactly the parameter +
        Invoke a static method whose parameter types match exactly the parameter types given.
        @@ -314,7 +314,7 @@ extends java.lang.Object static void setCacheMethods(boolean cacheMethods) -
        Set whether methods should be cached for greater performance or not, +
        Set whether methods should be cached for greater performance or not, default is true.
        @@ -370,9 +370,9 @@ extends java.lang.Object
      • setCacheMethods

        public static void setCacheMethods(boolean cacheMethods)
        -
        Set whether methods should be cached for greater performance or not, +
        Set whether methods should be cached for greater performance or not, default is true.
        -
        Parameters:
        cacheMethods - true if methods should be +
        Parameters:
        cacheMethods - true if methods should be cached for greater performance, otherwise false
        Since:
        1.8.0
      • @@ -401,27 +401,27 @@ extends java.lang.Object throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException -

        Invoke a named method whose parameter type matches the object type.

        - -

        The behaviour of this method is less deterministic - than invokeExactMethod(). - It loops through all methods with names that match - and then executes the first it finds with compatable parameters.

        - -

        This method supports calls to methods taking primitive parameters - via passing in wrapping classes. So, for example, a Boolean class - would match a boolean primitive.

        - -

        This is a convenient wrapper for - invokeMethod(Object object,String methodName,Object [] args). +

        Invoke a named method whose parameter type matches the object type.

        + +

        The behaviour of this method is less deterministic + than invokeExactMethod(). + It loops through all methods with names that match + and then executes the first it finds with compatable parameters.

        + +

        This method supports calls to methods taking primitive parameters + via passing in wrapping classes. So, for example, a Boolean class + would match a boolean primitive.

        + +

        This is a convenient wrapper for + invokeMethod(Object object,String methodName,Object [] args).

        Parameters:
        object - invoke method on this object
        methodName - get method with this name
        arg - use this argument
        Returns:
        The value returned by the invoked method
        Throws:
        java.lang.NoSuchMethodException - if there is no such accessible method
        -
        java.lang.reflect.InvocationTargetException - wraps an exception thrown by the +
        java.lang.reflect.InvocationTargetException - wraps an exception thrown by the method invoked
        -
        java.lang.IllegalAccessException - if the requested method is not accessible +
        java.lang.IllegalAccessException - if the requested method is not accessible via reflection
      @@ -437,27 +437,27 @@ extends java.lang.Object throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException -

      Invoke a named method whose parameter type matches the object type.

      - -

      The behaviour of this method is less deterministic - than invokeExactMethod(Object object,String methodName,Object [] args). - It loops through all methods with names that match - and then executes the first it finds with compatable parameters.

      - -

      This method supports calls to methods taking primitive parameters - via passing in wrapping classes. So, for example, a Boolean class - would match a boolean primitive.

      - -

      This is a convenient wrapper for - invokeMethod(Object object,String methodName,Object [] args,Class[] parameterTypes). +

      Invoke a named method whose parameter type matches the object type.

      + +

      The behaviour of this method is less deterministic + than invokeExactMethod(Object object,String methodName,Object [] args). + It loops through all methods with names that match + and then executes the first it finds with compatable parameters.

      + +

      This method supports calls to methods taking primitive parameters + via passing in wrapping classes. So, for example, a Boolean class + would match a boolean primitive.

      + +

      This is a convenient wrapper for + invokeMethod(Object object,String methodName,Object [] args,Class[] parameterTypes).

      Parameters:
      object - invoke method on this object
      methodName - get method with this name
      args - use these arguments - treat null as empty array
      Returns:
      The value returned by the invoked method
      Throws:
      java.lang.NoSuchMethodException - if there is no such accessible method
      -
      java.lang.reflect.InvocationTargetException - wraps an exception thrown by the +
      java.lang.reflect.InvocationTargetException - wraps an exception thrown by the method invoked
      -
      java.lang.IllegalAccessException - if the requested method is not accessible +
      java.lang.IllegalAccessException - if the requested method is not accessible via reflection
    @@ -474,23 +474,23 @@ extends java.lang.Object throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException -

    Invoke a named method whose parameter type matches the object type.

    - -

    The behaviour of this method is less deterministic - than invokeExactMethod(Object object,String methodName,Object [] args,Class[] parameterTypes). - It loops through all methods with names that match - and then executes the first it finds with compatable parameters.

    - -

    This method supports calls to methods taking primitive parameters - via passing in wrapping classes. So, for example, a Boolean class +

    Invoke a named method whose parameter type matches the object type.

    + +

    The behaviour of this method is less deterministic + than invokeExactMethod(Object object,String methodName,Object [] args,Class[] parameterTypes). + It loops through all methods with names that match + and then executes the first it finds with compatable parameters.

    + +

    This method supports calls to methods taking primitive parameters + via passing in wrapping classes. So, for example, a Boolean class would match a boolean primitive.

    Parameters:
    object - invoke method on this object
    methodName - get method with this name
    args - use these arguments - treat null as empty array
    parameterTypes - match these parameters - treat null as empty array
    Returns:
    The value returned by the invoked method
    Throws:
    java.lang.NoSuchMethodException - if there is no such accessible method
    -
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the +
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the method invoked
    -
    java.lang.IllegalAccessException - if the requested method is not accessible +
    java.lang.IllegalAccessException - if the requested method is not accessible via reflection
  • @@ -506,19 +506,19 @@ extends java.lang.Object throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException -

    Invoke a method whose parameter type matches exactly the object - type.

    - -

    This is a convenient wrapper for - invokeExactMethod(Object object,String methodName,Object [] args). +

    Invoke a method whose parameter type matches exactly the object + type.

    + +

    This is a convenient wrapper for + invokeExactMethod(Object object,String methodName,Object [] args).

    Parameters:
    object - invoke method on this object
    methodName - get method with this name
    arg - use this argument
    Returns:
    The value returned by the invoked method
    Throws:
    java.lang.NoSuchMethodException - if there is no such accessible method
    -
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the +
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the method invoked
    -
    java.lang.IllegalAccessException - if the requested method is not accessible +
    java.lang.IllegalAccessException - if the requested method is not accessible via reflection
    @@ -534,18 +534,18 @@ extends java.lang.Object throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException -

    Invoke a method whose parameter types match exactly the object - types.

    - -

    This uses reflection to invoke the method obtained from a call to +

    Invoke a method whose parameter types match exactly the object + types.

    + +

    This uses reflection to invoke the method obtained from a call to getAccessibleMethod().

    Parameters:
    object - invoke method on this object
    methodName - get method with this name
    args - use these arguments - treat null as empty array
    Returns:
    The value returned by the invoked method
    Throws:
    java.lang.NoSuchMethodException - if there is no such accessible method
    -
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the +
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the method invoked
    -
    java.lang.IllegalAccessException - if the requested method is not accessible +
    java.lang.IllegalAccessException - if the requested method is not accessible via reflection
    @@ -562,18 +562,18 @@ extends java.lang.Object throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException -

    Invoke a method whose parameter types match exactly the parameter - types given.

    - -

    This uses reflection to invoke the method obtained from a call to +

    Invoke a method whose parameter types match exactly the parameter + types given.

    + +

    This uses reflection to invoke the method obtained from a call to getAccessibleMethod().

    Parameters:
    object - invoke method on this object
    methodName - get method with this name
    args - use these arguments - treat null as empty array
    parameterTypes - match these parameters - treat null as empty array
    Returns:
    The value returned by the invoked method
    Throws:
    java.lang.NoSuchMethodException - if there is no such accessible method
    -
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the +
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the method invoked
    -
    java.lang.IllegalAccessException - if the requested method is not accessible +
    java.lang.IllegalAccessException - if the requested method is not accessible via reflection
    @@ -590,18 +590,18 @@ extends java.lang.Object throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException -

    Invoke a static method whose parameter types match exactly the parameter - types given.

    - -

    This uses reflection to invoke the method obtained from a call to +

    Invoke a static method whose parameter types match exactly the parameter + types given.

    + +

    This uses reflection to invoke the method obtained from a call to getAccessibleMethod(Class, String, Class[]).

    Parameters:
    objectClass - invoke static method on this class
    methodName - get method with this name
    args - use these arguments - treat null as empty array
    parameterTypes - match these parameters - treat null as empty array
    Returns:
    The value returned by the invoked method
    Throws:
    java.lang.NoSuchMethodException - if there is no such accessible method
    -
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the +
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the method invoked
    -
    java.lang.IllegalAccessException - if the requested method is not accessible +
    java.lang.IllegalAccessException - if the requested method is not accessible via reflection
    Since:
    1.8.0
    @@ -618,27 +618,27 @@ extends java.lang.Object throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException -

    Invoke a named static method whose parameter type matches the object type.

    - -

    The behaviour of this method is less deterministic - than invokeExactMethod(Object, String, Object[], Class[]). - It loops through all methods with names that match - and then executes the first it finds with compatable parameters.

    - -

    This method supports calls to methods taking primitive parameters - via passing in wrapping classes. So, for example, a Boolean class - would match a boolean primitive.

    - -

    This is a convenient wrapper for - invokeStaticMethod(Class objectClass,String methodName,Object [] args). +

    Invoke a named static method whose parameter type matches the object type.

    + +

    The behaviour of this method is less deterministic + than invokeExactMethod(Object, String, Object[], Class[]). + It loops through all methods with names that match + and then executes the first it finds with compatable parameters.

    + +

    This method supports calls to methods taking primitive parameters + via passing in wrapping classes. So, for example, a Boolean class + would match a boolean primitive.

    + +

    This is a convenient wrapper for + invokeStaticMethod(Class objectClass,String methodName,Object [] args).

    Parameters:
    objectClass - invoke static method on this class
    methodName - get method with this name
    arg - use this argument
    Returns:
    The value returned by the invoked method
    Throws:
    java.lang.NoSuchMethodException - if there is no such accessible method
    -
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the +
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the method invoked
    -
    java.lang.IllegalAccessException - if the requested method is not accessible +
    java.lang.IllegalAccessException - if the requested method is not accessible via reflection
    Since:
    1.8.0
    @@ -655,27 +655,27 @@ extends java.lang.Object throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException -

    Invoke a named static method whose parameter type matches the object type.

    - -

    The behaviour of this method is less deterministic - than invokeExactMethod(Object object,String methodName,Object [] args). - It loops through all methods with names that match - and then executes the first it finds with compatable parameters.

    - -

    This method supports calls to methods taking primitive parameters - via passing in wrapping classes. So, for example, a Boolean class - would match a boolean primitive.

    - -

    This is a convenient wrapper for - invokeStaticMethod(Class objectClass,String methodName,Object [] args,Class[] parameterTypes). +

    Invoke a named static method whose parameter type matches the object type.

    + +

    The behaviour of this method is less deterministic + than invokeExactMethod(Object object,String methodName,Object [] args). + It loops through all methods with names that match + and then executes the first it finds with compatable parameters.

    + +

    This method supports calls to methods taking primitive parameters + via passing in wrapping classes. So, for example, a Boolean class + would match a boolean primitive.

    + +

    This is a convenient wrapper for + invokeStaticMethod(Class objectClass,String methodName,Object [] args,Class[] parameterTypes).

    Parameters:
    objectClass - invoke static method on this class
    methodName - get method with this name
    args - use these arguments - treat null as empty array
    Returns:
    The value returned by the invoked method
    Throws:
    java.lang.NoSuchMethodException - if there is no such accessible method
    -
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the +
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the method invoked
    -
    java.lang.IllegalAccessException - if the requested method is not accessible +
    java.lang.IllegalAccessException - if the requested method is not accessible via reflection
    Since:
    1.8.0
    @@ -693,23 +693,23 @@ extends java.lang.Object throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException -

    Invoke a named static method whose parameter type matches the object type.

    - -

    The behaviour of this method is less deterministic - than invokeExactStaticMethod(Class objectClass,String methodName,Object [] args,Class[] parameterTypes). - It loops through all methods with names that match - and then executes the first it finds with compatable parameters.

    - -

    This method supports calls to methods taking primitive parameters - via passing in wrapping classes. So, for example, a Boolean class +

    Invoke a named static method whose parameter type matches the object type.

    + +

    The behaviour of this method is less deterministic + than invokeExactStaticMethod(Class objectClass,String methodName,Object [] args,Class[] parameterTypes). + It loops through all methods with names that match + and then executes the first it finds with compatable parameters.

    + +

    This method supports calls to methods taking primitive parameters + via passing in wrapping classes. So, for example, a Boolean class would match a boolean primitive.

    Parameters:
    objectClass - invoke static method on this class
    methodName - get method with this name
    args - use these arguments - treat null as empty array
    parameterTypes - match these parameters - treat null as empty array
    Returns:
    The value returned by the invoked method
    Throws:
    java.lang.NoSuchMethodException - if there is no such accessible method
    -
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the +
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the method invoked
    -
    java.lang.IllegalAccessException - if the requested method is not accessible +
    java.lang.IllegalAccessException - if the requested method is not accessible via reflection
    Since:
    1.8.0
    @@ -726,19 +726,19 @@ extends java.lang.Object throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException -

    Invoke a static method whose parameter type matches exactly the object - type.

    - -

    This is a convenient wrapper for - invokeExactStaticMethod(Class objectClass,String methodName,Object [] args). +

    Invoke a static method whose parameter type matches exactly the object + type.

    + +

    This is a convenient wrapper for + invokeExactStaticMethod(Class objectClass,String methodName,Object [] args).

    Parameters:
    objectClass - invoke static method on this class
    methodName - get method with this name
    arg - use this argument
    Returns:
    The value returned by the invoked method
    Throws:
    java.lang.NoSuchMethodException - if there is no such accessible method
    -
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the +
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the method invoked
    -
    java.lang.IllegalAccessException - if the requested method is not accessible +
    java.lang.IllegalAccessException - if the requested method is not accessible via reflection
    Since:
    1.8.0
    @@ -755,18 +755,18 @@ extends java.lang.Object throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException -

    Invoke a static method whose parameter types match exactly the object - types.

    - -

    This uses reflection to invoke the method obtained from a call to +

    Invoke a static method whose parameter types match exactly the object + types.

    + +

    This uses reflection to invoke the method obtained from a call to getAccessibleMethod(Class, String, Class[]).

    Parameters:
    objectClass - invoke static method on this class
    methodName - get method with this name
    args - use these arguments - treat null as empty array
    Returns:
    The value returned by the invoked method
    Throws:
    java.lang.NoSuchMethodException - if there is no such accessible method
    -
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the +
    java.lang.reflect.InvocationTargetException - wraps an exception thrown by the method invoked
    -
    java.lang.IllegalAccessException - if the requested method is not accessible +
    java.lang.IllegalAccessException - if the requested method is not accessible via reflection
    Since:
    1.8.0
    @@ -780,10 +780,10 @@ extends java.lang.Object
    public static java.lang.reflect.Method getAccessibleMethod(java.lang.Class clazz,
                                                java.lang.String methodName,
                                                java.lang.Class[] parameterTypes)
    -

    Return an accessible method (that is, one that can be invoked via - reflection) with given name and parameters. If no such method - can be found, return null. - This is just a convenient wrapper for +

    Return an accessible method (that is, one that can be invoked via + reflection) with given name and parameters. If no such method + can be found, return null. + This is just a convenient wrapper for getAccessibleMethod(Method method).

    Parameters:
    clazz - get method from this class
    methodName - get method with this name
    parameterTypes - with these parameters types
    Returns:
    The accessible method
    @@ -796,8 +796,8 @@ extends java.lang.Object
  • getAccessibleMethod

    public static java.lang.reflect.Method getAccessibleMethod(java.lang.reflect.Method method)
    -

    Return an accessible method (that is, one that can be invoked via - reflection) that implements the specified Method. If no such method +

    Return an accessible method (that is, one that can be invoked via + reflection) that implements the specified Method. If no such method can be found, return null.

    Parameters:
    method - The method that we wish to call
    Returns:
    The accessible method
    @@ -811,8 +811,8 @@ extends java.lang.Object

    getAccessibleMethod

    public static java.lang.reflect.Method getAccessibleMethod(java.lang.Class clazz,
                                                java.lang.reflect.Method method)
    -

    Return an accessible method (that is, one that can be invoked via - reflection) that implements the specified Method. If no such method +

    Return an accessible method (that is, one that can be invoked via + reflection) that implements the specified Method. If no such method can be found, return null.

    Parameters:
    clazz - The class of the object
    method - The method that we wish to call
    Returns:
    The accessible method
    Since:
    @@ -828,20 +828,20 @@ extends java.lang.Object
    public static java.lang.reflect.Method getMatchingAccessibleMethod(java.lang.Class clazz,
                                                        java.lang.String methodName,
                                                        java.lang.Class[] parameterTypes)
    -

    Find an accessible method that matches the given name and has compatible parameters. - Compatible parameters mean that every method parameter is assignable from - the given parameters. - In other words, it finds a method with the given name - that will take the parameters given.

    - -

    This method is slightly undeterminstic since it loops - through methods names and return the first matching method.

    - -

    This method is used by - invokeMethod(Object object,String methodName,Object [] args,Class[] parameterTypes). - -

    This method can match primitive parameter by passing in wrapper classes. - For example, a Boolean will match a primitive boolean +

    Find an accessible method that matches the given name and has compatible parameters. + Compatible parameters mean that every method parameter is assignable from + the given parameters. + In other words, it finds a method with the given name + that will take the parameters given.

    + +

    This method is slightly undeterminstic since it loops + through methods names and return the first matching method.

    + +

    This method is used by + invokeMethod(Object object,String methodName,Object [] args,Class[] parameterTypes). + +

    This method can match primitive parameter by passing in wrapper classes. + For example, a Boolean will match a primitive boolean parameter.

    Parameters:
    clazz - find method in this class
    methodName - find method with this name
    parameterTypes - find method with compatible parameters
    Returns:
    The accessible method
    @@ -855,15 +855,15 @@ extends java.lang.Object

    isAssignmentCompatible

    public static final boolean isAssignmentCompatible(java.lang.Class parameterType,
                                  java.lang.Class parameterization)
    -

    Determine whether a type can be used as a parameter in a method invocation. - This method handles primitive conversions correctly.

    - -

    In order words, it will match a Boolean to a boolean, - a Long to a long, - a Float to a float, - a Integer to a int, - and a Double to a double. - Now logic widening matches are allowed. +

    Determine whether a type can be used as a parameter in a method invocation. + This method handles primitive conversions correctly.

    + +

    In order words, it will match a Boolean to a boolean, + a Long to a long, + a Float to a float, + a Integer to a int, + and a Double to a double. + Now logic widening matches are allowed. For example, a Long will not match a int.

    Parameters:
    parameterType - the type of parameter accepted by the method
    parameterization - the type of parameter being tested
    Returns:
    true if the assignement is compatible.
    @@ -876,10 +876,10 @@ extends java.lang.Object
  • getPrimitiveWrapper

    public static java.lang.Class getPrimitiveWrapper(java.lang.Class primitiveType)
    -
    Gets the wrapper object class for the given primitive type class. +
    Gets the wrapper object class for the given primitive type class. For example, passing boolean.class returns Boolean.class
    Parameters:
    primitiveType - the primitive type class for which a match is to be found
    -
    Returns:
    the wrapper type associated with the given primitive +
    Returns:
    the wrapper type associated with the given primitive or null if no match is found
  • @@ -890,10 +890,10 @@ extends java.lang.Object
  • getPrimitiveType

    public static java.lang.Class getPrimitiveType(java.lang.Class wrapperType)
    -
    Gets the class for the primitive type corresponding to the primitive wrapper class given. +
    Gets the class for the primitive type corresponding to the primitive wrapper class given. For example, an instance of Boolean.class returns a boolean.class.
    Parameters:
    wrapperType - the
    -
    Returns:
    the primitive type class corresponding to the given wrapper class, +
    Returns:
    the primitive type class corresponding to the given wrapper class, null if no match is found
  • diff --git a/Javadoc/com/comphenix/protocol/reflect/ObjectCloner.html b/Javadoc/com/comphenix/protocol/reflect/ObjectCloner.html index 674a374f..018fef33 100644 --- a/Javadoc/com/comphenix/protocol/reflect/ObjectCloner.html +++ b/Javadoc/com/comphenix/protocol/reflect/ObjectCloner.html @@ -192,8 +192,8 @@ extends java.lang.Object
    public static void copyTo(java.lang.Object source,
               java.lang.Object destination,
               java.lang.Class<?> commonType)
    -
    Copy every field in object A to object B. -

    +

    Copy every field in object A to object B. +

    The two objects must have the same number of fields of the same type.

    Parameters:
    source - - fields to copy.
    destination - - fields to copy to.
    commonType - - type containing each field to copy.
  • diff --git a/Javadoc/com/comphenix/protocol/reflect/PrimitiveUtils.html b/Javadoc/com/comphenix/protocol/reflect/PrimitiveUtils.html index 25720bfd..cfb9ae62 100644 --- a/Javadoc/com/comphenix/protocol/reflect/PrimitiveUtils.html +++ b/Javadoc/com/comphenix/protocol/reflect/PrimitiveUtils.html @@ -98,7 +98,7 @@
    public final class PrimitiveUtils
     extends java.lang.Object
    -
    Contains static utility methods pertaining to primitive types and their +
    Contains static utility methods pertaining to primitive types and their corresponding wrapper types.
    Author:
    Kevin Bourrillion
    @@ -133,21 +133,21 @@ extends java.lang.Object static boolean isWrapperType(java.lang.reflect.Type type) -
    Returns true if type is one of the nine primitive-wrapper +
    Returns true if type is one of the nine primitive-wrapper types, such as Integer.
    static <T> java.lang.Class<T> unwrap(java.lang.Class<T> type) -
    Returns the corresponding primitive type of type if it is a +
    Returns the corresponding primitive type of type if it is a wrapper type; otherwise returns type itself.
    static <T> java.lang.Class<T> wrap(java.lang.Class<T> type) -
    Returns the corresponding wrapper type of type if it is a +
    Returns the corresponding wrapper type of type if it is a primitive type; otherwise returns type itself.
    @@ -190,7 +190,7 @@ extends java.lang.Object
  • isWrapperType

    public static boolean isWrapperType(java.lang.reflect.Type type)
    -
    Returns true if type is one of the nine primitive-wrapper +
    Returns true if type is one of the nine primitive-wrapper types, such as Integer.
    See Also:
    Class.isPrimitive()
  • @@ -202,13 +202,13 @@ extends java.lang.Object
  • wrap

    public static <T> java.lang.Class<T> wrap(java.lang.Class<T> type)
    -
    Returns the corresponding wrapper type of type if it is a - primitive type; otherwise returns type itself. Idempotent. - -
    -     wrap(int.class) == Integer.class
    -     wrap(Integer.class) == Integer.class
    -     wrap(String.class) == String.class
    +
    Returns the corresponding wrapper type of type if it is a + primitive type; otherwise returns type itself. Idempotent. + +
    +     wrap(int.class) == Integer.class
    +     wrap(Integer.class) == Integer.class
    +     wrap(String.class) == String.class
      
  • @@ -219,13 +219,13 @@ extends java.lang.Object
  • unwrap

    public static <T> java.lang.Class<T> unwrap(java.lang.Class<T> type)
    -
    Returns the corresponding primitive type of type if it is a - wrapper type; otherwise returns type itself. Idempotent. - -
    -     unwrap(Integer.class) == int.class
    -     unwrap(int.class) == int.class
    -     unwrap(String.class) == String.class
    +
    Returns the corresponding primitive type of type if it is a + wrapper type; otherwise returns type itself. Idempotent. + +
    +     unwrap(Integer.class) == int.class
    +     unwrap(int.class) == int.class
    +     unwrap(String.class) == String.class
      
  • diff --git a/Javadoc/com/comphenix/protocol/reflect/StructureModifier.html b/Javadoc/com/comphenix/protocol/reflect/StructureModifier.html index f6460f9b..b331441f 100644 --- a/Javadoc/com/comphenix/protocol/reflect/StructureModifier.html +++ b/Javadoc/com/comphenix/protocol/reflect/StructureModifier.html @@ -103,8 +103,8 @@
    public class StructureModifier<TField>
     extends java.lang.Object
    -
    Provides list-oriented access to the fields of a Minecraft packet. -

    +

    Provides list-oriented access to the fields of a Minecraft packet. +

    Implemented by using reflection. Use a CompiledStructureModifier, if speed is essential.

    Author:
    Kristian
    diff --git a/Javadoc/com/comphenix/protocol/reflect/compiler/BackgroundCompiler.html b/Javadoc/com/comphenix/protocol/reflect/compiler/BackgroundCompiler.html index 7d6709e1..5c157848 100644 --- a/Javadoc/com/comphenix/protocol/reflect/compiler/BackgroundCompiler.html +++ b/Javadoc/com/comphenix/protocol/reflect/compiler/BackgroundCompiler.html @@ -98,8 +98,8 @@
    public class BackgroundCompiler
     extends java.lang.Object
    -
    Compiles structure modifiers on a background thread. -

    +

    Compiles structure modifiers on a background thread. +

    This is necessary as we cannot block the main thread.

    Author:
    Kristian
    diff --git a/Javadoc/com/comphenix/protocol/reflect/compiler/StructureCompiler.html b/Javadoc/com/comphenix/protocol/reflect/compiler/StructureCompiler.html index e0dfd04c..2a1f24bc 100644 --- a/Javadoc/com/comphenix/protocol/reflect/compiler/StructureCompiler.html +++ b/Javadoc/com/comphenix/protocol/reflect/compiler/StructureCompiler.html @@ -154,9 +154,9 @@ extends java.lang.Object
  • compile

    public <TField> StructureModifier<TField> compile(StructureModifier<TField> source)
    -
    Compiles the given structure modifier. -

    - WARNING: Do NOT call this method in the main thread. Compiling may easily take 10 ms, which is already +

    Compiles the given structure modifier. +

    + WARNING: Do NOT call this method in the main thread. Compiling may easily take 10 ms, which is already over 1/4 of a tick (50 ms). Let the background thread automatically compile the structure modifiers instead.

    Parameters:
    source - - structure modifier to compile.
    Returns:
    A compiled structure modifier.
    diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/DefaultInstances.html b/Javadoc/com/comphenix/protocol/reflect/instances/DefaultInstances.html index 68f69bbe..7c99560f 100644 --- a/Javadoc/com/comphenix/protocol/reflect/instances/DefaultInstances.html +++ b/Javadoc/com/comphenix/protocol/reflect/instances/DefaultInstances.html @@ -399,18 +399,18 @@ extends java.lang.Object
  • getDefault

    public <T> T getDefault(java.lang.Class<T> type)
    -
    Retrieves a default instance or value that is assignable to this type. -

    - This includes, but isn't limited too: -

      -
    • Primitive types. Returns either zero or null.
    • -
    • Primitive wrappers.
    • -
    • String types. Returns an empty string.
    • -
    • Arrays. Returns a zero-length array of the same type.
    • -
    • Enums. Returns the first declared element.
    • -
    • Collection interfaces, such as List and Set. Returns the most appropriate empty container.
    • -
    • Any type with a public constructor that has parameters with defaults.
    • -
    +
    Retrieves a default instance or value that is assignable to this type. +

    + This includes, but isn't limited too: +

      +
    • Primitive types. Returns either zero or null.
    • +
    • Primitive wrappers.
    • +
    • String types. Returns an empty string.
    • +
    • Arrays. Returns a zero-length array of the same type.
    • +
    • Enums. Returns the first declared element.
    • +
    • Collection interfaces, such as List and Set. Returns the most appropriate empty container.
    • +
    • Any type with a public constructor that has parameters with defaults.
    • +
    Parameters:
    type - - the type to construct a default value.
    Returns:
    A default value/instance, or NULL if not possible.
    @@ -436,18 +436,18 @@ extends java.lang.Object

    getDefault

    public <T> T getDefault(java.lang.Class<T> type,
                    java.util.List<InstanceProvider> providers)
    -
    Retrieves a default instance or value that is assignable to this type. -

    - This includes, but isn't limited too: -

      -
    • Primitive types. Returns either zero or null.
    • -
    • Primitive wrappers.
    • -
    • String types. Returns an empty string.
    • -
    • Arrays. Returns a zero-length array of the same type.
    • -
    • Enums. Returns the first declared element.
    • -
    • Collection interfaces, such as List and Set. Returns the most appropriate empty container.
    • -
    • Any type with a public constructor that has parameters with defaults.
    • -
    +
    Retrieves a default instance or value that is assignable to this type. +

    + This includes, but isn't limited too: +

      +
    • Primitive types. Returns either zero or null.
    • +
    • Primitive wrappers.
    • +
    • String types. Returns an empty string.
    • +
    • Arrays. Returns a zero-length array of the same type.
    • +
    • Enums. Returns the first declared element.
    • +
    • Collection interfaces, such as List and Set. Returns the most appropriate empty container.
    • +
    • Any type with a public constructor that has parameters with defaults.
    • +
    Parameters:
    type - - the type to construct a default value.
    providers - - instance providers used during the construction.
    Returns:
    A default value/instance, or NULL if not possible.
    @@ -475,7 +475,7 @@ extends java.lang.Object java.lang.reflect.Constructor<T> constructor, java.lang.Class<?>[] types, java.lang.Object[] params) -
    Used by the default instance provider to create a class from a given constructor. +
    Used by the default instance provider to create a class from a given constructor. The default method uses reflection.
    Parameters:
    type - - the type to create.
    constructor - - the constructor to use.
    types - - type of each parameter in order.
    params - - value of each parameter in order.
    Returns:
    The constructed instance.
    diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/ExistingGenerator.html b/Javadoc/com/comphenix/protocol/reflect/instances/ExistingGenerator.html index 2808f952..79ded752 100644 --- a/Javadoc/com/comphenix/protocol/reflect/instances/ExistingGenerator.html +++ b/Javadoc/com/comphenix/protocol/reflect/instances/ExistingGenerator.html @@ -103,8 +103,8 @@
    public class ExistingGenerator
     extends java.lang.Object
     implements InstanceProvider
    -
    Provides instance constructors using a list of existing values. -

    +

    Provides instance constructors using a list of existing values. +

    Only one instance per individual class.

    Author:
    Kristian
    @@ -180,9 +180,9 @@ implements

    fromObjectFields

    public static ExistingGenerator fromObjectFields(java.lang.Object object)
    -
    Automatically create an instance provider from a objects public and private fields. -

    - If two or more fields share the same type, the last declared non-null field will take +

    Automatically create an instance provider from a objects public and private fields. +

    + If two or more fields share the same type, the last declared non-null field will take precedent.

    Parameters:
    object - - object to create an instance generator from.
    Returns:
    The instance generator.
    @@ -196,9 +196,9 @@ implements ExistingGenerator fromObjectFields(java.lang.Object object, java.lang.Class<?> type) -
    Automatically create an instance provider from a objects public and private fields. -

    - If two or more fields share the same type, the last declared non-null field will take +

    Automatically create an instance provider from a objects public and private fields. +

    + If two or more fields share the same type, the last declared non-null field will take precedent.

    Parameters:
    object - - object to create an instance generator from.
    type - - the type to cast the object.
    Returns:
    The instance generator.
    diff --git a/Javadoc/com/comphenix/protocol/reflect/package-summary.html b/Javadoc/com/comphenix/protocol/reflect/package-summary.html index 69cf7769..34bfbeb5 100644 --- a/Javadoc/com/comphenix/protocol/reflect/package-summary.html +++ b/Javadoc/com/comphenix/protocol/reflect/package-summary.html @@ -125,7 +125,7 @@ PrimitiveUtils -
    Contains static utility methods pertaining to primitive types and their +
    Contains static utility methods pertaining to primitive types and their corresponding wrapper types.
    diff --git a/Javadoc/index-files/index-15.html b/Javadoc/index-files/index-15.html index 77a02744..fc65eacb 100644 --- a/Javadoc/index-files/index-15.html +++ b/Javadoc/index-files/index-15.html @@ -189,7 +189,7 @@
     
    PrimitiveUtils - Class in com.comphenix.protocol.reflect
    -
    Contains static utility methods pertaining to primitive types and their +
    Contains static utility methods pertaining to primitive types and their corresponding wrapper types.
    PrioritizedListener<TListener> - Class in com.comphenix.protocol.injector
    diff --git a/Javadoc/index-files/index-17.html b/Javadoc/index-files/index-17.html index d81d2141..f610ff3f 100644 --- a/Javadoc/index-files/index-17.html +++ b/Javadoc/index-files/index-17.html @@ -123,7 +123,7 @@
  • setCacheMethods(boolean) - Static method in class com.comphenix.protocol.reflect.MethodUtils
    -
    Set whether methods should be cached for greater performance or not, +
    Set whether methods should be cached for greater performance or not, default is true.
    setCancelled(boolean) - Method in class com.comphenix.protocol.events.PacketEvent
    diff --git a/Javadoc/index-files/index-19.html b/Javadoc/index-files/index-19.html index e28d86df..314fc2e9 100644 --- a/Javadoc/index-files/index-19.html +++ b/Javadoc/index-files/index-19.html @@ -85,7 +85,7 @@
    unwrap(Class<T>) - Static method in class com.comphenix.protocol.reflect.PrimitiveUtils
    -
    Returns the corresponding primitive type of type if it is a +
    Returns the corresponding primitive type of type if it is a wrapper type; otherwise returns type itself.
    unwrapItem(Object) - Method in class com.comphenix.protocol.injector.BukkitUnwrapper
    diff --git a/Javadoc/index-files/index-20.html b/Javadoc/index-files/index-20.html index f637b40b..f86bdbcf 100644 --- a/Javadoc/index-files/index-20.html +++ b/Javadoc/index-files/index-20.html @@ -93,17 +93,17 @@
    values() - Static method in enum com.comphenix.protocol.events.ConnectionSide
    -
    Returns an array containing the constants of this enum type, in +
    Returns an array containing the constants of this enum type, in the order they are declared.
    values() - Static method in enum com.comphenix.protocol.events.ListenerPriority
    -
    Returns an array containing the constants of this enum type, in +
    Returns an array containing the constants of this enum type, in the order they are declared.
    values() - Static method in enum com.comphenix.protocol.injector.PacketFilterManager.PlayerInjectHooks
    -
    Returns an array containing the constants of this enum type, in +
    Returns an array containing the constants of this enum type, in the order they are declared.
    values() - Method in class com.comphenix.protocol.reflect.IntEnum
    diff --git a/Javadoc/index-files/index-21.html b/Javadoc/index-files/index-21.html index 31d66508..f26f6e41 100644 --- a/Javadoc/index-files/index-21.html +++ b/Javadoc/index-files/index-21.html @@ -103,7 +103,7 @@
     
    wrap(Class<T>) - Static method in class com.comphenix.protocol.reflect.PrimitiveUtils
    -
    Returns the corresponding wrapper type of type if it is a +
    Returns the corresponding wrapper type of type if it is a primitive type; otherwise returns type itself.
    write(int, Object) - Method in class com.comphenix.protocol.reflect.compiler.CompiledStructureModifier
    diff --git a/Javadoc/index-files/index-7.html b/Javadoc/index-files/index-7.html index bdeb3cf5..3caa1dbc 100644 --- a/Javadoc/index-files/index-7.html +++ b/Javadoc/index-files/index-7.html @@ -75,17 +75,17 @@
     
    getAccessibleMethod(Class, String, Class[]) - Static method in class com.comphenix.protocol.reflect.MethodUtils
    -
    Return an accessible method (that is, one that can be invoked via +
    Return an accessible method (that is, one that can be invoked via reflection) with given name and parameters.
    getAccessibleMethod(Method) - Static method in class com.comphenix.protocol.reflect.MethodUtils
    -
    Return an accessible method (that is, one that can be invoked via +
    Return an accessible method (that is, one that can be invoked via reflection) that implements the specified Method.
    getAccessibleMethod(Class, Method) - Static method in class com.comphenix.protocol.reflect.MethodUtils
    -
    Return an accessible method (that is, one that can be invoked via +
    Return an accessible method (that is, one that can be invoked via reflection) that implements the specified Method.
    getAsynchronousManager() - Method in class com.comphenix.protocol.injector.PacketFilterManager
    @@ -146,7 +146,7 @@
    getField(Class, String, boolean) - Static method in class com.comphenix.protocol.reflect.FieldUtils
    -
    Gets an accessible Field by name breaking scope if +
    Gets an accessible Field by name breaking scope if requested.
    getField() - Method in class com.comphenix.protocol.reflect.VolatileField
    @@ -397,7 +397,7 @@
     
    getReceivingFilters() - Method in interface com.comphenix.protocol.AsynchronousManager
    -
    Retrieves a immutable set containing the ID of the recieved client packets that will be +
    Retrieves a immutable set containing the ID of the recieved client packets that will be observed by the asynchronous listeners.
    getReceivingFilters() - Method in class com.comphenix.protocol.injector.PacketFilterManager
    @@ -428,7 +428,7 @@
     
    getSendingFilters() - Method in interface com.comphenix.protocol.AsynchronousManager
    -
    Retrieves a immutable set containing the ID of the sent server packets that will be +
    Retrieves a immutable set containing the ID of the sent server packets that will be observed by the asynchronous listeners.
    getSendingFilters() - Method in class com.comphenix.protocol.injector.PacketFilterManager
    diff --git a/Javadoc/index-files/index-9.html b/Javadoc/index-files/index-9.html index 112ecceb..543a347a 100644 --- a/Javadoc/index-files/index-9.html +++ b/Javadoc/index-files/index-9.html @@ -115,32 +115,32 @@
    invokeExactMethod(Object, String, Object) - Static method in class com.comphenix.protocol.reflect.MethodUtils
    -
    Invoke a method whose parameter type matches exactly the object +
    Invoke a method whose parameter type matches exactly the object type.
    invokeExactMethod(Object, String, Object[]) - Static method in class com.comphenix.protocol.reflect.MethodUtils
    -
    Invoke a method whose parameter types match exactly the object +
    Invoke a method whose parameter types match exactly the object types.
    invokeExactMethod(Object, String, Object[], Class[]) - Static method in class com.comphenix.protocol.reflect.MethodUtils
    -
    Invoke a method whose parameter types match exactly the parameter +
    Invoke a method whose parameter types match exactly the parameter types given.
    invokeExactStaticMethod(Class, String, Object[], Class[]) - Static method in class com.comphenix.protocol.reflect.MethodUtils
    -
    Invoke a static method whose parameter types match exactly the parameter +
    Invoke a static method whose parameter types match exactly the parameter types given.
    invokeExactStaticMethod(Class, String, Object) - Static method in class com.comphenix.protocol.reflect.MethodUtils
    -
    Invoke a static method whose parameter type matches exactly the object +
    Invoke a static method whose parameter type matches exactly the object type.
    invokeExactStaticMethod(Class, String, Object[]) - Static method in class com.comphenix.protocol.reflect.MethodUtils
    -
    Invoke a static method whose parameter types match exactly the object +
    Invoke a static method whose parameter types match exactly the object types.
    invokeMethod(Object, String, Object) - Static method in class com.comphenix.protocol.reflect.MethodUtils
    @@ -275,7 +275,7 @@
    isWrapperType(Type) - Static method in class com.comphenix.protocol.reflect.PrimitiveUtils
    -
    Returns true if type is one of the nine primitive-wrapper +
    Returns true if type is one of the nine primitive-wrapper types, such as Integer.
    ITEM_DATA - Static variable in class com.comphenix.protocol.Packets.Server
    diff --git a/ProtocolLib/.classpath b/ProtocolLib/.classpath index 4134d657..3a647a97 100644 --- a/ProtocolLib/.classpath +++ b/ProtocolLib/.classpath @@ -1,7 +1,17 @@ - - + + + + + + + + + + + + diff --git a/ProtocolLib/.settings/org.eclipse.core.resources.prefs b/ProtocolLib/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000..f9fe3459 --- /dev/null +++ b/ProtocolLib/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/test/java=UTF-8 +encoding/=UTF-8