From 0622322ef4c7ab84e2a5fd8d45cae2bb6bf771ca Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Wed, 17 Oct 2012 07:58:24 +0200 Subject: [PATCH] Merged. --- .../org.eclipse.core.resources.prefs | 2 + ItemDisguise/target/ItemDisguise-1.0.0.jar | Bin 0 -> 8621 bytes .../HideEnchantmentsListener$1.class | Bin 0 -> 2726 bytes .../HideEnchantmentsListener$2.class | Bin 0 -> 2606 bytes .../HideEnchantmentsListener.class | Bin 0 -> 2966 bytes .../itemdisguise/ItemDisguiseMod.class | Bin 0 -> 3471 bytes ItemDisguise/target/classes/plugin.yml | 14 + .../target/maven-archiver/pom.properties | 5 + .../protocol/AsynchronousManager.html | 18 +- .../comphenix/protocol/ProtocolLibrary.html | 4 +- .../comphenix/protocol/ProtocolManager.html | 28 +- .../protocol/async/AsyncFilterManager.html | 28 +- .../protocol/async/AsyncListenerHandler.html | 58 +-- .../comphenix/protocol/async/AsyncMarker.html | 46 +-- .../protocol/async/AsyncRunnable.html | 4 +- .../AbstractConcurrentListenerMultimap.html | 4 +- .../concurrency/SortedCopyOnWriteArray.html | 6 +- .../protocol/events/ConnectionSide.html | 24 +- .../protocol/events/ListenerPriority.html | 36 +- .../protocol/events/PacketAdapter.html | 18 +- .../protocol/events/PacketContainer.html | 28 +- .../protocol/events/PacketEvent.html | 24 +- .../protocol/events/PacketListener.html | 22 +- .../events/class-use/ConnectionSide.html | 2 +- .../events/class-use/ListenerPriority.html | 2 +- .../protocol/injector/BukkitUnwrapper.html | 12 +- .../injector/NetworkServerInjector.html | 4 +- .../protocol/injector/PacketConstructor.html | 4 +- ...PacketFilterManager.PlayerInjectHooks.html | 32 +- .../injector/PacketFilterManager.html | 28 +- ...PacketFilterManager.PlayerInjectHooks.html | 2 +- .../player/NetworkServerInjector.html | 4 +- .../protocol/reflect/FieldUtils.html | 68 ++-- .../protocol/reflect/FuzzyReflection.html | 24 +- .../protocol/reflect/MethodUtils.html | 358 +++++++++--------- .../protocol/reflect/ObjectCloner.html | 4 +- .../protocol/reflect/PrimitiveUtils.html | 38 +- .../protocol/reflect/StructureModifier.html | 4 +- .../reflect/compiler/BackgroundCompiler.html | 4 +- .../reflect/compiler/StructureCompiler.html | 6 +- .../reflect/instances/DefaultInstances.html | 50 +-- .../reflect/instances/ExistingGenerator.html | 16 +- .../protocol/reflect/package-summary.html | 2 +- Javadoc/index-files/index-15.html | 2 +- Javadoc/index-files/index-17.html | 2 +- Javadoc/index-files/index-19.html | 2 +- Javadoc/index-files/index-20.html | 6 +- Javadoc/index-files/index-21.html | 2 +- Javadoc/index-files/index-7.html | 12 +- Javadoc/index-files/index-9.html | 14 +- ProtocolLib/.classpath | 14 +- .../org.eclipse.core.resources.prefs | 4 + 52 files changed, 563 insertions(+), 528 deletions(-) create mode 100644 ItemDisguise/.settings/org.eclipse.core.resources.prefs create mode 100644 ItemDisguise/target/ItemDisguise-1.0.0.jar create mode 100644 ItemDisguise/target/classes/com/comphenix/itemdisguise/HideEnchantmentsListener$1.class create mode 100644 ItemDisguise/target/classes/com/comphenix/itemdisguise/HideEnchantmentsListener$2.class create mode 100644 ItemDisguise/target/classes/com/comphenix/itemdisguise/HideEnchantmentsListener.class create mode 100644 ItemDisguise/target/classes/com/comphenix/itemdisguise/ItemDisguiseMod.class create mode 100644 ItemDisguise/target/classes/plugin.yml create mode 100644 ItemDisguise/target/maven-archiver/pom.properties create mode 100644 ProtocolLib/.settings/org.eclipse.core.resources.prefs 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 0000000000000000000000000000000000000000..746a95b6c80420388e48c727c271735da33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8NM64u(J7W0&L4KnahBUlp^|8 z%!wyP&gf**cZ*qqym8M}CK);#){Yo#eYfk88lmrI-Pj@ZF~c5}90P^?-IN(UCn6G& zAFT<|%iX!&Z8uG6V#1I@rM&K{^$Ap1q?lSo?=kvth7zeJn>@`Rh(9Q+Osb&mkekI@py6F*5m76v&|Pf+Nt91V0}O<14B_n z2kM+|b?!D4#2uxYNono*?8Nd%_daQfCk7fbOH?VwRS5JI&sbqrKHYRyi(I)Ao36M` zp7q|kBnCg(p;EKFqlJ&`fRCAWfrg(czJmwWzbLX(MQ=9utE~pVdSw4^Th7th!4d2XvjIc3 zUDXGaIh5EHRW%g~baqwQl?RqrwFr7xba&M`HM#k9xXY?|%gT6bbR1pr2{gHRx%m;R zpg);GfpNa!D{4@QtCx#oSEXEaaA*P*;S)CA*pKt3KYDyFwjXgY+KpzR(BEPk-8p~JRuNpsK`5$$^5|iKBS6#xZ z!|~sB{{rdXgZO)*^1G=lxWYdh`v1|EKS%rbY{5@Q>{nOEe~9=$I{K44_^YG8R`Py2 zI=NaV|AnJ(m(;(y`Rk?kryBvHe{}QfVff<;{Hyi9OLcx)Pr3eU;`3AQ_vQaJG5FSq z0GF4!6u+$F?`gvKweY+0*F@o`^7!w{R}=Z4(}w?S_iN(t(=HA0x1j#P?yocV%Z~W_ zMB=-fEV$Eu@8r+4;^!>?J%ax9wQ{u?f1t&;S^l36=&P@vc&ed{ezh$C0K%)!yDL0- JOY`;L{{u??dTamy literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..1d840c0123a4da37779563240d75ed27b5f51876 GIT binary patch literal 2726 zcmb_e$#c_I9R6OSpu`9g(uA#rhLRRLo06~-ni5PX20H{y!`4C->0t{L$s^0GmmWIP zLpkyn^pZnQblQ~Zf$6D-{vG`*m~P*bos47R!DXtMx9I7&e!oTU_rHI631AX;yRZ$% z66nS81WsT|O(zrh7}E)Sf>SzX5;%g>>Ljfrr9Pk0F{=*GcHvW;>qI7j^SGcRt0O0{ zDJr_zsIG|#z?ob~OZkIGrM97$h>QxtI0 z_1$P%;92smBxHlIU@lhf-E$+ezy>_T6 zI0PVIWGFsNdsewDd2+PDnwH=hoFG7L4~g#X=58vA34yT&1#fUyaZL*JZR9q+4g7h_ zz9*x+^c~kPP<&%_8s%5%XBDb86niRQw#3G?i7e)V z%H1uo)j6vaM_2EGIp9$a6hEn#b5 z5w;G;fW#ev?dhQ6IsSoYz=~rqa7V>sOh>^$5sdrc^*UP2bp~!d-9PLuJIOQ4`9jOK)dX&D%=kdZrf?_){#H zS*~%{+7ajB`fsc-kF792yD)p1Eo@g6t=DM?+RhEwW6=yabqS=CO}XoWzzEZ-sk)OZ z#V~lF{-wkW1H7m7^2#E5dQ>Omt_@$Y9d75ZbqC)TprM27)}i5_AcjUpcWFPP?RiYM zlk+Ch0pr-kd5E;6#BS{2s&;$vKIN(10QR9h-hF`mq!Sp#hgBWoLQTih;T5#!IBDN2 zcK95MXPU$1C~)lOC~_Pd`VnGe1s&}x*z_y(7wBBZaUOJ44-#|jN3?!z^yPPWceG!d z{EZ%vLv2a=wI-JT`C}QK!`ccqFQacxeSCo}KVWNb_vi|Gp3}AtJiucZv_W|~jc(2d zd3qEhIL`MInBn~`#|zz6oWd=>x!eahgOFFa2mJCF7w`mGe2cjlp=shZPfR|-0s5RH zVo9VZ{|S1yACA3!x`y9V>KTpg_y%JziR3sf*n_S=F`{Fl?=NiCkq|pyq2m?Ww9`5! cdnn={iP~@ohq-FJP#(p5+$AVz8&^L60y1qLumAu6 literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..42f312524d3f258f4827043dfed2f8a47e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+G&LUoz2G$8C(XP2q7O)ZzOoM-kc(Jj?2HJ5Q+gkvqfRcq0v za6|NbfPxPxccKvKqCjBGugqNJ@p^pho2hyf+H`>;;p9^C6=IEnkHC!!F-{n$>l zI=H?Ck$C#ul@FBeU)YXATM literal 0 HcmV?d00001 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