From 99b9dc90ae3978b5aacd547624af289d86a9600d Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Tue, 18 Sep 2012 17:27:59 +0200 Subject: [PATCH] Adding the new javadoc. --- Javadoc/allclasses-frame.html | 54 + Javadoc/allclasses-noframe.html | 54 + .../com/comphenix/protocol/Application.html | 256 ++++ .../comphenix/protocol/Packets.Client.html | 681 ++++++++++ .../comphenix/protocol/Packets.Server.html | 1171 +++++++++++++++++ Javadoc/com/comphenix/protocol/Packets.html | 343 +++++ .../comphenix/protocol/ProtocolLibrary.html | 364 +++++ .../comphenix/protocol/ProtocolManager.html | 506 +++++++ .../protocol/class-use/Application.html | 115 ++ .../protocol/class-use/Packets.Client.html | 163 +++ .../protocol/class-use/Packets.Server.html | 163 +++ .../comphenix/protocol/class-use/Packets.html | 115 ++ .../protocol/class-use/ProtocolLibrary.html | 115 ++ .../protocol/class-use/ProtocolManager.html | 179 +++ .../concurrency/SortedCopyOnWriteArray.html | 571 ++++++++ .../class-use/SortedCopyOnWriteArray.html | 155 +++ .../protocol/concurrency/package-frame.html | 19 + .../protocol/concurrency/package-summary.html | 135 ++ .../protocol/concurrency/package-tree.html | 128 ++ .../protocol/concurrency/package-use.html | 150 +++ .../protocol/events/ConnectionSide.html | 371 ++++++ .../protocol/events/ListenerPriority.html | 413 ++++++ .../protocol/events/ListeningWhitelist.html | 411 ++++++ .../protocol/events/PacketAdapter.html | 497 +++++++ .../protocol/events/PacketContainer.html | 501 +++++++ .../protocol/events/PacketEvent.html | 449 +++++++ .../protocol/events/PacketListener.html | 289 ++++ .../events/class-use/ConnectionSide.html | 200 +++ .../events/class-use/ListenerPriority.html | 198 +++ .../events/class-use/ListeningWhitelist.html | 226 ++++ .../events/class-use/PacketAdapter.html | 115 ++ .../events/class-use/PacketContainer.html | 322 +++++ .../events/class-use/PacketEvent.html | 240 ++++ .../events/class-use/PacketListener.html | 270 ++++ .../protocol/events/package-frame.html | 31 + .../protocol/events/package-summary.html | 191 +++ .../protocol/events/package-tree.html | 152 +++ .../protocol/events/package-use.html | 233 ++++ .../injector/ConcurrentListenerMultimap.html | 359 +++++ .../NetworkFieldInjector.FakePacket.html | 165 +++ .../injector/NetworkFieldInjector.html | 602 +++++++++ .../injector/NetworkObjectInjector.html | 581 ++++++++ .../PacketConstructor.BukkitUnwrapper.html | 286 ++++ .../injector/PacketConstructor.Unwrapper.html | 227 ++++ .../protocol/injector/PacketConstructor.html | 369 ++++++ ...PacketFilterManager.PlayerInjectHooks.html | 334 +++++ .../injector/PacketFilterManager.html | 844 ++++++++++++ .../injector/SortedCopyOnWriteArrayTest.html | 269 ++++ .../protocol/injector/StructureCache.html | 282 ++++ .../class-use/ConcurrentListenerMultimap.html | 115 ++ .../NetworkFieldInjector.FakePacket.html | 115 ++ .../class-use/NetworkFieldInjector.html | 115 ++ .../class-use/NetworkObjectInjector.html | 115 ++ .../PacketConstructor.BukkitUnwrapper.html | 115 ++ .../PacketConstructor.Unwrapper.html | 183 +++ .../injector/class-use/PacketConstructor.html | 209 +++ ...PacketFilterManager.PlayerInjectHooks.html | 185 +++ .../class-use/PacketFilterManager.html | 115 ++ .../class-use/SortedCopyOnWriteArrayTest.html | 115 ++ .../injector/class-use/StructureCache.html | 115 ++ .../protocol/injector/package-frame.html | 32 + .../protocol/injector/package-summary.html | 191 +++ .../protocol/injector/package-tree.html | 149 +++ .../protocol/injector/package-use.html | 179 +++ .../protocol/metrics/Statistics.html | 231 ++++ .../metrics/class-use/Statistics.html | 157 +++ .../protocol/metrics/package-frame.html | 19 + .../protocol/metrics/package-summary.html | 133 ++ .../protocol/metrics/package-tree.html | 128 ++ .../protocol/metrics/package-use.html | 148 +++ .../com/comphenix/protocol/package-frame.html | 27 + .../comphenix/protocol/package-summary.html | 172 +++ .../com/comphenix/protocol/package-tree.html | 148 +++ .../com/comphenix/protocol/package-use.html | 181 +++ .../protocol/reflect/EquivalentConverter.html | 238 ++++ .../reflect/FieldAccessException.html | 321 +++++ .../protocol/reflect/FieldUtils.html | 733 +++++++++++ .../protocol/reflect/FuzzyReflection.html | 575 ++++++++ .../comphenix/protocol/reflect/IntEnum.html | 378 ++++++ .../protocol/reflect/MethodUtils.html | 980 ++++++++++++++ .../protocol/reflect/PrimitiveUtils.html | 311 +++++ .../protocol/reflect/StructureModifier.html | 547 ++++++++ .../reflect/StructureModifierTest.html | 259 ++++ .../protocol/reflect/VolatileField.html | 442 +++++++ .../class-use/EquivalentConverter.html | 158 +++ .../class-use/FieldAccessException.html | 268 ++++ .../reflect/class-use/FieldUtils.html | 115 ++ .../reflect/class-use/FuzzyReflection.html | 177 +++ .../protocol/reflect/class-use/IntEnum.html | 163 +++ .../reflect/class-use/MethodUtils.html | 115 ++ .../reflect/class-use/PrimitiveUtils.html | 115 ++ .../reflect/class-use/StructureModifier.html | 303 +++++ .../class-use/StructureModifierTest.html | 115 ++ .../reflect/class-use/VolatileField.html | 115 ++ .../instances/CollectionGenerator.html | 313 +++++ .../reflect/instances/DefaultInstances.html | 444 +++++++ .../reflect/instances/InstanceProvider.html | 219 +++ .../reflect/instances/PrimitiveGenerator.html | 347 +++++ .../class-use/CollectionGenerator.html | 157 +++ .../instances/class-use/DefaultInstances.html | 172 +++ .../instances/class-use/InstanceProvider.html | 235 ++++ .../class-use/PrimitiveGenerator.html | 157 +++ .../reflect/instances/package-frame.html | 25 + .../reflect/instances/package-summary.html | 164 +++ .../reflect/instances/package-tree.html | 134 ++ .../reflect/instances/package-use.html | 165 +++ .../protocol/reflect/package-frame.html | 34 + .../protocol/reflect/package-summary.html | 208 +++ .../protocol/reflect/package-tree.html | 148 +++ .../protocol/reflect/package-use.html | 232 ++++ Javadoc/constant-values.html | 821 ++++++++++++ Javadoc/deprecated-list.html | 115 ++ Javadoc/help-doc.html | 220 ++++ Javadoc/index-files/index-1.html | 150 +++ Javadoc/index-files/index-10.html | 132 ++ Javadoc/index-files/index-11.html | 142 ++ Javadoc/index-files/index-12.html | 146 ++ Javadoc/index-files/index-13.html | 126 ++ Javadoc/index-files/index-14.html | 138 ++ Javadoc/index-files/index-15.html | 231 ++++ Javadoc/index-files/index-16.html | 226 ++++ Javadoc/index-files/index-17.html | 231 ++++ Javadoc/index-files/index-18.html | 146 ++ Javadoc/index-files/index-19.html | 147 +++ Javadoc/index-files/index-2.html | 130 ++ Javadoc/index-files/index-20.html | 167 +++ Javadoc/index-files/index-21.html | 195 +++ Javadoc/index-files/index-3.html | 216 +++ Javadoc/index-files/index-4.html | 140 ++ Javadoc/index-files/index-5.html | 152 +++ Javadoc/index-files/index-6.html | 182 +++ Javadoc/index-files/index-7.html | 406 ++++++ Javadoc/index-files/index-8.html | 128 ++ Javadoc/index-files/index-9.html | 269 ++++ Javadoc/index.html | 33 + Javadoc/overview-frame.html | 26 + Javadoc/overview-summary.html | 150 +++ Javadoc/overview-tree.html | 207 +++ Javadoc/package-list | 7 + Javadoc/resources/background.gif | Bin 0 -> 2313 bytes Javadoc/resources/tab.gif | Bin 0 -> 291 bytes Javadoc/resources/titlebar.gif | Bin 0 -> 10701 bytes Javadoc/resources/titlebar_end.gif | Bin 0 -> 849 bytes Javadoc/serialized-form.html | 171 +++ Javadoc/stylesheet.css | 474 +++++++ 145 files changed, 33862 insertions(+) create mode 100644 Javadoc/allclasses-frame.html create mode 100644 Javadoc/allclasses-noframe.html create mode 100644 Javadoc/com/comphenix/protocol/Application.html create mode 100644 Javadoc/com/comphenix/protocol/Packets.Client.html create mode 100644 Javadoc/com/comphenix/protocol/Packets.Server.html create mode 100644 Javadoc/com/comphenix/protocol/Packets.html create mode 100644 Javadoc/com/comphenix/protocol/ProtocolLibrary.html create mode 100644 Javadoc/com/comphenix/protocol/ProtocolManager.html create mode 100644 Javadoc/com/comphenix/protocol/class-use/Application.html create mode 100644 Javadoc/com/comphenix/protocol/class-use/Packets.Client.html create mode 100644 Javadoc/com/comphenix/protocol/class-use/Packets.Server.html create mode 100644 Javadoc/com/comphenix/protocol/class-use/Packets.html create mode 100644 Javadoc/com/comphenix/protocol/class-use/ProtocolLibrary.html create mode 100644 Javadoc/com/comphenix/protocol/class-use/ProtocolManager.html create mode 100644 Javadoc/com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html create mode 100644 Javadoc/com/comphenix/protocol/concurrency/class-use/SortedCopyOnWriteArray.html create mode 100644 Javadoc/com/comphenix/protocol/concurrency/package-frame.html create mode 100644 Javadoc/com/comphenix/protocol/concurrency/package-summary.html create mode 100644 Javadoc/com/comphenix/protocol/concurrency/package-tree.html create mode 100644 Javadoc/com/comphenix/protocol/concurrency/package-use.html create mode 100644 Javadoc/com/comphenix/protocol/events/ConnectionSide.html create mode 100644 Javadoc/com/comphenix/protocol/events/ListenerPriority.html create mode 100644 Javadoc/com/comphenix/protocol/events/ListeningWhitelist.html create mode 100644 Javadoc/com/comphenix/protocol/events/PacketAdapter.html create mode 100644 Javadoc/com/comphenix/protocol/events/PacketContainer.html create mode 100644 Javadoc/com/comphenix/protocol/events/PacketEvent.html create mode 100644 Javadoc/com/comphenix/protocol/events/PacketListener.html create mode 100644 Javadoc/com/comphenix/protocol/events/class-use/ConnectionSide.html create mode 100644 Javadoc/com/comphenix/protocol/events/class-use/ListenerPriority.html create mode 100644 Javadoc/com/comphenix/protocol/events/class-use/ListeningWhitelist.html create mode 100644 Javadoc/com/comphenix/protocol/events/class-use/PacketAdapter.html create mode 100644 Javadoc/com/comphenix/protocol/events/class-use/PacketContainer.html create mode 100644 Javadoc/com/comphenix/protocol/events/class-use/PacketEvent.html create mode 100644 Javadoc/com/comphenix/protocol/events/class-use/PacketListener.html create mode 100644 Javadoc/com/comphenix/protocol/events/package-frame.html create mode 100644 Javadoc/com/comphenix/protocol/events/package-summary.html create mode 100644 Javadoc/com/comphenix/protocol/events/package-tree.html create mode 100644 Javadoc/com/comphenix/protocol/events/package-use.html create mode 100644 Javadoc/com/comphenix/protocol/injector/ConcurrentListenerMultimap.html create mode 100644 Javadoc/com/comphenix/protocol/injector/NetworkFieldInjector.FakePacket.html create mode 100644 Javadoc/com/comphenix/protocol/injector/NetworkFieldInjector.html create mode 100644 Javadoc/com/comphenix/protocol/injector/NetworkObjectInjector.html create mode 100644 Javadoc/com/comphenix/protocol/injector/PacketConstructor.BukkitUnwrapper.html create mode 100644 Javadoc/com/comphenix/protocol/injector/PacketConstructor.Unwrapper.html create mode 100644 Javadoc/com/comphenix/protocol/injector/PacketConstructor.html create mode 100644 Javadoc/com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html create mode 100644 Javadoc/com/comphenix/protocol/injector/PacketFilterManager.html create mode 100644 Javadoc/com/comphenix/protocol/injector/SortedCopyOnWriteArrayTest.html create mode 100644 Javadoc/com/comphenix/protocol/injector/StructureCache.html create mode 100644 Javadoc/com/comphenix/protocol/injector/class-use/ConcurrentListenerMultimap.html create mode 100644 Javadoc/com/comphenix/protocol/injector/class-use/NetworkFieldInjector.FakePacket.html create mode 100644 Javadoc/com/comphenix/protocol/injector/class-use/NetworkFieldInjector.html create mode 100644 Javadoc/com/comphenix/protocol/injector/class-use/NetworkObjectInjector.html create mode 100644 Javadoc/com/comphenix/protocol/injector/class-use/PacketConstructor.BukkitUnwrapper.html create mode 100644 Javadoc/com/comphenix/protocol/injector/class-use/PacketConstructor.Unwrapper.html create mode 100644 Javadoc/com/comphenix/protocol/injector/class-use/PacketConstructor.html create mode 100644 Javadoc/com/comphenix/protocol/injector/class-use/PacketFilterManager.PlayerInjectHooks.html create mode 100644 Javadoc/com/comphenix/protocol/injector/class-use/PacketFilterManager.html create mode 100644 Javadoc/com/comphenix/protocol/injector/class-use/SortedCopyOnWriteArrayTest.html create mode 100644 Javadoc/com/comphenix/protocol/injector/class-use/StructureCache.html create mode 100644 Javadoc/com/comphenix/protocol/injector/package-frame.html create mode 100644 Javadoc/com/comphenix/protocol/injector/package-summary.html create mode 100644 Javadoc/com/comphenix/protocol/injector/package-tree.html create mode 100644 Javadoc/com/comphenix/protocol/injector/package-use.html create mode 100644 Javadoc/com/comphenix/protocol/metrics/Statistics.html create mode 100644 Javadoc/com/comphenix/protocol/metrics/class-use/Statistics.html create mode 100644 Javadoc/com/comphenix/protocol/metrics/package-frame.html create mode 100644 Javadoc/com/comphenix/protocol/metrics/package-summary.html create mode 100644 Javadoc/com/comphenix/protocol/metrics/package-tree.html create mode 100644 Javadoc/com/comphenix/protocol/metrics/package-use.html create mode 100644 Javadoc/com/comphenix/protocol/package-frame.html create mode 100644 Javadoc/com/comphenix/protocol/package-summary.html create mode 100644 Javadoc/com/comphenix/protocol/package-tree.html create mode 100644 Javadoc/com/comphenix/protocol/package-use.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/EquivalentConverter.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/FieldAccessException.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/FieldUtils.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/FuzzyReflection.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/IntEnum.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/MethodUtils.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/PrimitiveUtils.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/StructureModifier.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/StructureModifierTest.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/VolatileField.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/class-use/EquivalentConverter.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/class-use/FieldAccessException.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/class-use/FieldUtils.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/class-use/FuzzyReflection.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/class-use/IntEnum.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/class-use/MethodUtils.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/class-use/PrimitiveUtils.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/class-use/StructureModifier.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/class-use/StructureModifierTest.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/class-use/VolatileField.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/instances/CollectionGenerator.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/instances/DefaultInstances.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/instances/InstanceProvider.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/instances/PrimitiveGenerator.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/instances/class-use/CollectionGenerator.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/instances/class-use/DefaultInstances.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/instances/class-use/InstanceProvider.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/instances/class-use/PrimitiveGenerator.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/instances/package-frame.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/instances/package-summary.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/instances/package-tree.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/instances/package-use.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/package-frame.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/package-summary.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/package-tree.html create mode 100644 Javadoc/com/comphenix/protocol/reflect/package-use.html create mode 100644 Javadoc/constant-values.html create mode 100644 Javadoc/deprecated-list.html create mode 100644 Javadoc/help-doc.html create mode 100644 Javadoc/index-files/index-1.html create mode 100644 Javadoc/index-files/index-10.html create mode 100644 Javadoc/index-files/index-11.html create mode 100644 Javadoc/index-files/index-12.html create mode 100644 Javadoc/index-files/index-13.html create mode 100644 Javadoc/index-files/index-14.html create mode 100644 Javadoc/index-files/index-15.html create mode 100644 Javadoc/index-files/index-16.html create mode 100644 Javadoc/index-files/index-17.html create mode 100644 Javadoc/index-files/index-18.html create mode 100644 Javadoc/index-files/index-19.html create mode 100644 Javadoc/index-files/index-2.html create mode 100644 Javadoc/index-files/index-20.html create mode 100644 Javadoc/index-files/index-21.html create mode 100644 Javadoc/index-files/index-3.html create mode 100644 Javadoc/index-files/index-4.html create mode 100644 Javadoc/index-files/index-5.html create mode 100644 Javadoc/index-files/index-6.html create mode 100644 Javadoc/index-files/index-7.html create mode 100644 Javadoc/index-files/index-8.html create mode 100644 Javadoc/index-files/index-9.html create mode 100644 Javadoc/index.html create mode 100644 Javadoc/overview-frame.html create mode 100644 Javadoc/overview-summary.html create mode 100644 Javadoc/overview-tree.html create mode 100644 Javadoc/package-list create mode 100644 Javadoc/resources/background.gif create mode 100644 Javadoc/resources/tab.gif create mode 100644 Javadoc/resources/titlebar.gif create mode 100644 Javadoc/resources/titlebar_end.gif create mode 100644 Javadoc/serialized-form.html create mode 100644 Javadoc/stylesheet.css diff --git a/Javadoc/allclasses-frame.html b/Javadoc/allclasses-frame.html new file mode 100644 index 00000000..0dd5370c --- /dev/null +++ b/Javadoc/allclasses-frame.html @@ -0,0 +1,54 @@ + + + + + +All Classes + + + + +

All Classes

+
+ +
+ + diff --git a/Javadoc/allclasses-noframe.html b/Javadoc/allclasses-noframe.html new file mode 100644 index 00000000..5bb86603 --- /dev/null +++ b/Javadoc/allclasses-noframe.html @@ -0,0 +1,54 @@ + + + + + +All Classes + + + + +

All Classes

+
+ +
+ + diff --git a/Javadoc/com/comphenix/protocol/Application.html b/Javadoc/com/comphenix/protocol/Application.html new file mode 100644 index 00000000..67c1390a --- /dev/null +++ b/Javadoc/com/comphenix/protocol/Application.html @@ -0,0 +1,256 @@ + + + + + +Application + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol
+

Class Application

+
+
+ +
+
    +
  • +
    +
    +
    public class Application
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Application() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static voidmain(java.lang.String[] args) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Application

        +
        public Application()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/Packets.Client.html b/Javadoc/com/comphenix/protocol/Packets.Client.html new file mode 100644 index 00000000..9da0a34d --- /dev/null +++ b/Javadoc/com/comphenix/protocol/Packets.Client.html @@ -0,0 +1,681 @@ + + + + + +Packets.Client + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol
+

Class Packets.Client

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    Packets
    +
    +
    +
    +
    public static class Packets.Client
    +extends IntEnum
    +
    List of packets sent by the client.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+ +
+
+ +
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/Packets.Server.html b/Javadoc/com/comphenix/protocol/Packets.Server.html new file mode 100644 index 00000000..5407eceb --- /dev/null +++ b/Javadoc/com/comphenix/protocol/Packets.Server.html @@ -0,0 +1,1171 @@ + + + + + +Packets.Server + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol
+

Class Packets.Server

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    Packets
    +
    +
    +
    +
    public static final class Packets.Server
    +extends IntEnum
    +
    List of packets sent only by the server.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+ +
+
+ +
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/Packets.html b/Javadoc/com/comphenix/protocol/Packets.html new file mode 100644 index 00000000..2e15e2e6 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/Packets.html @@ -0,0 +1,343 @@ + + + + + +Packets + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol
+

Class Packets

+
+
+ +
+
    +
  • +
    +
    +
    public final class Packets
    +extends java.lang.Object
    +
    List of known packet IDs since 1.3.2.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class Packets.Client +
      List of packets sent by the client.
      +
      static class Packets.Server +
      List of packets sent only by the server.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Packets() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static Packets.ClientgetClientRegistry() +
      A registry that parses between names and packet IDs.
      +
      static java.lang.StringgetDeclaredName(int packetID) +
      Retrieves the name of a packet.
      +
      static Packets.ServergetServerRegistry() +
      A registry that parses between names and packet IDs.
      +
      static intvalueOf(java.lang.String name) +
      Find a packet by name.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Packets

        +
        public Packets()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getServerRegistry

        +
        public static Packets.Server getServerRegistry()
        +
        A registry that parses between names and packet IDs.
        +
        Returns:
        The current client registry.
        +
      • +
      + + + +
        +
      • +

        getClientRegistry

        +
        public static Packets.Client getClientRegistry()
        +
        A registry that parses between names and packet IDs.
        +
        Returns:
        The current server registry.
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static int valueOf(java.lang.String name)
        +
        Find a packet by name. Must be capitalized and use underscores.
        +
        Parameters:
        name - - name of packet to find.
        +
        Returns:
        The packet ID found.
        +
      • +
      + + + +
        +
      • +

        getDeclaredName

        +
        public static java.lang.String getDeclaredName(int packetID)
        +
        Retrieves the name of a packet.
        +
        Parameters:
        packetID - - packet to retrieve name.
        +
        Returns:
        The name, or NULL if unable to find such a packet.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/ProtocolLibrary.html b/Javadoc/com/comphenix/protocol/ProtocolLibrary.html new file mode 100644 index 00000000..3d23b865 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/ProtocolLibrary.html @@ -0,0 +1,364 @@ + + + + + +ProtocolLibrary + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol
+

Class ProtocolLibrary

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    org.bukkit.command.CommandExecutor, org.bukkit.plugin.Plugin
    +
    +
    +
    +
    public class ProtocolLibrary
    +extends org.bukkit.plugin.java.JavaPlugin
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ProtocolLibrary() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static ProtocolManagergetProtocolManager() +
      Retrieves the packet protocol manager.
      +
      StatisticsgetStatistics() +
      Retrieve the metrics instance used to measure users of this library.
      +
      voidonDisable() 
      voidonEnable() 
      voidonLoad() 
      +
        +
      • + + +

        Methods inherited from class org.bukkit.plugin.java.JavaPlugin

        +getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPluginLoader, getResource, getServer, initialize, installDDL, isEnabled, isInitialized, isNaggable, onCommand, reloadConfig, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
      • +
      +
        +
      • + + +

        Methods inherited from class org.bukkit.plugin.PluginBase

        +equals, getName, hashCode
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ProtocolLibrary

        +
        public ProtocolLibrary()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onLoad

        +
        public void onLoad()
        +
        +
        Specified by:
        +
        onLoad in interface org.bukkit.plugin.Plugin
        +
        Overrides:
        +
        onLoad in class org.bukkit.plugin.java.JavaPlugin
        +
        +
      • +
      + + + +
        +
      • +

        onEnable

        +
        public void onEnable()
        +
        +
        Specified by:
        +
        onEnable in interface org.bukkit.plugin.Plugin
        +
        Overrides:
        +
        onEnable in class org.bukkit.plugin.java.JavaPlugin
        +
        +
      • +
      + + + +
        +
      • +

        onDisable

        +
        public void onDisable()
        +
        +
        Specified by:
        +
        onDisable in interface org.bukkit.plugin.Plugin
        +
        Overrides:
        +
        onDisable in class org.bukkit.plugin.java.JavaPlugin
        +
        +
      • +
      + + + +
        +
      • +

        getProtocolManager

        +
        public static ProtocolManager getProtocolManager()
        +
        Retrieves the packet protocol manager.
        +
        Returns:
        Packet protocol manager, or NULL if it has been disabled.
        +
      • +
      + + + +
        +
      • +

        getStatistics

        +
        public Statistics getStatistics()
        +
        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 new file mode 100644 index 00000000..751cd9c5 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/ProtocolManager.html @@ -0,0 +1,506 @@ + + + + + +ProtocolManager + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol
+

Interface ProtocolManager

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    PacketFilterManager
    +
    +
    +
    +
    public interface ProtocolManager
    +
    Represents an API for accessing the Minecraft protocol.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidaddPacketListener(PacketListener listener) +
      Adds a packet listener.
      +
      PacketContainercreatePacket(int id) +
      Constructs a new encapsulated Minecraft packet with the given ID.
      +
      PacketContainercreatePacket(int id, + boolean forceDefaults) +
      Constructs a new encapsulated Minecraft packet with the given ID.
      +
      PacketConstructorcreatePacketConstructor(int id, + java.lang.Object... arguments) +
      Construct a packet using the special builtin Minecraft constructors.
      +
      com.google.common.collect.ImmutableSet<PacketListener>getPacketListeners() +
      Retrieves a list of every registered packet listener.
      +
      java.util.Set<java.lang.Integer>getReceivingFilters() +
      Retrieves a immutable set containing the ID of the recieved client packets that will be observed by listeners.
      +
      java.util.Set<java.lang.Integer>getSendingFilters() +
      Retrieves a immutable set containing the ID of the sent server packets that will be observed by listeners.
      +
      booleanisClosed() +
      Determines whether or not this protocol mananger has been disabled.
      +
      voidrecieveClientPacket(org.bukkit.entity.Player sender, + PacketContainer packet) +
      Simulate recieving a certain packet from a given player.
      +
      voidrecieveClientPacket(org.bukkit.entity.Player sender, + PacketContainer packet, + boolean filters) +
      Simulate recieving a certain packet from a given player.
      +
      voidremovePacketListener(PacketListener listener) +
      Removes a given packet listener.
      +
      voidremovePacketListeners(org.bukkit.plugin.Plugin plugin) +
      Removes every listener associated with the given plugin.
      +
      voidsendServerPacket(org.bukkit.entity.Player reciever, + PacketContainer packet) +
      Send a packet to the given player.
      +
      voidsendServerPacket(org.bukkit.entity.Player reciever, + PacketContainer packet, + boolean filters) +
      Send a packet to the given player.
      +
      voidupdateEntity(org.bukkit.entity.Entity entity, + java.util.List<org.bukkit.entity.Player> observers) +
      Completely refresh all clients about an entity.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPacketListeners

        +
        com.google.common.collect.ImmutableSet<PacketListener> getPacketListeners()
        +
        Retrieves a list of every registered packet listener.
        +
        Returns:
        Every registered packet listener.
        +
      • +
      + + + +
        +
      • +

        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 + can register it again.

        +
        Parameters:
        listener - - new packet listener.
        +
      • +
      + + + +
        +
      • +

        removePacketListener

        +
        void removePacketListener(PacketListener 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.
        +
      • +
      + + + +
        +
      • +

        removePacketListeners

        +
        void removePacketListeners(org.bukkit.plugin.Plugin plugin)
        +
        Removes every listener associated with the given plugin.
        +
        Parameters:
        plugin - - the plugin to unload.
        +
      • +
      + + + +
        +
      • +

        sendServerPacket

        +
        void sendServerPacket(org.bukkit.entity.Player reciever,
        +                    PacketContainer packet)
        +                      throws java.lang.reflect.InvocationTargetException
        +
        Send a packet to the given player.
        +
        Parameters:
        reciever - - the reciever.
        packet - - packet to send.
        +
        Throws:
        +
        java.lang.reflect.InvocationTargetException - - if an error occured when sending the packet.
        +
      • +
      + + + +
        +
      • +

        sendServerPacket

        +
        void sendServerPacket(org.bukkit.entity.Player reciever,
        +                    PacketContainer packet,
        +                    boolean filters)
        +                      throws java.lang.reflect.InvocationTargetException
        +
        Send a packet to the given player.
        +
        Parameters:
        reciever - - the reciever.
        packet - - packet to send.
        filters - - whether or not to invoke any packet filters.
        +
        Throws:
        +
        java.lang.reflect.InvocationTargetException - - if an error occured when sending the packet.
        +
      • +
      + + + +
        +
      • +

        recieveClientPacket

        +
        void recieveClientPacket(org.bukkit.entity.Player sender,
        +                       PacketContainer packet)
        +                         throws java.lang.IllegalAccessException,
        +                                java.lang.reflect.InvocationTargetException
        +
        Simulate recieving a certain packet from a given player.
        +
        Parameters:
        sender - - the sender.
        packet - - the packet that was sent.
        +
        Throws:
        +
        java.lang.reflect.InvocationTargetException - If the reflection machinery failed.
        +
        java.lang.IllegalAccessException - If the underlying method caused an error.
        +
      • +
      + + + +
        +
      • +

        recieveClientPacket

        +
        void recieveClientPacket(org.bukkit.entity.Player sender,
        +                       PacketContainer packet,
        +                       boolean filters)
        +                         throws java.lang.IllegalAccessException,
        +                                java.lang.reflect.InvocationTargetException
        +
        Simulate recieving a certain packet from a given player.
        +
        Parameters:
        sender - - the sender.
        packet - - the packet that was sent.
        filters - - whether or not to invoke any packet filters.
        +
        Throws:
        +
        java.lang.reflect.InvocationTargetException - If the reflection machinery failed.
        +
        java.lang.IllegalAccessException - If the underlying method caused an error.
        +
      • +
      + + + +
        +
      • +

        createPacket

        +
        PacketContainer createPacket(int id)
        +
        Constructs a new encapsulated Minecraft packet with the given ID.
        +
        Parameters:
        id - - packet ID.
        +
        Returns:
        New encapsulated Minecraft packet.
        +
      • +
      + + + +
        +
      • +

        createPacket

        +
        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 + 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.
        +
      • +
      + + + +
        +
      • +

        createPacketConstructor

        +
        PacketConstructor createPacketConstructor(int id,
        +                                        java.lang.Object... arguments)
        +
        Construct a packet using the special builtin Minecraft constructors.
        +
        Parameters:
        id - - the packet ID.
        arguments - - arguments that will be passed to the constructor.
        +
        Returns:
        The packet constructor.
        +
      • +
      + + + +
        +
      • +

        updateEntity

        +
        void updateEntity(org.bukkit.entity.Entity entity,
        +                java.util.List<org.bukkit.entity.Player> observers)
        +                  throws FieldAccessException
        +
        Completely refresh all clients about an entity.
        +
        Parameters:
        entity - - entity to refresh.
        observers - - the clients to update.
        +
        Throws:
        +
        FieldAccessException
        +
      • +
      + + + +
        +
      • +

        getSendingFilters

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

        getReceivingFilters

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

        isClosed

        +
        boolean isClosed()
        +
        Determines whether or not this protocol mananger has been disabled.
        +
        Returns:
        TRUE if it has, FALSE otherwise.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/class-use/Application.html b/Javadoc/com/comphenix/protocol/class-use/Application.html new file mode 100644 index 00000000..264592f1 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/class-use/Application.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.Application + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.Application

+
+
No usage of com.comphenix.protocol.Application
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/class-use/Packets.Client.html b/Javadoc/com/comphenix/protocol/class-use/Packets.Client.html new file mode 100644 index 00000000..2646b442 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/class-use/Packets.Client.html @@ -0,0 +1,163 @@ + + + + + +Uses of Class com.comphenix.protocol.Packets.Client + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.Packets.Client

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/class-use/Packets.Server.html b/Javadoc/com/comphenix/protocol/class-use/Packets.Server.html new file mode 100644 index 00000000..ac6f15b0 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/class-use/Packets.Server.html @@ -0,0 +1,163 @@ + + + + + +Uses of Class com.comphenix.protocol.Packets.Server + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.Packets.Server

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/class-use/Packets.html b/Javadoc/com/comphenix/protocol/class-use/Packets.html new file mode 100644 index 00000000..e77407d6 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/class-use/Packets.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.Packets + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.Packets

+
+
No usage of com.comphenix.protocol.Packets
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/class-use/ProtocolLibrary.html b/Javadoc/com/comphenix/protocol/class-use/ProtocolLibrary.html new file mode 100644 index 00000000..e0108b1d --- /dev/null +++ b/Javadoc/com/comphenix/protocol/class-use/ProtocolLibrary.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.ProtocolLibrary + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.ProtocolLibrary

+
+
No usage of com.comphenix.protocol.ProtocolLibrary
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/class-use/ProtocolManager.html b/Javadoc/com/comphenix/protocol/class-use/ProtocolManager.html new file mode 100644 index 00000000..7f4ff42f --- /dev/null +++ b/Javadoc/com/comphenix/protocol/class-use/ProtocolManager.html @@ -0,0 +1,179 @@ + + + + + +Uses of Interface com.comphenix.protocol.ProtocolManager + + + + + + + +
+ + + + + +
+ + +
+

Uses of Interface
com.comphenix.protocol.ProtocolManager

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html b/Javadoc/com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html new file mode 100644 index 00000000..995fad80 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html @@ -0,0 +1,571 @@ + + + + + +SortedCopyOnWriteArray + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.concurrency
+

Class SortedCopyOnWriteArray<T extends java.lang.Comparable<T>>

+
+
+ +
+
    +
  • +
    Type Parameters:
    T - - type of the elements in the list.
    +
    +
    All Implemented Interfaces:
    +
    java.lang.Iterable<T>, java.util.Collection<T>
    +
    +
    +
    +
    public class SortedCopyOnWriteArray<T extends java.lang.Comparable<T>>
    +extends java.lang.Object
    +implements java.lang.Iterable<T>, java.util.Collection<T>
    +
    An implicitly sorted array list that preserves insertion order and maintains duplicates.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      SortedCopyOnWriteArray() +
      Construct an empty sorted array.
      +
      SortedCopyOnWriteArray(java.util.Collection<T> wrapped) +
      Create a sorted array from the given list.
      +
      SortedCopyOnWriteArray(java.util.Collection<T> wrapped, + boolean sort) +
      Create a sorted array from the given list.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      booleanadd(T value) +
      Inserts the given element in the proper location.
      +
      booleanaddAll(java.util.Collection<? extends T> values) 
      voidclear() 
      booleancontains(java.lang.Object value) 
      booleancontainsAll(java.util.Collection<?> values) 
      Tget(int index) +
      Retrieves an element by index.
      +
      booleanisEmpty() 
      java.util.Iterator<T>iterator() +
      Retrieves an iterator over the elements in the given list.
      +
      voidremove(int index) +
      Removes from the list by making a copy of every element except the one with the given index.
      +
      booleanremove(java.lang.Object value) +
      Removes from the list by making a new list with every element except the one given.
      +
      booleanremoveAll(java.util.Collection<?> values) 
      booleanretainAll(java.util.Collection<?> values) 
      intsize() +
      Retrieve the size of the list.
      +
      java.lang.Object[]toArray() 
      <T> T[]toArray(T[] a) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Collection

        +equals, hashCode
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SortedCopyOnWriteArray

        +
        public SortedCopyOnWriteArray()
        +
        Construct an empty sorted array.
        +
      • +
      + + + +
        +
      • +

        SortedCopyOnWriteArray

        +
        public SortedCopyOnWriteArray(java.util.Collection<T> wrapped)
        +
        Create a sorted array from the given list. The elements will be automatically sorted.
        +
        Parameters:
        wrapped - - the collection whose elements are to be placed into the list.
        +
      • +
      + + + +
        +
      • +

        SortedCopyOnWriteArray

        +
        public SortedCopyOnWriteArray(java.util.Collection<T> wrapped,
        +                      boolean sort)
        +
        Create a sorted array from the given list.
        +
        Parameters:
        wrapped - - the collection whose elements are to be placed into the list.
        sort - - TRUE to automatically sort the collection, FALSE if it is already sorted.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        add

        +
        public boolean add(T value)
        +
        Inserts the given element in the proper location.
        +
        +
        Specified by:
        +
        add in interface java.util.Collection<T extends java.lang.Comparable<T>>
        +
        Parameters:
        value - - element to insert.
        +
      • +
      + + + +
        +
      • +

        addAll

        +
        public boolean addAll(java.util.Collection<? extends T> values)
        +
        +
        Specified by:
        +
        addAll in interface java.util.Collection<T extends java.lang.Comparable<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. +

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

        +
        +
        Specified by:
        +
        remove in interface java.util.Collection<T extends java.lang.Comparable<T>>
        +
        Parameters:
        value - - value to remove.
        +
      • +
      + + + +
        +
      • +

        removeAll

        +
        public boolean removeAll(java.util.Collection<?> values)
        +
        +
        Specified by:
        +
        removeAll in interface java.util.Collection<T extends java.lang.Comparable<T>>
        +
        +
      • +
      + + + +
        +
      • +

        retainAll

        +
        public boolean retainAll(java.util.Collection<?> values)
        +
        +
        Specified by:
        +
        retainAll in interface java.util.Collection<T extends java.lang.Comparable<T>>
        +
        +
      • +
      + + + +
        +
      • +

        remove

        +
        public void remove(int index)
        +
        Removes from the list by making a copy of every element except the one with the given index.
        +
        Parameters:
        index - - index of the element to remove.
        +
      • +
      + + + +
        +
      • +

        get

        +
        public T get(int index)
        +
        Retrieves an element by index.
        +
        Parameters:
        index - - index of element to retrieve.
        +
        Returns:
        The element at the given location.
        +
      • +
      + + + +
        +
      • +

        size

        +
        public int size()
        +
        Retrieve the size of the list.
        +
        +
        Specified by:
        +
        size in interface java.util.Collection<T extends java.lang.Comparable<T>>
        +
        Returns:
        Size of the list.
        +
      • +
      + + + +
        +
      • +

        iterator

        +
        public java.util.Iterator<T> iterator()
        +
        Retrieves an iterator over the elements in the given list. + Warning: No not attempt to remove elements using the iterator.
        +
        +
        Specified by:
        +
        iterator in interface java.lang.Iterable<T extends java.lang.Comparable<T>>
        +
        Specified by:
        +
        iterator in interface java.util.Collection<T extends java.lang.Comparable<T>>
        +
        +
      • +
      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
        +
        Specified by:
        +
        clear in interface java.util.Collection<T extends java.lang.Comparable<T>>
        +
        +
      • +
      + + + +
        +
      • +

        contains

        +
        public boolean contains(java.lang.Object value)
        +
        +
        Specified by:
        +
        contains in interface java.util.Collection<T extends java.lang.Comparable<T>>
        +
        +
      • +
      + + + +
        +
      • +

        containsAll

        +
        public boolean containsAll(java.util.Collection<?> values)
        +
        +
        Specified by:
        +
        containsAll in interface java.util.Collection<T extends java.lang.Comparable<T>>
        +
        +
      • +
      + + + +
        +
      • +

        isEmpty

        +
        public boolean isEmpty()
        +
        +
        Specified by:
        +
        isEmpty in interface java.util.Collection<T extends java.lang.Comparable<T>>
        +
        +
      • +
      + + + +
        +
      • +

        toArray

        +
        public java.lang.Object[] toArray()
        +
        +
        Specified by:
        +
        toArray in interface java.util.Collection<T extends java.lang.Comparable<T>>
        +
        +
      • +
      + + + + + +
        +
      • +

        toArray

        +
        public <T> T[] toArray(T[] a)
        +
        +
        Specified by:
        +
        toArray in interface java.util.Collection<T extends java.lang.Comparable<T>>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/concurrency/class-use/SortedCopyOnWriteArray.html b/Javadoc/com/comphenix/protocol/concurrency/class-use/SortedCopyOnWriteArray.html new file mode 100644 index 00000000..bc9299d7 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/concurrency/class-use/SortedCopyOnWriteArray.html @@ -0,0 +1,155 @@ + + + + + +Uses of Class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.concurrency.SortedCopyOnWriteArray

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/concurrency/package-frame.html b/Javadoc/com/comphenix/protocol/concurrency/package-frame.html new file mode 100644 index 00000000..8dd72b5d --- /dev/null +++ b/Javadoc/com/comphenix/protocol/concurrency/package-frame.html @@ -0,0 +1,19 @@ + + + + + +com.comphenix.protocol.concurrency + + + + +

com.comphenix.protocol.concurrency

+
+

Classes

+ +
+ + diff --git a/Javadoc/com/comphenix/protocol/concurrency/package-summary.html b/Javadoc/com/comphenix/protocol/concurrency/package-summary.html new file mode 100644 index 00000000..086e5d6e --- /dev/null +++ b/Javadoc/com/comphenix/protocol/concurrency/package-summary.html @@ -0,0 +1,135 @@ + + + + + +com.comphenix.protocol.concurrency + + + + + + + +
+ + + + + +
+ + +
+

Package com.comphenix.protocol.concurrency

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/concurrency/package-tree.html b/Javadoc/com/comphenix/protocol/concurrency/package-tree.html new file mode 100644 index 00000000..f51ef4a1 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/concurrency/package-tree.html @@ -0,0 +1,128 @@ + + + + + +com.comphenix.protocol.concurrency Class Hierarchy + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package com.comphenix.protocol.concurrency

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/concurrency/package-use.html b/Javadoc/com/comphenix/protocol/concurrency/package-use.html new file mode 100644 index 00000000..5a8f4e3c --- /dev/null +++ b/Javadoc/com/comphenix/protocol/concurrency/package-use.html @@ -0,0 +1,150 @@ + + + + + +Uses of Package com.comphenix.protocol.concurrency + + + + + + + +
+ + + + + +
+ + +
+

Uses of Package
com.comphenix.protocol.concurrency

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/ConnectionSide.html b/Javadoc/com/comphenix/protocol/events/ConnectionSide.html new file mode 100644 index 00000000..545147cb --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/ConnectionSide.html @@ -0,0 +1,371 @@ + + + + + +ConnectionSide + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.events
+

Enum ConnectionSide

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<ConnectionSide>
    +
    +
    +
    +
    public enum ConnectionSide
    +extends java.lang.Enum<ConnectionSide>
    +
    Used to set a packet filter.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      BOTH +
      Listen for both client and server side packets.
      +
      CLIENT_SIDE +
      Listen for client side packets that will invoke onPacketReceiving().
      +
      SERVER_SIDE +
      Listen for server side packets that will invoke onPacketSending().
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      booleanisForClient() 
      booleanisForServer() 
      static ConnectionSidevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ConnectionSide[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        SERVER_SIDE

        +
        public static final ConnectionSide SERVER_SIDE
        +
        Listen for server side packets that will invoke onPacketSending().
        +
      • +
      + + + +
        +
      • +

        CLIENT_SIDE

        +
        public static final ConnectionSide CLIENT_SIDE
        +
        Listen for client side packets that will invoke onPacketReceiving().
        +
      • +
      + + + +
        +
      • +

        BOTH

        +
        public static final ConnectionSide BOTH
        +
        Listen for both client and server side packets.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        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
        +
      • +
      + + + +
        +
      • +

        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 +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 +with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
      • +
      + + + +
        +
      • +

        isForClient

        +
        public boolean isForClient()
        +
      • +
      + + + +
        +
      • +

        isForServer

        +
        public boolean isForServer()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/ListenerPriority.html b/Javadoc/com/comphenix/protocol/events/ListenerPriority.html new file mode 100644 index 00000000..6a08f435 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/ListenerPriority.html @@ -0,0 +1,413 @@ + + + + + +ListenerPriority + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.events
+

Enum ListenerPriority

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<ListenerPriority>
    +
    +
    +
    +
    public enum ListenerPriority
    +extends java.lang.Enum<ListenerPriority>
    +
    Represents a packet event priority, similar to the Bukkit EventPriority.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      HIGH +
      Event call is of high importance.
      +
      HIGHEST +
      Event call is critical and must have the final say in what happens to the + event.
      +
      LOW +
      Event call is of low importance.
      +
      LOWEST +
      Event call is of very low importance and should be ran first, to allow + other plugins to further customise the outcome.
      +
      MONITOR +
      Event is listened to purely for monitoring the outcome of an event.
      +
      NORMAL +
      Event call is neither important or unimportant, and may be ran normally.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      intgetSlot() +
      A low slot represents a low priority.
      +
      static ListenerPriorityvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ListenerPriority[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        LOWEST

        +
        public static final ListenerPriority LOWEST
        +
        Event call is of very low importance and should be ran first, to allow + other plugins to further customise the outcome.
        +
      • +
      + + + +
        +
      • +

        LOW

        +
        public static final ListenerPriority LOW
        +
        Event call is of low importance.
        +
      • +
      + + + +
        +
      • +

        NORMAL

        +
        public static final ListenerPriority NORMAL
        +
        Event call is neither important or unimportant, and may be ran normally.
        +
      • +
      + + + +
        +
      • +

        HIGH

        +
        public static final ListenerPriority HIGH
        +
        Event call is of high importance.
        +
      • +
      + + + +
        +
      • +

        HIGHEST

        +
        public static final ListenerPriority HIGHEST
        +
        Event call is critical and must have the final say in what happens to the + event.
        +
      • +
      + + + +
        +
      • +

        MONITOR

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

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

        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        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
        +
      • +
      + + + +
        +
      • +

        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 +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 +with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
      • +
      + + + +
        +
      • +

        getSlot

        +
        public int getSlot()
        +
        A low slot represents a low priority.
        +
        Returns:
        Integer representation of this priorty.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/ListeningWhitelist.html b/Javadoc/com/comphenix/protocol/events/ListeningWhitelist.html new file mode 100644 index 00000000..893d04f2 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/ListeningWhitelist.html @@ -0,0 +1,411 @@ + + + + + +ListeningWhitelist + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.events
+

Class ListeningWhitelist

+
+
+ +
+
    +
  • +
    +
    +
    public class ListeningWhitelist
    +extends java.lang.Object
    +
    Determines which packets will be observed by a listener, and with what priority.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static ListeningWhitelistEMPTY_WHITELIST +
      A whitelist with no packets - indicates that the listener shouldn't observe any packets.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      ListeningWhitelist(ListenerPriority priority, + java.lang.Integer... whitelist) +
      Creates a packet whitelist of a given priority for a list of packets.
      +
      ListeningWhitelist(ListenerPriority priority, + java.util.Set<java.lang.Integer> whitelist) +
      Creates a packet whitelist for a given priority with a set of packet IDs.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      booleanequals(java.lang.Object obj) 
      ListenerPrioritygetPriority() +
      Retrieve the priority in the execution order of the packet listener.
      +
      java.util.Set<java.lang.Integer>getWhitelist() +
      Retrieves the list of packets that will be observed by the listeners.
      +
      inthashCode() 
      booleanisEnabled() +
      Whether or not this whitelist has any enabled packets.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        EMPTY_WHITELIST

        +
        public static ListeningWhitelist EMPTY_WHITELIST
        +
        A whitelist with no packets - indicates that the listener shouldn't observe any packets.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ListeningWhitelist

        +
        public ListeningWhitelist(ListenerPriority priority,
        +                  java.util.Set<java.lang.Integer> whitelist)
        +
        Creates a packet whitelist for a given priority with a set of packet IDs.
        +
        Parameters:
        priority - - the listener priority.
        whitelist - - set of IDs to observe/enable.
        +
      • +
      + + + +
        +
      • +

        ListeningWhitelist

        +
        public ListeningWhitelist(ListenerPriority priority,
        +                  java.lang.Integer... whitelist)
        +
        Creates a packet whitelist of a given priority for a list of packets.
        +
        Parameters:
        priority - - the listener priority.
        whitelist - - list of packet IDs to observe/enable.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isEnabled

        +
        public boolean isEnabled()
        +
        Whether or not this whitelist has any enabled packets.
        +
        Returns:
        TRUE if there are any packets, FALSE otherwise.
        +
      • +
      + + + +
        +
      • +

        getPriority

        +
        public ListenerPriority getPriority()
        +
        Retrieve the priority in the execution order of the packet listener. Highest priority will be executed last.
        +
        Returns:
        Execution order in terms of priority.
        +
      • +
      + + + +
        +
      • +

        getWhitelist

        +
        public java.util.Set<java.lang.Integer> getWhitelist()
        +
        Retrieves the list of packets that will be observed by the listeners.
        +
        Returns:
        Packet whitelist.
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/PacketAdapter.html b/Javadoc/com/comphenix/protocol/events/PacketAdapter.html new file mode 100644 index 00000000..7704d9a6 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/PacketAdapter.html @@ -0,0 +1,497 @@ + + + + + +PacketAdapter + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.events
+

Class PacketAdapter

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    PacketListener
    +
    +
    +
    +
    public abstract class PacketAdapter
    +extends java.lang.Object
    +implements PacketListener
    +
    Represents a packet listener with useful constructors.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PacketAdapter

        +
        public PacketAdapter(org.bukkit.plugin.Plugin plugin,
        +             ConnectionSide connectionSide,
        +             java.lang.Integer... packets)
        +
        Initialize a packet listener with default priority.
        +
        Parameters:
        plugin - - the plugin that spawned this listener.
        connectionSide - - the packet type the listener is looking for.
        packets - - the packet IDs the listener is looking for.
        +
      • +
      + + + +
        +
      • +

        PacketAdapter

        +
        public PacketAdapter(org.bukkit.plugin.Plugin plugin,
        +             ConnectionSide connectionSide,
        +             ListenerPriority listenerPriority,
        +             java.lang.Integer... packets)
        +
        Initialize a packet listener for a single connection side.
        +
        Parameters:
        plugin - - the plugin that spawned this listener.
        connectionSide - - the packet type the listener is looking for.
        listenerPriority - - the event priority.
        packets - - the packet IDs the listener is looking for.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onPacketReceiving

        +
        public void onPacketReceiving(PacketEvent event)
        +
        Description copied from interface: PacketListener
        +
        Invoked right before a recieved packet from a client is being processed.
        +
        +
        Specified by:
        +
        onPacketReceiving in interface PacketListener
        +
        Parameters:
        event - - the packet that has been recieved.
        +
      • +
      + + + +
        +
      • +

        onPacketSending

        +
        public void onPacketSending(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.

        +
        +
        Specified by:
        +
        onPacketSending in interface PacketListener
        +
        Parameters:
        event - - the packet that should be sent.
        +
      • +
      + + + +
        +
      • +

        getReceivingWhitelist

        +
        public ListeningWhitelist getReceivingWhitelist()
        +
        Description copied from interface: PacketListener
        +
        Retrieve which packets sent by the client this listener will observe.
        +
        +
        Specified by:
        +
        getReceivingWhitelist in interface PacketListener
        +
        Returns:
        List of server packets to observe, along with the priority.
        +
      • +
      + + + +
        +
      • +

        getSendingWhitelist

        +
        public ListeningWhitelist getSendingWhitelist()
        +
        Description copied from interface: PacketListener
        +
        Retrieve which packets sent by the server this listener will observe.
        +
        +
        Specified by:
        +
        getSendingWhitelist in interface PacketListener
        +
        Returns:
        List of server packets to observe, along with the priority.
        +
      • +
      + + + +
        +
      • +

        getPlugin

        +
        public org.bukkit.plugin.Plugin getPlugin()
        +
        Description copied from interface: PacketListener
        +
        Retrieve the plugin that created list packet listener.
        +
        +
        Specified by:
        +
        getPlugin in interface PacketListener
        +
        Returns:
        The plugin, or NULL if not available.
        +
      • +
      + + + +
        +
      • +

        getPluginName

        +
        public static java.lang.String getPluginName(PacketListener listener)
        +
        Retrieves the name of the plugin that has been associated with the listener.
        +
        Returns:
        Name of the associated plugin.
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/PacketContainer.html b/Javadoc/com/comphenix/protocol/events/PacketContainer.html new file mode 100644 index 00000000..13ab3e35 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/PacketContainer.html @@ -0,0 +1,501 @@ + + + + + +PacketContainer + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.events
+

Class PacketContainer

+
+
+ +
+
    +
  • +
    +
    +
    public class PacketContainer
    +extends java.lang.Object
    +
    Represents a Minecraft packet indirectly.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected net.minecraft.server.Packethandle 
      protected intid 
      protected StructureModifier<java.lang.Object>structureModifier 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      PacketContainer(int id) +
      Creates a packet container for a new packet.
      +
      PacketContainer(int id, + net.minecraft.server.Packet handle) +
      Creates a packet container for an existing packet.
      +
      PacketContainer(int id, + net.minecraft.server.Packet handle, + StructureModifier<java.lang.Object> structure) +
      Creates a packet container for an existing packet.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      StructureModifier<org.bukkit.entity.Entity>getEntityModifier(org.bukkit.World world) +
      Retrieves a read/write structure for entity objects.
      +
      net.minecraft.server.PacketgetHandle() +
      Retrieves the underlying Minecraft packet.
      +
      intgetID() +
      Retrieves the ID of this packet.
      +
      StructureModifier<org.bukkit.inventory.ItemStack[]>getItemArrayModifier() +
      Retrieves a read/write structure for arrays of ItemStacks.
      +
      StructureModifier<org.bukkit.inventory.ItemStack>getItemModifier() +
      Retrieves a read/write structure for ItemStack.
      +
      StructureModifier<java.lang.Object>getModifier() +
      Retrieves the generic structure modifier for this packet.
      +
      <T> StructureModifier<T>getSpecificModifier(java.lang.Class<T> primitiveType) +
      Retrieves a read/write structure for every field with the given type.
      +
      StructureModifier<org.bukkit.WorldType>getWorldTypeModifier() +
      Retrieves a read/write structure for the world type enum.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        handle

        +
        protected net.minecraft.server.Packet handle
        +
      • +
      + + + +
        +
      • +

        id

        +
        protected int id
        +
      • +
      + + + +
        +
      • +

        structureModifier

        +
        protected StructureModifier<java.lang.Object> structureModifier
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PacketContainer

        +
        public PacketContainer(int id)
        +
        Creates a packet container for a new packet.
        +
        Parameters:
        id - - ID of the packet to create.
        +
      • +
      + + + +
        +
      • +

        PacketContainer

        +
        public PacketContainer(int id,
        +               net.minecraft.server.Packet handle)
        +
        Creates a packet container for an existing packet.
        +
        Parameters:
        id - - ID of the given packet.
        handle - - contained packet.
        +
      • +
      + + + +
        +
      • +

        PacketContainer

        +
        public PacketContainer(int id,
        +               net.minecraft.server.Packet handle,
        +               StructureModifier<java.lang.Object> structure)
        +
        Creates a packet container for an existing packet.
        +
        Parameters:
        id - - ID of the given packet.
        handle - - contained packet.
        structure - - structure modifier.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getHandle

        +
        public net.minecraft.server.Packet getHandle()
        +
        Retrieves the underlying Minecraft packet.
        +
        Returns:
        Underlying Minecraft packet.
        +
      • +
      + + + +
        +
      • +

        getModifier

        +
        public StructureModifier<java.lang.Object> getModifier()
        +
        Retrieves the generic structure modifier for this packet.
        +
        Returns:
        Structure modifier.
        +
      • +
      + + + +
        +
      • +

        getSpecificModifier

        +
        public <T> StructureModifier<T> getSpecificModifier(java.lang.Class<T> primitiveType)
        +
        Retrieves a read/write structure for every field with the given type.
        +
        Parameters:
        primitiveType - - the type to find.
        +
        Returns:
        A modifier for this specific type.
        +
      • +
      + + + +
        +
      • +

        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 + internal Minecraft ItemStack.

        +
        Returns:
        A modifier for ItemStack fields.
        +
      • +
      + + + +
        +
      • +

        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 + internal Minecraft ItemStack.

        +
        Returns:
        A modifier for ItemStack array fields.
        +
      • +
      + + + +
        +
      • +

        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 + internal Minecraft world type.

        +
        Returns:
        A modifier for world type fields.
        +
      • +
      + + + +
        +
      • +

        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 + is essential.

        +
        Returns:
        A modifier entity types.
        +
      • +
      + + + +
        +
      • +

        getID

        +
        public int getID()
        +
        Retrieves the ID of this packet.
        +
        Returns:
        Packet ID.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/PacketEvent.html b/Javadoc/com/comphenix/protocol/events/PacketEvent.html new file mode 100644 index 00000000..da094ff5 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/PacketEvent.html @@ -0,0 +1,449 @@ + + + + + +PacketEvent + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.events
+

Class PacketEvent

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, org.bukkit.event.Cancellable
    +
    +
    +
    +
    public class PacketEvent
    +extends java.util.EventObject
    +implements org.bukkit.event.Cancellable
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class java.util.EventObject

        +source
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PacketEvent(java.lang.Object source) +
      Use the static constructors to create instances of this event.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static PacketEventfromClient(java.lang.Object source, + PacketContainer packet, + org.bukkit.entity.Player client) +
      Creates an event representing a client packet transmission.
      +
      static PacketEventfromServer(java.lang.Object source, + PacketContainer packet, + org.bukkit.entity.Player recipient) +
      Creates an event representing a server packet transmission.
      +
      PacketContainergetPacket() +
      Retrieves the packet that will be sent to the player.
      +
      intgetPacketID() +
      Retrieves the packet ID.
      +
      org.bukkit.entity.PlayergetPlayer() +
      Retrieves the player that has sent the packet or is recieving it.
      +
      booleanisCancelled() +
      Retrieves whether or not the packet should be cancelled.
      +
      booleanisServerPacket() +
      Whether or not this packet was created by the server.
      +
      voidsetCancelled(boolean cancel) +
      Sets whether or not the packet should be cancelled.
      +
      voidsetPacket(PacketContainer packet) +
      Replace the packet that will be sent to the player.
      +
      +
        +
      • + + +

        Methods inherited from class java.util.EventObject

        +getSource, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PacketEvent

        +
        public PacketEvent(java.lang.Object source)
        +
        Use the static constructors to create instances of this event.
        +
        Parameters:
        source - - the event source.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        fromClient

        +
        public static PacketEvent fromClient(java.lang.Object source,
        +                     PacketContainer packet,
        +                     org.bukkit.entity.Player client)
        +
        Creates an event representing a client packet transmission.
        +
        Parameters:
        source - - the event source.
        packet - - the packet.
        client - - the client that sent the packet.
        +
        Returns:
        The event.
        +
      • +
      + + + +
        +
      • +

        fromServer

        +
        public static PacketEvent fromServer(java.lang.Object source,
        +                     PacketContainer packet,
        +                     org.bukkit.entity.Player recipient)
        +
        Creates an event representing a server packet transmission.
        +
        Parameters:
        source - - the event source.
        packet - - the packet.
        recipient - - the client that will receieve the packet.
        +
        Returns:
        The event.
        +
      • +
      + + + +
        +
      • +

        getPacket

        +
        public PacketContainer getPacket()
        +
        Retrieves the packet that will be sent to the player.
        +
        Returns:
        Packet to send to the player.
        +
      • +
      + + + +
        +
      • +

        setPacket

        +
        public void setPacket(PacketContainer packet)
        +
        Replace the packet that will be sent to the player.
        +
        Parameters:
        packet - - the packet that will be sent instead.
        +
      • +
      + + + +
        +
      • +

        getPacketID

        +
        public int getPacketID()
        +
        Retrieves the packet ID.
        +
        Returns:
        The current packet ID.
        +
      • +
      + + + +
        +
      • +

        isCancelled

        +
        public boolean isCancelled()
        +
        Retrieves whether or not the packet should be cancelled.
        +
        +
        Specified by:
        +
        isCancelled in interface org.bukkit.event.Cancellable
        +
        Returns:
        TRUE if it should be cancelled, FALSE otherwise.
        +
      • +
      + + + +
        +
      • +

        setCancelled

        +
        public void setCancelled(boolean cancel)
        +
        Sets whether or not the packet should be cancelled.
        +
        +
        Specified by:
        +
        setCancelled in interface org.bukkit.event.Cancellable
        +
        Parameters:
        cancel - - TRUE if it should be cancelled, FALSE otherwise.
        +
      • +
      + + + +
        +
      • +

        getPlayer

        +
        public org.bukkit.entity.Player getPlayer()
        +
        Retrieves the player that has sent the packet or is recieving it.
        +
        Returns:
        The player associated with this event.
        +
      • +
      + + + +
        +
      • +

        isServerPacket

        +
        public boolean isServerPacket()
        +
        Whether or not this packet was created by the server.
        +
        Returns:
        TRUE if the packet was created by the server, FALSE if it was created by a client.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/PacketListener.html b/Javadoc/com/comphenix/protocol/events/PacketListener.html new file mode 100644 index 00000000..fa7d11b0 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/PacketListener.html @@ -0,0 +1,289 @@ + + + + + +PacketListener + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.events
+

Interface PacketListener

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    PacketAdapter
    +
    +
    +
    +
    public interface PacketListener
    +
    Represents a listener that recieves notifications when packets are sent or recieved. +

    + Use PacketAdapter for a simple wrapper around this interface.

    +
    Author:
    +
    Kristian
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        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.

        +
        Parameters:
        event - - the packet that should be sent.
        +
      • +
      + + + +
        +
      • +

        onPacketReceiving

        +
        void onPacketReceiving(PacketEvent event)
        +
        Invoked right before a recieved packet from a client is being processed.
        +
        Parameters:
        event - - the packet that has been recieved.
        +
      • +
      + + + +
        +
      • +

        getSendingWhitelist

        +
        ListeningWhitelist getSendingWhitelist()
        +
        Retrieve which packets sent by the server this listener will observe.
        +
        Returns:
        List of server packets to observe, along with the priority.
        +
      • +
      + + + +
        +
      • +

        getReceivingWhitelist

        +
        ListeningWhitelist getReceivingWhitelist()
        +
        Retrieve which packets sent by the client this listener will observe.
        +
        Returns:
        List of server packets to observe, along with the priority.
        +
      • +
      + + + +
        +
      • +

        getPlugin

        +
        org.bukkit.plugin.Plugin getPlugin()
        +
        Retrieve the plugin that created list packet listener.
        +
        Returns:
        The plugin, or NULL if not available.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/class-use/ConnectionSide.html b/Javadoc/com/comphenix/protocol/events/class-use/ConnectionSide.html new file mode 100644 index 00000000..3fe26be4 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/class-use/ConnectionSide.html @@ -0,0 +1,200 @@ + + + + + +Uses of Class com.comphenix.protocol.events.ConnectionSide + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.events.ConnectionSide

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/class-use/ListenerPriority.html b/Javadoc/com/comphenix/protocol/events/class-use/ListenerPriority.html new file mode 100644 index 00000000..bcbb97d9 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/class-use/ListenerPriority.html @@ -0,0 +1,198 @@ + + + + + +Uses of Class com.comphenix.protocol.events.ListenerPriority + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.events.ListenerPriority

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/class-use/ListeningWhitelist.html b/Javadoc/com/comphenix/protocol/events/class-use/ListeningWhitelist.html new file mode 100644 index 00000000..523751a0 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/class-use/ListeningWhitelist.html @@ -0,0 +1,226 @@ + + + + + +Uses of Class com.comphenix.protocol.events.ListeningWhitelist + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.events.ListeningWhitelist

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/class-use/PacketAdapter.html b/Javadoc/com/comphenix/protocol/events/class-use/PacketAdapter.html new file mode 100644 index 00000000..4885f359 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/class-use/PacketAdapter.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.events.PacketAdapter + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.events.PacketAdapter

+
+
No usage of com.comphenix.protocol.events.PacketAdapter
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/class-use/PacketContainer.html b/Javadoc/com/comphenix/protocol/events/class-use/PacketContainer.html new file mode 100644 index 00000000..8fe1a597 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/class-use/PacketContainer.html @@ -0,0 +1,322 @@ + + + + + +Uses of Class com.comphenix.protocol.events.PacketContainer + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.events.PacketContainer

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/class-use/PacketEvent.html b/Javadoc/com/comphenix/protocol/events/class-use/PacketEvent.html new file mode 100644 index 00000000..15b19a15 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/class-use/PacketEvent.html @@ -0,0 +1,240 @@ + + + + + +Uses of Class com.comphenix.protocol.events.PacketEvent + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.events.PacketEvent

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/class-use/PacketListener.html b/Javadoc/com/comphenix/protocol/events/class-use/PacketListener.html new file mode 100644 index 00000000..0ea658bb --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/class-use/PacketListener.html @@ -0,0 +1,270 @@ + + + + + +Uses of Interface com.comphenix.protocol.events.PacketListener + + + + + + + +
+ + + + + +
+ + +
+

Uses of Interface
com.comphenix.protocol.events.PacketListener

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/package-frame.html b/Javadoc/com/comphenix/protocol/events/package-frame.html new file mode 100644 index 00000000..4bf69df0 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/package-frame.html @@ -0,0 +1,31 @@ + + + + + +com.comphenix.protocol.events + + + + +

com.comphenix.protocol.events

+
+

Interfaces

+ +

Classes

+ +

Enums

+ +
+ + diff --git a/Javadoc/com/comphenix/protocol/events/package-summary.html b/Javadoc/com/comphenix/protocol/events/package-summary.html new file mode 100644 index 00000000..43c8d43e --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/package-summary.html @@ -0,0 +1,191 @@ + + + + + +com.comphenix.protocol.events + + + + + + + +
+ + + + + +
+ + +
+

Package com.comphenix.protocol.events

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/package-tree.html b/Javadoc/com/comphenix/protocol/events/package-tree.html new file mode 100644 index 00000000..5a4b5611 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/package-tree.html @@ -0,0 +1,152 @@ + + + + + +com.comphenix.protocol.events Class Hierarchy + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package com.comphenix.protocol.events

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/events/package-use.html b/Javadoc/com/comphenix/protocol/events/package-use.html new file mode 100644 index 00000000..d69ef608 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/events/package-use.html @@ -0,0 +1,233 @@ + + + + + +Uses of Package com.comphenix.protocol.events + + + + + + + +
+ + + + + +
+ + +
+

Uses of Package
com.comphenix.protocol.events

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/ConcurrentListenerMultimap.html b/Javadoc/com/comphenix/protocol/injector/ConcurrentListenerMultimap.html new file mode 100644 index 00000000..303c558d --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/ConcurrentListenerMultimap.html @@ -0,0 +1,359 @@ + + + + + +ConcurrentListenerMultimap + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.injector
+

Class ConcurrentListenerMultimap

+
+
+ +
+
    +
  • +
    +
    +
    public class ConcurrentListenerMultimap
    +extends java.lang.Object
    +
    A thread-safe implementation of a listener multimap.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected java.util.concurrent.ConcurrentMap<java.lang.Integer,SortedCopyOnWriteArray<com.comphenix.protocol.injector.ConcurrentListenerMultimap.PrioritizedListener>>listeners 
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidaddListener(PacketListener listener, + ListeningWhitelist whitelist) +
      Adds a listener to its requested list of packet recievers.
      +
      voidinvokePacketRecieving(java.util.logging.Logger logger, + PacketEvent event) +
      Invokes the given packet event for every registered listener.
      +
      voidinvokePacketSending(java.util.logging.Logger logger, + PacketEvent event) +
      Invokes the given packet event for every registered listener.
      +
      java.util.List<java.lang.Integer>removeListener(PacketListener listener, + ListeningWhitelist whitelist) +
      Removes the given listener from the packet event list.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        listeners

        +
        protected java.util.concurrent.ConcurrentMap<java.lang.Integer,SortedCopyOnWriteArray<com.comphenix.protocol.injector.ConcurrentListenerMultimap.PrioritizedListener>> listeners
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ConcurrentListenerMultimap

        +
        public ConcurrentListenerMultimap()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addListener

        +
        public void addListener(PacketListener listener,
        +               ListeningWhitelist whitelist)
        +
        Adds a listener to its requested list of packet recievers.
        +
        Parameters:
        listener - - listener with a list of packets to recieve notifcations for.
        whitelist - - the packet whitelist to use.
        +
      • +
      + + + +
        +
      • +

        removeListener

        +
        public java.util.List<java.lang.Integer> removeListener(PacketListener listener,
        +                                               ListeningWhitelist whitelist)
        +
        Removes the given listener from the packet event list.
        +
        Parameters:
        listener - - listener to remove.
        whitelist - - the packet whitelist that was used.
        +
        Returns:
        Every packet ID that was removed due to no listeners.
        +
      • +
      + + + +
        +
      • +

        invokePacketRecieving

        +
        public void invokePacketRecieving(java.util.logging.Logger logger,
        +                         PacketEvent event)
        +
        Invokes the given packet event for every registered listener.
        +
        Parameters:
        logger - - the logger that will be used to inform about listener exceptions.
        event - - the packet event to invoke.
        +
      • +
      + + + +
        +
      • +

        invokePacketSending

        +
        public void invokePacketSending(java.util.logging.Logger logger,
        +                       PacketEvent event)
        +
        Invokes the given packet event for every registered listener.
        +
        Parameters:
        logger - - the logger that will be used to inform about listener exceptions.
        event - - the packet event to invoke.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/NetworkFieldInjector.FakePacket.html b/Javadoc/com/comphenix/protocol/injector/NetworkFieldInjector.FakePacket.html new file mode 100644 index 00000000..b9bdfafd --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/NetworkFieldInjector.FakePacket.html @@ -0,0 +1,165 @@ + + + + + +NetworkFieldInjector.FakePacket + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.injector
+

Interface NetworkFieldInjector.FakePacket

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    NetworkFieldInjector
    +
    +
    +
    +
    public static interface NetworkFieldInjector.FakePacket
    +
    Marker interface that indicates a packet is fake and should not be processed.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/NetworkFieldInjector.html b/Javadoc/com/comphenix/protocol/injector/NetworkFieldInjector.html new file mode 100644 index 00000000..bc781cf0 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/NetworkFieldInjector.html @@ -0,0 +1,602 @@ + + + + + +NetworkFieldInjector + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.injector
+

Class NetworkFieldInjector

+
+
+ +
+
    +
  • +
    +
    +
    public class NetworkFieldInjector
    +extends java.lang.Object
    +
    Injection hook that overrides the packet queue lists in NetworkHandler.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static interface NetworkFieldInjector.FakePacket +
      Marker interface that indicates a packet is fake and should not be processed.
      +
      +
    • +
    + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      NetworkFieldInjector(org.bukkit.entity.Player player, + PacketFilterManager manager, + java.util.Set<java.lang.Integer> sendingFilters) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidcleanupAll() +
      Remove all hooks and modifications.
      +
      java.io.DataInputStreamgetInputStream(boolean cache) +
      Retrieve the current player's input stream.
      +
      protected voidinitialize() 
      voidinjectManager() +
      Inject a hook to catch packets sent to the current player.
      +
      voidprocessPacket(net.minecraft.server.Packet packet) +
      Processes the given packet as if it was transmitted by the current player.
      +
      voidsendServerPacket(net.minecraft.server.Packet packet, + boolean filtered) +
      Send a packet to the client.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        serverHandlerField

        +
        protected static java.lang.reflect.Field serverHandlerField
        +
      • +
      + + + +
        +
      • +

        networkManagerField

        +
        protected static java.lang.reflect.Field networkManagerField
        +
      • +
      + + + +
        +
      • +

        inputField

        +
        protected static java.lang.reflect.Field inputField
        +
      • +
      + + + +
        +
      • +

        netHandlerField

        +
        protected static java.lang.reflect.Field netHandlerField
        +
      • +
      + + + +
        +
      • +

        networkModifier

        +
        protected static StructureModifier<java.lang.Object> networkModifier
        +
      • +
      + + + +
        +
      • +

        queueMethod

        +
        protected static java.lang.reflect.Method queueMethod
        +
      • +
      + + + +
        +
      • +

        processMethod

        +
        protected static java.lang.reflect.Method processMethod
        +
      • +
      + + + +
        +
      • +

        player

        +
        protected org.bukkit.entity.Player player
        +
      • +
      + + + +
        +
      • +

        hasInitialized

        +
        protected boolean hasInitialized
        +
      • +
      + + + +
        +
      • +

        networkManagerRef

        +
        protected VolatileField networkManagerRef
        +
      • +
      + + + +
        +
      • +

        networkManager

        +
        protected java.lang.Object networkManager
        +
      • +
      + + + +
        +
      • +

        netHandler

        +
        protected java.lang.Object netHandler
        +
      • +
      + + + + + + + +
        +
      • +

        sendingFilters

        +
        protected java.util.Set<java.lang.Integer> sendingFilters
        +
      • +
      + + + +
        +
      • +

        cachedInput

        +
        protected java.io.DataInputStream cachedInput
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        NetworkFieldInjector

        +
        public NetworkFieldInjector(org.bukkit.entity.Player player,
        +                    PacketFilterManager manager,
        +                    java.util.Set<java.lang.Integer> sendingFilters)
        +                     throws java.lang.IllegalAccessException
        +
        Throws:
        +
        java.lang.IllegalAccessException
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        initialize

        +
        protected void initialize()
        +                   throws java.lang.IllegalAccessException
        +
        Throws:
        +
        java.lang.IllegalAccessException
        +
      • +
      + + + +
        +
      • +

        sendServerPacket

        +
        public void sendServerPacket(net.minecraft.server.Packet packet,
        +                    boolean filtered)
        +                      throws java.lang.reflect.InvocationTargetException
        +
        Send a packet to the client.
        +
        Parameters:
        packet - - server packet to send.
        filtered - - whether or not the packet will be filtered by our listeners.
        +
        Throws:
        +
        java.lang.reflect.InvocationTargetException
        +
      • +
      + + + +
        +
      • +

        injectManager

        +
        public void injectManager()
        +
        Inject a hook to catch packets sent to the current player.
        +
      • +
      + + + +
        +
      • +

        cleanupAll

        +
        public void cleanupAll()
        +
        Remove all hooks and modifications.
        +
      • +
      + + + +
        +
      • +

        processPacket

        +
        public void processPacket(net.minecraft.server.Packet packet)
        +                   throws java.lang.IllegalAccessException,
        +                          java.lang.reflect.InvocationTargetException
        +
        Processes the given packet as if it was transmitted by the current player.
        +
        Parameters:
        packet - - packet to process.
        +
        Throws:
        +
        java.lang.IllegalAccessException - If the reflection machinery failed.
        +
        java.lang.reflect.InvocationTargetException - If the underlying method caused an error.
        +
      • +
      + + + +
        +
      • +

        getInputStream

        +
        public java.io.DataInputStream getInputStream(boolean cache)
        +
        Retrieve the current player's input stream.
        +
        Parameters:
        cache - - whether or not to cache the result of this method.
        +
        Returns:
        The player's input stream.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/NetworkObjectInjector.html b/Javadoc/com/comphenix/protocol/injector/NetworkObjectInjector.html new file mode 100644 index 00000000..4740aa2c --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/NetworkObjectInjector.html @@ -0,0 +1,581 @@ + + + + + +NetworkObjectInjector + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.injector
+

Class NetworkObjectInjector

+
+
+ +
+
    +
  • +
    +
    +
    public class NetworkObjectInjector
    +extends java.lang.Object
    +
    Injection method that overrides the NetworkHandler itself, and it's sendPacket-method.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      NetworkObjectInjector(org.bukkit.entity.Player player, + PacketFilterManager manager, + java.util.Set<java.lang.Integer> sendingFilters) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidcleanupAll() +
      Remove all hooks and modifications.
      +
      java.io.DataInputStreamgetInputStream(boolean cache) +
      Retrieve the current player's input stream.
      +
      protected voidinitialize() 
      voidinjectManager() +
      Inject a hook to catch packets sent to the current player.
      +
      voidprocessPacket(net.minecraft.server.Packet packet) +
      Processes the given packet as if it was transmitted by the current player.
      +
      voidsendServerPacket(net.minecraft.server.Packet packet, + boolean filtered) +
      Send a packet to the client.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        serverHandlerField

        +
        protected static java.lang.reflect.Field serverHandlerField
        +
      • +
      + + + +
        +
      • +

        networkManagerField

        +
        protected static java.lang.reflect.Field networkManagerField
        +
      • +
      + + + +
        +
      • +

        inputField

        +
        protected static java.lang.reflect.Field inputField
        +
      • +
      + + + +
        +
      • +

        netHandlerField

        +
        protected static java.lang.reflect.Field netHandlerField
        +
      • +
      + + + +
        +
      • +

        networkModifier

        +
        protected static StructureModifier<java.lang.Object> networkModifier
        +
      • +
      + + + +
        +
      • +

        queueMethod

        +
        protected static java.lang.reflect.Method queueMethod
        +
      • +
      + + + +
        +
      • +

        processMethod

        +
        protected static java.lang.reflect.Method processMethod
        +
      • +
      + + + +
        +
      • +

        player

        +
        protected org.bukkit.entity.Player player
        +
      • +
      + + + +
        +
      • +

        hasInitialized

        +
        protected boolean hasInitialized
        +
      • +
      + + + +
        +
      • +

        networkManagerRef

        +
        protected VolatileField networkManagerRef
        +
      • +
      + + + +
        +
      • +

        networkManager

        +
        protected java.lang.Object networkManager
        +
      • +
      + + + +
        +
      • +

        netHandler

        +
        protected java.lang.Object netHandler
        +
      • +
      + + + + + + + +
        +
      • +

        sendingFilters

        +
        protected java.util.Set<java.lang.Integer> sendingFilters
        +
      • +
      + + + +
        +
      • +

        cachedInput

        +
        protected java.io.DataInputStream cachedInput
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        NetworkObjectInjector

        +
        public NetworkObjectInjector(org.bukkit.entity.Player player,
        +                     PacketFilterManager manager,
        +                     java.util.Set<java.lang.Integer> sendingFilters)
        +                      throws java.lang.IllegalAccessException
        +
        Throws:
        +
        java.lang.IllegalAccessException
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sendServerPacket

        +
        public void sendServerPacket(net.minecraft.server.Packet packet,
        +                    boolean filtered)
        +                      throws java.lang.reflect.InvocationTargetException
        +
        Send a packet to the client.
        +
        Parameters:
        packet - - server packet to send.
        filtered - - whether or not the packet will be filtered by our listeners.
        +
        Throws:
        +
        java.lang.reflect.InvocationTargetException
        +
      • +
      + + + +
        +
      • +

        injectManager

        +
        public void injectManager()
        +
        Inject a hook to catch packets sent to the current player.
        +
      • +
      + + + +
        +
      • +

        cleanupAll

        +
        public void cleanupAll()
        +
        Remove all hooks and modifications.
        +
      • +
      + + + +
        +
      • +

        initialize

        +
        protected void initialize()
        +                   throws java.lang.IllegalAccessException
        +
        Throws:
        +
        java.lang.IllegalAccessException
        +
      • +
      + + + +
        +
      • +

        processPacket

        +
        public void processPacket(net.minecraft.server.Packet packet)
        +                   throws java.lang.IllegalAccessException,
        +                          java.lang.reflect.InvocationTargetException
        +
        Processes the given packet as if it was transmitted by the current player.
        +
        Parameters:
        packet - - packet to process.
        +
        Throws:
        +
        java.lang.IllegalAccessException - If the reflection machinery failed.
        +
        java.lang.reflect.InvocationTargetException - If the underlying method caused an error.
        +
      • +
      + + + +
        +
      • +

        getInputStream

        +
        public java.io.DataInputStream getInputStream(boolean cache)
        +
        Retrieve the current player's input stream.
        +
        Parameters:
        cache - - whether or not to cache the result of this method.
        +
        Returns:
        The player's input stream.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/PacketConstructor.BukkitUnwrapper.html b/Javadoc/com/comphenix/protocol/injector/PacketConstructor.BukkitUnwrapper.html new file mode 100644 index 00000000..0449b50c --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/PacketConstructor.BukkitUnwrapper.html @@ -0,0 +1,286 @@ + + + + + +PacketConstructor.BukkitUnwrapper + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.injector
+

Class PacketConstructor.BukkitUnwrapper

+
+
+ +
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.lang.ObjectunwrapItem(java.lang.Object wrappedObject) 
      java.lang.Class<?>unwrapType(java.lang.Class<?> type) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PacketConstructor.BukkitUnwrapper

        +
        public PacketConstructor.BukkitUnwrapper()
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/PacketConstructor.Unwrapper.html b/Javadoc/com/comphenix/protocol/injector/PacketConstructor.Unwrapper.html new file mode 100644 index 00000000..83c8804a --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/PacketConstructor.Unwrapper.html @@ -0,0 +1,227 @@ + + + + + +PacketConstructor.Unwrapper + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.injector
+

Interface PacketConstructor.Unwrapper

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.lang.ObjectunwrapItem(java.lang.Object wrappedObject) 
      java.lang.Class<?>unwrapType(java.lang.Class<?> type) 
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        unwrapItem

        +
        java.lang.Object unwrapItem(java.lang.Object wrappedObject)
        +
      • +
      + + + +
        +
      • +

        unwrapType

        +
        java.lang.Class<?> unwrapType(java.lang.Class<?> type)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/PacketConstructor.html b/Javadoc/com/comphenix/protocol/injector/PacketConstructor.html new file mode 100644 index 00000000..ba2a167f --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/PacketConstructor.html @@ -0,0 +1,369 @@ + + + + + +PacketConstructor + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.injector
+

Class PacketConstructor

+
+
+ +
+
    +
  • +
    +
    +
    public class PacketConstructor
    +extends java.lang.Object
    +
    A packet constructor that uses an internal Minecraft.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static PacketConstructorDEFAULT +
      A packet constructor that automatically converts Bukkit types to their NMS conterpart.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      PacketContainercreatePacket(java.lang.Object... values) +
      Construct a packet using the special builtin Minecraft constructors.
      +
      intgetPacketID() +
      Retrieve the id of the packets this constructor creates.
      +
      com.google.common.collect.ImmutableList<PacketConstructor.Unwrapper>getUnwrappers() 
      PacketConstructorwithPacket(int id, + java.lang.Class<?>[] types) +
      Create a packet constructor that creates packets using the given types.
      +
      PacketConstructorwithUnwrappers(java.util.List<PacketConstructor.Unwrapper> unwrappers) +
      Return a copy of the current constructor with a different list of unwrappers.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT

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

        + Remember to call withPacket().

        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getPacketID

        +
        public int getPacketID()
        +
        Retrieve the id of the packets this constructor creates.
        +
        Returns:
        The ID of the packets this constructor will create.
        +
      • +
      + + + +
        +
      • +

        withUnwrappers

        +
        public PacketConstructor withUnwrappers(java.util.List<PacketConstructor.Unwrapper> unwrappers)
        +
        Return a copy of the current constructor with a different list of unwrappers.
        +
        Parameters:
        unwrappers - - list of unwrappers that convert Bukkit wrappers into the equivalent NMS classes.
        +
        Returns:
        A constructor with a different set of unwrappers.
        +
      • +
      + + + +
        +
      • +

        withPacket

        +
        public PacketConstructor withPacket(int id,
        +                           java.lang.Class<?>[] types)
        +
        Create a packet constructor that creates packets using the given types.
        +
        Parameters:
        id - - packet ID.
        types - - types to create.
        +
        Returns:
        A packet constructor with these types.
        +
        Throws:
        +
        java.lang.IllegalArgumentException - If no packet constructor could be created with these types.
        +
      • +
      + + + +
        +
      • +

        createPacket

        +
        public PacketContainer createPacket(java.lang.Object... values)
        +                             throws FieldAccessException
        +
        Construct a packet using the special builtin Minecraft constructors.
        +
        Parameters:
        values - - values containing Bukkit wrapped items to pass to Minecraft.
        +
        Returns:
        The created packet.
        +
        Throws:
        +
        FieldAccessException - Failure due to a security limitation.
        +
        java.lang.IllegalArgumentException - Arguments doesn't match the constructor.
        +
        java.lang.RuntimeException - Minecraft threw an exception.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html b/Javadoc/com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html new file mode 100644 index 00000000..6f338d5a --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/PacketFilterManager.PlayerInjectHooks.html @@ -0,0 +1,334 @@ + + + + + +PacketFilterManager.PlayerInjectHooks + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.injector
+

Enum PacketFilterManager.PlayerInjectHooks

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      NETWORK_HANDLER_FIELDS +
      Override the packet queue lists in NetworkHandler.
      +
      NETWORK_MANAGER_OBJECT +
      Override the network handler object itself.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static PacketFilterManager.PlayerInjectHooksvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static PacketFilterManager.PlayerInjectHooks[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        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
        +
      • +
      + + + +
        +
      • +

        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 +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 +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 new file mode 100644 index 00000000..310d4414 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/PacketFilterManager.html @@ -0,0 +1,844 @@ + + + + + +PacketFilterManager + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.injector
+

Class PacketFilterManager

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    ProtocolManager
    +
    +
    +
    +
    public final class PacketFilterManager
    +extends java.lang.Object
    +implements ProtocolManager
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PacketFilterManager(java.lang.ClassLoader classLoader, + java.util.logging.Logger logger) +
      Only create instances of this class if protocol lib is disabled.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidaddPacketListener(PacketListener listener) +
      Adds a packet listener.
      +
      voidclose() 
      PacketContainercreatePacket(int id) +
      Constructs a new encapsulated Minecraft packet with the given ID.
      +
      PacketContainercreatePacket(int id, + boolean forceDefaults) +
      Constructs a new encapsulated Minecraft packet with the given ID.
      +
      PacketConstructorcreatePacketConstructor(int id, + java.lang.Object... arguments) +
      Construct a packet using the special builtin Minecraft constructors.
      +
      protected voidfinalize() 
      java.lang.ClassLoadergetClassLoader() +
      Retrieves the current plugin class loader.
      +
      java.util.logging.LoggergetLogger() 
      com.google.common.collect.ImmutableSet<PacketListener>getPacketListeners() +
      Retrieves a list of every registered packet listener.
      +
      PacketFilterManager.PlayerInjectHooksgetPlayerHook() +
      Retrieves how the server packets are read.
      +
      protected com.comphenix.protocol.injector.PlayerInjectorgetPlayerHookInstance(org.bukkit.entity.Player player) +
      Used to construct a player hook.
      +
      java.util.Set<java.lang.Integer>getReceivingFilters() +
      Retrieves a immutable set containing the ID of the recieved client packets that will be observed by listeners.
      +
      java.util.Set<java.lang.Integer>getSendingFilters() +
      Retrieves a immutable set containing the ID of the sent server packets that will be observed by listeners.
      +
      voidinitializePlayers(org.bukkit.entity.Player[] players) +
      Initialize the packet injection for every player.
      +
      protected voidinjectPlayer(org.bukkit.entity.Player player) +
      Initialize a player hook, allowing us to read server packets.
      +
      voidinvokePacketRecieving(PacketEvent event) +
      Invokes the given packet event for every registered listener.
      +
      voidinvokePacketSending(PacketEvent event) +
      Invokes the given packet event for every registered listener.
      +
      booleanisClosed() +
      Determines whether or not this protocol mananger has been disabled.
      +
      voidrecieveClientPacket(org.bukkit.entity.Player sender, + PacketContainer packet) +
      Simulate recieving a certain packet from a given player.
      +
      voidrecieveClientPacket(org.bukkit.entity.Player sender, + PacketContainer packet, + boolean filters) +
      Simulate recieving a certain packet from a given player.
      +
      voidregisterEvents(org.bukkit.plugin.PluginManager manager, + org.bukkit.plugin.Plugin plugin) +
      Register this protocol manager on Bukkit.
      +
      voidremovePacketListener(PacketListener listener) +
      Removes a given packet listener.
      +
      voidremovePacketListeners(org.bukkit.plugin.Plugin plugin) +
      Removes every listener associated with the given plugin.
      +
      voidsendServerPacket(org.bukkit.entity.Player reciever, + PacketContainer packet) +
      Send a packet to the given player.
      +
      voidsendServerPacket(org.bukkit.entity.Player reciever, + PacketContainer packet, + boolean filters) +
      Send a packet to the given player.
      +
      voidsetPlayerHook(PacketFilterManager.PlayerInjectHooks playerHook) +
      Sets how the server packets are read.
      +
      voidupdateEntity(org.bukkit.entity.Entity entity, + java.util.List<org.bukkit.entity.Player> observers) +
      Completely refresh all clients about an entity.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PacketFilterManager

        +
        public PacketFilterManager(java.lang.ClassLoader classLoader,
        +                   java.util.logging.Logger logger)
        +
        Only create instances of this class if protocol lib is disabled.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        setPlayerHook

        +
        public void setPlayerHook(PacketFilterManager.PlayerInjectHooks playerHook)
        +
        Sets how the server packets are read.
        +
        Parameters:
        playerHook - - the new injection method for reading server packets.
        +
      • +
      + + + +
        +
      • +

        getLogger

        +
        public java.util.logging.Logger getLogger()
        +
      • +
      + + + +
        +
      • +

        getPacketListeners

        +
        public com.google.common.collect.ImmutableSet<PacketListener> getPacketListeners()
        +
        Description copied from interface: ProtocolManager
        +
        Retrieves a list of every registered packet listener.
        +
        +
        Specified by:
        +
        getPacketListeners in interface ProtocolManager
        +
        Returns:
        Every registered packet listener.
        +
      • +
      + + + +
        +
      • +

        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 + can register it again.

        +
        +
        Specified by:
        +
        addPacketListener in interface ProtocolManager
        +
        Parameters:
        listener - - new packet listener.
        +
      • +
      + + + +
        +
      • +

        removePacketListener

        +
        public void removePacketListener(PacketListener listener)
        +
        Description copied from interface: ProtocolManager
        +
        Removes a given packet listener. +

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

        +
        +
        Specified by:
        +
        removePacketListener in interface ProtocolManager
        +
        Parameters:
        listener - - the packet listener to remove.
        +
      • +
      + + + +
        +
      • +

        removePacketListeners

        +
        public void removePacketListeners(org.bukkit.plugin.Plugin plugin)
        +
        Description copied from interface: ProtocolManager
        +
        Removes every listener associated with the given plugin.
        +
        +
        Specified by:
        +
        removePacketListeners in interface ProtocolManager
        +
        Parameters:
        plugin - - the plugin to unload.
        +
      • +
      + + + +
        +
      • +

        invokePacketRecieving

        +
        public void invokePacketRecieving(PacketEvent event)
        +
        Invokes the given packet event for every registered listener.
        +
        Parameters:
        event - - the packet event to invoke.
        +
      • +
      + + + +
        +
      • +

        invokePacketSending

        +
        public void invokePacketSending(PacketEvent event)
        +
        Invokes the given packet event for every registered listener.
        +
        Parameters:
        event - - the packet event to invoke.
        +
      • +
      + + + +
        +
      • +

        sendServerPacket

        +
        public void sendServerPacket(org.bukkit.entity.Player reciever,
        +                    PacketContainer packet)
        +                      throws java.lang.reflect.InvocationTargetException
        +
        Description copied from interface: ProtocolManager
        +
        Send a packet to the given player.
        +
        +
        Specified by:
        +
        sendServerPacket in interface ProtocolManager
        +
        Parameters:
        reciever - - the reciever.
        packet - - packet to send.
        +
        Throws:
        +
        java.lang.reflect.InvocationTargetException - - if an error occured when sending the packet.
        +
      • +
      + + + +
        +
      • +

        sendServerPacket

        +
        public void sendServerPacket(org.bukkit.entity.Player reciever,
        +                    PacketContainer packet,
        +                    boolean filters)
        +                      throws java.lang.reflect.InvocationTargetException
        +
        Description copied from interface: ProtocolManager
        +
        Send a packet to the given player.
        +
        +
        Specified by:
        +
        sendServerPacket in interface ProtocolManager
        +
        Parameters:
        reciever - - the reciever.
        packet - - packet to send.
        filters - - whether or not to invoke any packet filters.
        +
        Throws:
        +
        java.lang.reflect.InvocationTargetException - - if an error occured when sending the packet.
        +
      • +
      + + + +
        +
      • +

        recieveClientPacket

        +
        public void recieveClientPacket(org.bukkit.entity.Player sender,
        +                       PacketContainer packet)
        +                         throws java.lang.IllegalAccessException,
        +                                java.lang.reflect.InvocationTargetException
        +
        Description copied from interface: ProtocolManager
        +
        Simulate recieving a certain packet from a given player.
        +
        +
        Specified by:
        +
        recieveClientPacket in interface ProtocolManager
        +
        Parameters:
        sender - - the sender.
        packet - - the packet that was sent.
        +
        Throws:
        +
        java.lang.IllegalAccessException - If the underlying method caused an error.
        +
        java.lang.reflect.InvocationTargetException - If the reflection machinery failed.
        +
      • +
      + + + +
        +
      • +

        recieveClientPacket

        +
        public void recieveClientPacket(org.bukkit.entity.Player sender,
        +                       PacketContainer packet,
        +                       boolean filters)
        +                         throws java.lang.IllegalAccessException,
        +                                java.lang.reflect.InvocationTargetException
        +
        Description copied from interface: ProtocolManager
        +
        Simulate recieving a certain packet from a given player.
        +
        +
        Specified by:
        +
        recieveClientPacket in interface ProtocolManager
        +
        Parameters:
        sender - - the sender.
        packet - - the packet that was sent.
        filters - - whether or not to invoke any packet filters.
        +
        Throws:
        +
        java.lang.IllegalAccessException - If the underlying method caused an error.
        +
        java.lang.reflect.InvocationTargetException - If the reflection machinery failed.
        +
      • +
      + + + +
        +
      • +

        createPacket

        +
        public PacketContainer createPacket(int id)
        +
        Description copied from interface: ProtocolManager
        +
        Constructs a new encapsulated Minecraft packet with the given ID.
        +
        +
        Specified by:
        +
        createPacket in interface ProtocolManager
        +
        Parameters:
        id - - packet ID.
        +
        Returns:
        New encapsulated Minecraft packet.
        +
      • +
      + + + +
        +
      • +

        createPacket

        +
        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 + forceDefaults option is true, the List or Set will be automatically created.

        +
        +
        Specified by:
        +
        createPacket in interface ProtocolManager
        +
        Parameters:
        id - - packet ID.
        forceDefaults - - TRUE to use sensible defaults in most fields, FALSE otherwise.
        +
        Returns:
        New encapsulated Minecraft packet.
        +
      • +
      + + + +
        +
      • +

        createPacketConstructor

        +
        public PacketConstructor createPacketConstructor(int id,
        +                                        java.lang.Object... arguments)
        +
        Description copied from interface: ProtocolManager
        +
        Construct a packet using the special builtin Minecraft constructors.
        +
        +
        Specified by:
        +
        createPacketConstructor in interface ProtocolManager
        +
        Parameters:
        id - - the packet ID.
        arguments - - arguments that will be passed to the constructor.
        +
        Returns:
        The packet constructor.
        +
      • +
      + + + +
        +
      • +

        getSendingFilters

        +
        public java.util.Set<java.lang.Integer> getSendingFilters()
        +
        Description copied from interface: ProtocolManager
        +
        Retrieves a immutable set containing the ID of the sent server packets that will be observed by listeners.
        +
        +
        Specified by:
        +
        getSendingFilters in interface ProtocolManager
        +
        Returns:
        Every filtered server packet.
        +
      • +
      + + + +
        +
      • +

        getReceivingFilters

        +
        public java.util.Set<java.lang.Integer> getReceivingFilters()
        +
        Description copied from interface: ProtocolManager
        +
        Retrieves a immutable set containing the ID of the recieved client packets that will be observed by listeners.
        +
        +
        Specified by:
        +
        getReceivingFilters in interface ProtocolManager
        +
        Returns:
        Every filtered client packet.
        +
      • +
      + + + +
        +
      • +

        updateEntity

        +
        public void updateEntity(org.bukkit.entity.Entity entity,
        +                java.util.List<org.bukkit.entity.Player> observers)
        +                  throws FieldAccessException
        +
        Description copied from interface: ProtocolManager
        +
        Completely refresh all clients about an entity.
        +
        +
        Specified by:
        +
        updateEntity in interface ProtocolManager
        +
        Parameters:
        entity - - entity to refresh.
        observers - - the clients to update.
        +
        Throws:
        +
        FieldAccessException
        +
      • +
      + + + +
        +
      • +

        initializePlayers

        +
        public void initializePlayers(org.bukkit.entity.Player[] players)
        +
        Initialize the packet injection for every player.
        +
        Parameters:
        players - - list of players to inject.
        +
      • +
      + + + +
        +
      • +

        getPlayerHookInstance

        +
        protected com.comphenix.protocol.injector.PlayerInjector getPlayerHookInstance(org.bukkit.entity.Player player)
        +                                                                        throws java.lang.IllegalAccessException
        +
        Used to construct a player hook.
        +
        Parameters:
        player - - the player to hook.
        +
        Returns:
        A new player hoook
        +
        Throws:
        +
        java.lang.IllegalAccessException - Unable to do our reflection magic.
        +
      • +
      + + + +
        +
      • +

        injectPlayer

        +
        protected void injectPlayer(org.bukkit.entity.Player player)
        +
        Initialize a player hook, allowing us to read server packets.
        +
        Parameters:
        player - - player to hook.
        +
      • +
      + + + +
        +
      • +

        registerEvents

        +
        public void registerEvents(org.bukkit.plugin.PluginManager manager,
        +                  org.bukkit.plugin.Plugin plugin)
        +
        Register this protocol manager on Bukkit.
        +
        Parameters:
        manager - - Bukkit plugin manager that provides player join/leave events.
        plugin - - the parent plugin.
        +
      • +
      + + + +
        +
      • +

        getClassLoader

        +
        public java.lang.ClassLoader getClassLoader()
        +
        Retrieves the current plugin class loader.
        +
        Returns:
        Class loader.
        +
      • +
      + + + +
        +
      • +

        isClosed

        +
        public boolean isClosed()
        +
        Description copied from interface: ProtocolManager
        +
        Determines whether or not this protocol mananger has been disabled.
        +
        +
        Specified by:
        +
        isClosed in interface ProtocolManager
        +
        Returns:
        TRUE if it has, FALSE otherwise.
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +
      • +
      + + + +
        +
      • +

        finalize

        +
        protected void finalize()
        +                 throws java.lang.Throwable
        +
        +
        Overrides:
        +
        finalize in class java.lang.Object
        +
        Throws:
        +
        java.lang.Throwable
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/SortedCopyOnWriteArrayTest.html b/Javadoc/com/comphenix/protocol/injector/SortedCopyOnWriteArrayTest.html new file mode 100644 index 00000000..4894dd5c --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/SortedCopyOnWriteArrayTest.html @@ -0,0 +1,269 @@ + + + + + +SortedCopyOnWriteArrayTest + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.injector
+

Class SortedCopyOnWriteArrayTest

+
+
+ +
+
    +
  • +
    +
    +
    public class SortedCopyOnWriteArrayTest
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidtestInsertion() 
      voidtestOrder() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SortedCopyOnWriteArrayTest

        +
        public SortedCopyOnWriteArrayTest()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        testInsertion

        +
        public void testInsertion()
        +
      • +
      + + + +
        +
      • +

        testOrder

        +
        public void testOrder()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/StructureCache.html b/Javadoc/com/comphenix/protocol/injector/StructureCache.html new file mode 100644 index 00000000..03fe62af --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/StructureCache.html @@ -0,0 +1,282 @@ + + + + + +StructureCache + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.injector
+

Class StructureCache

+
+
+ +
+
    +
  • +
    +
    +
    public class StructureCache
    +extends java.lang.Object
    +
    Caches structure modifiers.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      StructureCache() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static StructureModifier<java.lang.Object>getStructure(int id) +
      Retrieve a cached structure modifier for the given packet id.
      +
      static net.minecraft.server.PacketnewPacket(int id) +
      Creates an empty Minecraft packet of the given ID.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StructureCache

        +
        public StructureCache()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        newPacket

        +
        public static net.minecraft.server.Packet newPacket(int id)
        +
        Creates an empty Minecraft packet of the given ID.
        +
        Parameters:
        id - - packet ID.
        +
        Returns:
        Created packet.
        +
      • +
      + + + +
        +
      • +

        getStructure

        +
        public static StructureModifier<java.lang.Object> getStructure(int id)
        +
        Retrieve a cached structure modifier for the given packet id.
        +
        Parameters:
        id - - packet ID.
        +
        Returns:
        A structure modifier.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/class-use/ConcurrentListenerMultimap.html b/Javadoc/com/comphenix/protocol/injector/class-use/ConcurrentListenerMultimap.html new file mode 100644 index 00000000..a516d62f --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/class-use/ConcurrentListenerMultimap.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.injector.ConcurrentListenerMultimap + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.injector.ConcurrentListenerMultimap

+
+
No usage of com.comphenix.protocol.injector.ConcurrentListenerMultimap
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/class-use/NetworkFieldInjector.FakePacket.html b/Javadoc/com/comphenix/protocol/injector/class-use/NetworkFieldInjector.FakePacket.html new file mode 100644 index 00000000..e70e581b --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/class-use/NetworkFieldInjector.FakePacket.html @@ -0,0 +1,115 @@ + + + + + +Uses of Interface com.comphenix.protocol.injector.NetworkFieldInjector.FakePacket + + + + + + + +
+ + + + + +
+ + +
+

Uses of Interface
com.comphenix.protocol.injector.NetworkFieldInjector.FakePacket

+
+
No usage of com.comphenix.protocol.injector.NetworkFieldInjector.FakePacket
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/class-use/NetworkFieldInjector.html b/Javadoc/com/comphenix/protocol/injector/class-use/NetworkFieldInjector.html new file mode 100644 index 00000000..69b7c1a0 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/class-use/NetworkFieldInjector.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.injector.NetworkFieldInjector + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.injector.NetworkFieldInjector

+
+
No usage of com.comphenix.protocol.injector.NetworkFieldInjector
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/class-use/NetworkObjectInjector.html b/Javadoc/com/comphenix/protocol/injector/class-use/NetworkObjectInjector.html new file mode 100644 index 00000000..40ea51e7 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/class-use/NetworkObjectInjector.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.injector.NetworkObjectInjector + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.injector.NetworkObjectInjector

+
+
No usage of com.comphenix.protocol.injector.NetworkObjectInjector
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/class-use/PacketConstructor.BukkitUnwrapper.html b/Javadoc/com/comphenix/protocol/injector/class-use/PacketConstructor.BukkitUnwrapper.html new file mode 100644 index 00000000..3937f137 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/class-use/PacketConstructor.BukkitUnwrapper.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.injector.PacketConstructor.BukkitUnwrapper + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.injector.PacketConstructor.BukkitUnwrapper

+
+
No usage of com.comphenix.protocol.injector.PacketConstructor.BukkitUnwrapper
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/class-use/PacketConstructor.Unwrapper.html b/Javadoc/com/comphenix/protocol/injector/class-use/PacketConstructor.Unwrapper.html new file mode 100644 index 00000000..b5ee73ed --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/class-use/PacketConstructor.Unwrapper.html @@ -0,0 +1,183 @@ + + + + + +Uses of Interface com.comphenix.protocol.injector.PacketConstructor.Unwrapper + + + + + + + +
+ + + + + +
+ + +
+

Uses of Interface
com.comphenix.protocol.injector.PacketConstructor.Unwrapper

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/class-use/PacketConstructor.html b/Javadoc/com/comphenix/protocol/injector/class-use/PacketConstructor.html new file mode 100644 index 00000000..8a42e4eb --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/class-use/PacketConstructor.html @@ -0,0 +1,209 @@ + + + + + +Uses of Class com.comphenix.protocol.injector.PacketConstructor + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.injector.PacketConstructor

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/class-use/PacketFilterManager.PlayerInjectHooks.html b/Javadoc/com/comphenix/protocol/injector/class-use/PacketFilterManager.PlayerInjectHooks.html new file mode 100644 index 00000000..6fede28b --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/class-use/PacketFilterManager.PlayerInjectHooks.html @@ -0,0 +1,185 @@ + + + + + +Uses of Class com.comphenix.protocol.injector.PacketFilterManager.PlayerInjectHooks + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.injector.PacketFilterManager.PlayerInjectHooks

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/class-use/PacketFilterManager.html b/Javadoc/com/comphenix/protocol/injector/class-use/PacketFilterManager.html new file mode 100644 index 00000000..a18817e1 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/class-use/PacketFilterManager.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.injector.PacketFilterManager + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.injector.PacketFilterManager

+
+
No usage of com.comphenix.protocol.injector.PacketFilterManager
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/class-use/SortedCopyOnWriteArrayTest.html b/Javadoc/com/comphenix/protocol/injector/class-use/SortedCopyOnWriteArrayTest.html new file mode 100644 index 00000000..5069c3d8 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/class-use/SortedCopyOnWriteArrayTest.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.injector.SortedCopyOnWriteArrayTest + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.injector.SortedCopyOnWriteArrayTest

+
+
No usage of com.comphenix.protocol.injector.SortedCopyOnWriteArrayTest
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/class-use/StructureCache.html b/Javadoc/com/comphenix/protocol/injector/class-use/StructureCache.html new file mode 100644 index 00000000..a39c58c3 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/class-use/StructureCache.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.injector.StructureCache + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.injector.StructureCache

+
+
No usage of com.comphenix.protocol.injector.StructureCache
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/package-frame.html b/Javadoc/com/comphenix/protocol/injector/package-frame.html new file mode 100644 index 00000000..77e84b08 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/package-frame.html @@ -0,0 +1,32 @@ + + + + + +com.comphenix.protocol.injector + + + + +

com.comphenix.protocol.injector

+
+

Interfaces

+ +

Classes

+ +

Enums

+ +
+ + diff --git a/Javadoc/com/comphenix/protocol/injector/package-summary.html b/Javadoc/com/comphenix/protocol/injector/package-summary.html new file mode 100644 index 00000000..d670fc97 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/package-summary.html @@ -0,0 +1,191 @@ + + + + + +com.comphenix.protocol.injector + + + + + + + +
+ + + + + +
+ + +
+

Package com.comphenix.protocol.injector

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/package-tree.html b/Javadoc/com/comphenix/protocol/injector/package-tree.html new file mode 100644 index 00000000..ba1cc7e2 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/package-tree.html @@ -0,0 +1,149 @@ + + + + + +com.comphenix.protocol.injector Class Hierarchy + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package com.comphenix.protocol.injector

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/injector/package-use.html b/Javadoc/com/comphenix/protocol/injector/package-use.html new file mode 100644 index 00000000..9dd5360f --- /dev/null +++ b/Javadoc/com/comphenix/protocol/injector/package-use.html @@ -0,0 +1,179 @@ + + + + + +Uses of Package com.comphenix.protocol.injector + + + + + + + +
+ + + + + +
+ + +
+

Uses of Package
com.comphenix.protocol.injector

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/metrics/Statistics.html b/Javadoc/com/comphenix/protocol/metrics/Statistics.html new file mode 100644 index 00000000..e1f3debc --- /dev/null +++ b/Javadoc/com/comphenix/protocol/metrics/Statistics.html @@ -0,0 +1,231 @@ + + + + + +Statistics + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.metrics
+

Class Statistics

+
+
+ +
+
    +
  • +
    +
    +
    public class Statistics
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Statistics(org.bukkit.plugin.Plugin plugin) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Statistics

        +
        public Statistics(org.bukkit.plugin.Plugin plugin)
        +           throws java.io.IOException
        +
        Throws:
        +
        java.io.IOException
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/metrics/class-use/Statistics.html b/Javadoc/com/comphenix/protocol/metrics/class-use/Statistics.html new file mode 100644 index 00000000..6d7e354d --- /dev/null +++ b/Javadoc/com/comphenix/protocol/metrics/class-use/Statistics.html @@ -0,0 +1,157 @@ + + + + + +Uses of Class com.comphenix.protocol.metrics.Statistics + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.metrics.Statistics

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/metrics/package-frame.html b/Javadoc/com/comphenix/protocol/metrics/package-frame.html new file mode 100644 index 00000000..389e65c9 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/metrics/package-frame.html @@ -0,0 +1,19 @@ + + + + + +com.comphenix.protocol.metrics + + + + +

com.comphenix.protocol.metrics

+
+

Classes

+ +
+ + diff --git a/Javadoc/com/comphenix/protocol/metrics/package-summary.html b/Javadoc/com/comphenix/protocol/metrics/package-summary.html new file mode 100644 index 00000000..a6c2297e --- /dev/null +++ b/Javadoc/com/comphenix/protocol/metrics/package-summary.html @@ -0,0 +1,133 @@ + + + + + +com.comphenix.protocol.metrics + + + + + + + +
+ + + + + +
+ + +
+

Package com.comphenix.protocol.metrics

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/metrics/package-tree.html b/Javadoc/com/comphenix/protocol/metrics/package-tree.html new file mode 100644 index 00000000..8eef913a --- /dev/null +++ b/Javadoc/com/comphenix/protocol/metrics/package-tree.html @@ -0,0 +1,128 @@ + + + + + +com.comphenix.protocol.metrics Class Hierarchy + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package com.comphenix.protocol.metrics

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/metrics/package-use.html b/Javadoc/com/comphenix/protocol/metrics/package-use.html new file mode 100644 index 00000000..ffa6ec76 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/metrics/package-use.html @@ -0,0 +1,148 @@ + + + + + +Uses of Package com.comphenix.protocol.metrics + + + + + + + +
+ + + + + +
+ + +
+

Uses of Package
com.comphenix.protocol.metrics

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/package-frame.html b/Javadoc/com/comphenix/protocol/package-frame.html new file mode 100644 index 00000000..e1c826bf --- /dev/null +++ b/Javadoc/com/comphenix/protocol/package-frame.html @@ -0,0 +1,27 @@ + + + + + +com.comphenix.protocol + + + + +

com.comphenix.protocol

+
+

Interfaces

+ +

Classes

+ +
+ + diff --git a/Javadoc/com/comphenix/protocol/package-summary.html b/Javadoc/com/comphenix/protocol/package-summary.html new file mode 100644 index 00000000..930fa1e7 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/package-summary.html @@ -0,0 +1,172 @@ + + + + + +com.comphenix.protocol + + + + + + + +
+ + + + + +
+ + +
+

Package com.comphenix.protocol

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/package-tree.html b/Javadoc/com/comphenix/protocol/package-tree.html new file mode 100644 index 00000000..716338d8 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/package-tree.html @@ -0,0 +1,148 @@ + + + + + +com.comphenix.protocol Class Hierarchy + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package com.comphenix.protocol

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/package-use.html b/Javadoc/com/comphenix/protocol/package-use.html new file mode 100644 index 00000000..155cc501 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/package-use.html @@ -0,0 +1,181 @@ + + + + + +Uses of Package com.comphenix.protocol + + + + + + + +
+ + + + + +
+ + +
+

Uses of Package
com.comphenix.protocol

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/EquivalentConverter.html b/Javadoc/com/comphenix/protocol/reflect/EquivalentConverter.html new file mode 100644 index 00000000..f157c675 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/EquivalentConverter.html @@ -0,0 +1,238 @@ + + + + + +EquivalentConverter + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect
+

Interface EquivalentConverter<TType>

+
+
+
+
    +
  • +
    Type Parameters:
    TType - The specific type.
    +
    +
    +
    public interface EquivalentConverter<TType>
    +
    Interface that converts generic objects into types and back.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSpecific

        +
        TType getSpecific(java.lang.Object generic)
        +
      • +
      + + + + + +
        +
      • +

        getGeneric

        +
        java.lang.Object getGeneric(TType specific)
        +
      • +
      + + + +
        +
      • +

        getSpecificType

        +
        java.lang.Class<TType> getSpecificType()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/FieldAccessException.html b/Javadoc/com/comphenix/protocol/reflect/FieldAccessException.html new file mode 100644 index 00000000..8488a6fd --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/FieldAccessException.html @@ -0,0 +1,321 @@ + + + + + +FieldAccessException + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect
+

Class FieldAccessException

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class FieldAccessException
    +extends java.lang.Exception
    +
    Invoked when a field is inaccessible due to security limitations, or when it simply doesn't exist.
    +
    Author:
    +
    Kristian
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static FieldAccessExceptionfromFormat(java.lang.String message, + java.lang.Object... params) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FieldAccessException

        +
        public FieldAccessException()
        +
      • +
      + + + +
        +
      • +

        FieldAccessException

        +
        public FieldAccessException(java.lang.String message,
        +                    java.lang.Throwable cause)
        +
      • +
      + + + +
        +
      • +

        FieldAccessException

        +
        public FieldAccessException(java.lang.String message)
        +
      • +
      + + + +
        +
      • +

        FieldAccessException

        +
        public FieldAccessException(java.lang.Throwable cause)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        fromFormat

        +
        public static FieldAccessException fromFormat(java.lang.String message,
        +                              java.lang.Object... params)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/FieldUtils.html b/Javadoc/com/comphenix/protocol/reflect/FieldUtils.html new file mode 100644 index 00000000..04a8756f --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/FieldUtils.html @@ -0,0 +1,733 @@ + + + + + +FieldUtils + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect
+

Class FieldUtils

+
+
+ +
+
    +
  • +
    +
    +
    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 + facility should be used with care.

    +
    Since:
    +
    2.5
    +
    Version:
    +
    $Id: FieldUtils.java 1057009 2011-01-09 19:48:06Z niallp $
    +
    Author:
    +
    Apache Software Foundation, Matt Benson
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      FieldUtils() +
      FieldUtils instances should NOT be constructed in standard programming.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static java.lang.reflect.FieldgetField(java.lang.Class cls, + java.lang.String fieldName) +
      Gets an accessible Field by name respecting scope.
      +
      static java.lang.reflect.FieldgetField(java.lang.Class cls, + java.lang.String fieldName, + boolean forceAccess) +
      Gets an accessible Field by name breaking scope if + requested.
      +
      static java.lang.ObjectreadField(java.lang.reflect.Field field, + java.lang.Object target) +
      Read an accessible Field.
      +
      static java.lang.ObjectreadField(java.lang.reflect.Field field, + java.lang.Object target, + boolean forceAccess) +
      Read a Field.
      +
      static java.lang.ObjectreadField(java.lang.Object target, + java.lang.String fieldName) +
      Read the named public field.
      +
      static java.lang.ObjectreadField(java.lang.Object target, + java.lang.String fieldName, + boolean forceAccess) +
      Read the named field.
      +
      static java.lang.ObjectreadStaticField(java.lang.Class cls, + java.lang.String fieldName) +
      Read the named public static field.
      +
      static java.lang.ObjectreadStaticField(java.lang.Class cls, + java.lang.String fieldName, + boolean forceAccess) +
      Read the named static field.
      +
      static java.lang.ObjectreadStaticField(java.lang.reflect.Field field) +
      Read an accessible static Field.
      +
      static java.lang.ObjectreadStaticField(java.lang.reflect.Field field, + boolean forceAccess) +
      Read a static Field.
      +
      static voidwriteField(java.lang.reflect.Field field, + java.lang.Object target, + java.lang.Object value) +
      Write an accessible field.
      +
      static voidwriteField(java.lang.reflect.Field field, + java.lang.Object target, + java.lang.Object value, + boolean forceAccess) +
      Write a field.
      +
      static voidwriteField(java.lang.Object target, + java.lang.String fieldName, + java.lang.Object value) +
      Write a public field.
      +
      static voidwriteField(java.lang.Object target, + java.lang.String fieldName, + java.lang.Object value, + boolean forceAccess) +
      Write a field.
      +
      static voidwriteStaticField(java.lang.Class cls, + java.lang.String fieldName, + java.lang.Object value) +
      Write a named public static Field.
      +
      static voidwriteStaticField(java.lang.Class cls, + java.lang.String fieldName, + java.lang.Object value, + boolean forceAccess) +
      Write a named static Field.
      +
      static voidwriteStaticField(java.lang.reflect.Field field, + java.lang.Object value) +
      Write a public static Field.
      +
      static voidwriteStaticField(java.lang.reflect.Field field, + java.lang.Object value, + boolean forceAccess) +
      Write a static Field.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FieldUtils

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

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

        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getField

        +
        public static java.lang.reflect.Field getField(java.lang.Class cls,
        +                               java.lang.String fieldName)
        +
        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
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if the class or field name is null
        +
      • +
      + + + +
        +
      • +

        getField

        +
        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 + 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 + only match public fields.
        +
        Returns:
        the Field object
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if the class or field name is null
        +
      • +
      + + + +
        +
      • +

        readStaticField

        +
        public static java.lang.Object readStaticField(java.lang.reflect.Field field)
        +                                        throws java.lang.IllegalAccessException
        +
        Read an accessible static Field.
        +
        Parameters:
        field - to read
        +
        Returns:
        the field value
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if the field is null or not static
        +
        java.lang.IllegalAccessException - if the field is not accessible
        +
      • +
      + + + +
        +
      • +

        readStaticField

        +
        public static java.lang.Object readStaticField(java.lang.reflect.Field field,
        +                               boolean forceAccess)
        +                                        throws java.lang.IllegalAccessException
        +
        Read a static Field.
        +
        Parameters:
        field - to read
        forceAccess - whether to break scope restrictions using the + setAccessible method.
        +
        Returns:
        the field value
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if the field is null or not static
        +
        java.lang.IllegalAccessException - if the field is not made accessible
        +
      • +
      + + + +
        +
      • +

        readStaticField

        +
        public static java.lang.Object readStaticField(java.lang.Class cls,
        +                               java.lang.String fieldName)
        +                                        throws java.lang.IllegalAccessException
        +
        Read the named public static field. Superclasses will be considered.
        +
        Parameters:
        cls - the class to reflect, must not be null
        fieldName - the field name to obtain
        +
        Returns:
        the value of the field
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if the class or field name is null
        +
        java.lang.IllegalAccessException - if the field is not accessible
        +
      • +
      + + + +
        +
      • +

        readStaticField

        +
        public static java.lang.Object readStaticField(java.lang.Class cls,
        +                               java.lang.String fieldName,
        +                               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 + only match public fields.
        +
        Returns:
        the Field object
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if the class or field name is null
        +
        java.lang.IllegalAccessException - if the field is not made accessible
        +
      • +
      + + + +
        +
      • +

        readField

        +
        public static java.lang.Object readField(java.lang.reflect.Field field,
        +                         java.lang.Object target)
        +                                  throws java.lang.IllegalAccessException
        +
        Read an accessible Field.
        +
        Parameters:
        field - the field to use
        target - the object to call on, may be null for static fields
        +
        Returns:
        the field value
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if the field is null
        +
        java.lang.IllegalAccessException - if the field is not accessible
        +
      • +
      + + + +
        +
      • +

        readField

        +
        public static java.lang.Object readField(java.lang.reflect.Field field,
        +                         java.lang.Object target,
        +                         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 + setAccessible method.
        +
        Returns:
        the field value
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if the field is null
        +
        java.lang.IllegalAccessException - if the field is not made accessible
        +
      • +
      + + + +
        +
      • +

        readField

        +
        public static java.lang.Object readField(java.lang.Object target,
        +                         java.lang.String fieldName)
        +                                  throws java.lang.IllegalAccessException
        +
        Read the named public field. Superclasses will be considered.
        +
        Parameters:
        target - the object to reflect, must not be null
        fieldName - the field name to obtain
        +
        Returns:
        the value of the field
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if the class or field name is null
        +
        java.lang.IllegalAccessException - if the named field is not public
        +
      • +
      + + + +
        +
      • +

        readField

        +
        public static java.lang.Object readField(java.lang.Object target,
        +                         java.lang.String fieldName,
        +                         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 + only match public fields.
        +
        Returns:
        the field value
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if the class or field name is null
        +
        java.lang.IllegalAccessException - if the named field is not made accessible
        +
      • +
      + + + +
        +
      • +

        writeStaticField

        +
        public static void writeStaticField(java.lang.reflect.Field field,
        +                    java.lang.Object value)
        +                             throws java.lang.IllegalAccessException
        +
        Write a public static Field.
        +
        Parameters:
        field - to write
        value - to set
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if the field is null or not static
        +
        java.lang.IllegalAccessException - if the field is not public or is final
        +
      • +
      + + + +
        +
      • +

        writeStaticField

        +
        public static void writeStaticField(java.lang.reflect.Field field,
        +                    java.lang.Object value,
        +                    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 + 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 + final
        +
      • +
      + + + +
        +
      • +

        writeStaticField

        +
        public static void writeStaticField(java.lang.Class cls,
        +                    java.lang.String fieldName,
        +                    java.lang.Object value)
        +                             throws java.lang.IllegalAccessException
        +
        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 + static
        +
        java.lang.IllegalAccessException - if the field is not public or is final
        +
      • +
      + + + +
        +
      • +

        writeStaticField

        +
        public static void writeStaticField(java.lang.Class cls,
        +                    java.lang.String fieldName,
        +                    java.lang.Object value,
        +                    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 + only match public fields.
        +
        Throws:
        +
        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 + final
        +
      • +
      + + + +
        +
      • +

        writeField

        +
        public static void writeField(java.lang.reflect.Field field,
        +              java.lang.Object target,
        +              java.lang.Object value)
        +                       throws java.lang.IllegalAccessException
        +
        Write an accessible field.
        +
        Parameters:
        field - to write
        target - the object to call on, may be null for static fields
        value - to set
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if the field is null
        +
        java.lang.IllegalAccessException - if the field is not accessible or is final
        +
      • +
      + + + +
        +
      • +

        writeField

        +
        public static void writeField(java.lang.reflect.Field field,
        +              java.lang.Object target,
        +              java.lang.Object value,
        +              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 + 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 + final
        +
      • +
      + + + +
        +
      • +

        writeField

        +
        public static void writeField(java.lang.Object target,
        +              java.lang.String fieldName,
        +              java.lang.Object value)
        +                       throws java.lang.IllegalAccessException
        +
        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 + fieldName is null
        +
        java.lang.IllegalAccessException - if the field is not accessible
        +
      • +
      + + + +
        +
      • +

        writeField

        +
        public static void writeField(java.lang.Object target,
        +              java.lang.String fieldName,
        +              java.lang.Object value,
        +              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 + only match public fields.
        +
        Throws:
        +
        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 new file mode 100644 index 00000000..360dfde5 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/FuzzyReflection.html @@ -0,0 +1,575 @@ + + + + + +FuzzyReflection + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect
+

Class FuzzyReflection

+
+
+ +
+
    +
  • +
    +
    +
    public class FuzzyReflection
    +extends java.lang.Object
    +
    Retrieves fields and methods by signature, not just name.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.lang.StringMINECRAFT_OBJECT +
      Matches a Minecraft object.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      FuzzyReflection(java.lang.Class<?> source, + boolean forceAccess) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static FuzzyReflectionfromClass(java.lang.Class<?> source) +
      Retrieves a fuzzy reflection instance from a given class.
      +
      static FuzzyReflectionfromClass(java.lang.Class<?> source, + boolean forceAccess) +
      Retrieves a fuzzy reflection instance from a given class.
      +
      static FuzzyReflectionfromObject(java.lang.Object reference) +
      Retrieves a fuzzy reflection instance from an object.
      +
      static FuzzyReflectionfromObject(java.lang.Object reference, + boolean forceAccess) +
      Retrieves a fuzzy reflection instance from an object.
      +
      java.lang.reflect.FieldgetFieldByName(java.lang.String nameRegex) +
      Retrieves a field by name.
      +
      java.lang.reflect.FieldgetFieldByType(java.lang.String typeRegex) +
      Retrieves a field by type.
      +
      java.lang.reflect.FieldgetFieldByType(java.lang.String typeRegex, + java.util.Set<java.lang.Class> ignored) +
      Retrieves a field by type.
      +
      java.util.Set<java.lang.reflect.Field>getFields() +
      Retrieves all private and public fields in declared order (after JDK 1.5).
      +
      java.lang.reflect.MethodgetMethodByName(java.lang.String nameRegex) +
      Retrieves a method by looking at its name.
      +
      java.lang.reflect.MethodgetMethodByParameters(java.lang.String name, + java.lang.Class<?>... args) +
      Retrieves a method by looking at the parameter types only.
      +
      java.lang.reflect.MethodgetMethodByParameters(java.lang.String name, + java.lang.Class<?> returnType, + java.lang.Class<?>[] args) +
      Retrieves a method by looking at the parameter types and return type only.
      +
      java.util.Set<java.lang.reflect.Method>getMethods() +
      Retrieves all private and public methods in declared order (after JDK 1.5).
      +
      java.lang.Class<?>getSource() +
      Retrieves the underlying class.
      +
      booleanisForceAccess() +
      Retrieves whether or not not to override any scope restrictions.
      +
      voidsetForceAccess(boolean forceAccess) +
      Sets whether or not not to override any scope restrictions.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        MINECRAFT_OBJECT

        +
        public static java.lang.String MINECRAFT_OBJECT
        +
        Matches a Minecraft object.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FuzzyReflection

        +
        public FuzzyReflection(java.lang.Class<?> source,
        +               boolean forceAccess)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        fromClass

        +
        public static FuzzyReflection fromClass(java.lang.Class<?> source)
        +
        Retrieves a fuzzy reflection instance from a given class.
        +
        Parameters:
        source - - the class we'll use.
        +
        Returns:
        A fuzzy reflection instance.
        +
      • +
      + + + +
        +
      • +

        fromClass

        +
        public static FuzzyReflection fromClass(java.lang.Class<?> source,
        +                        boolean forceAccess)
        +
        Retrieves a fuzzy reflection instance from a given class.
        +
        Parameters:
        source - - the class we'll use.
        forceAccess - - whether or not to override scope restrictions.
        +
        Returns:
        A fuzzy reflection instance.
        +
      • +
      + + + +
        +
      • +

        fromObject

        +
        public static FuzzyReflection fromObject(java.lang.Object reference)
        +
        Retrieves a fuzzy reflection instance from an object.
        +
        Parameters:
        reference - - the object we'll use.
        +
        Returns:
        A fuzzy reflection instance that uses the class of the given object.
        +
      • +
      + + + +
        +
      • +

        fromObject

        +
        public static FuzzyReflection fromObject(java.lang.Object reference,
        +                         boolean forceAccess)
        +
        Retrieves a fuzzy reflection instance from an object.
        +
        Parameters:
        reference - - the object we'll use.
        forceAccess - - whether or not to override scope restrictions.
        +
        Returns:
        A fuzzy reflection instance that uses the class of the given object.
        +
      • +
      + + + +
        +
      • +

        getSource

        +
        public java.lang.Class<?> getSource()
        +
        Retrieves the underlying class.
        +
      • +
      + + + +
        +
      • +

        getMethodByName

        +
        public java.lang.reflect.Method getMethodByName(java.lang.String nameRegex)
        +
        Retrieves a method by looking at its name.
        +
        Parameters:
        nameRegex - - regular expression that will match method names.
        +
        Returns:
        The first method that satisfies the regular expression.
        +
      • +
      + + + +
        +
      • +

        getMethodByParameters

        +
        public java.lang.reflect.Method getMethodByParameters(java.lang.String name,
        +                                             java.lang.Class<?>... args)
        +
        Retrieves a method by looking at the parameter types only.
        +
        Parameters:
        name - - potential name of the method. Only used by the error mechanism.
        args - - parameter types of the method to find.
        +
        Returns:
        The first method that satisfies the parameter types.
        +
      • +
      + + + +
        +
      • +

        getMethodByParameters

        +
        public java.lang.reflect.Method getMethodByParameters(java.lang.String name,
        +                                             java.lang.Class<?> returnType,
        +                                             java.lang.Class<?>[] args)
        +
        Retrieves a method by looking at the parameter types and return type only.
        +
        Parameters:
        name - - potential name of the method. Only used by the error mechanism.
        returnType - - return type of the method to find.
        args - - parameter types of the method to find.
        +
        Returns:
        The first method that satisfies the parameter types.
        +
      • +
      + + + +
        +
      • +

        getFieldByName

        +
        public java.lang.reflect.Field getFieldByName(java.lang.String nameRegex)
        +
        Retrieves a field by name.
        +
        Parameters:
        nameRegex - - regular expression that will match a field name.
        +
        Returns:
        The first field to match the given expression.
        +
      • +
      + + + +
        +
      • +

        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
        • +
        +
        Parameters:
        typeRegex - - regular expression that will match the field type.
        +
        Returns:
        The first field with a type that matches the given regular expression.
        +
      • +
      + + + +
        +
      • +

        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
        • +
        +
        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.
        +
      • +
      + + + +
        +
      • +

        getFields

        +
        public java.util.Set<java.lang.reflect.Field> getFields()
        +
        Retrieves all private and public fields in declared order (after JDK 1.5).
        +
        Returns:
        Every field.
        +
      • +
      + + + +
        +
      • +

        getMethods

        +
        public java.util.Set<java.lang.reflect.Method> getMethods()
        +
        Retrieves all private and public methods in declared order (after JDK 1.5).
        +
        Returns:
        Every method.
        +
      • +
      + + + +
        +
      • +

        isForceAccess

        +
        public boolean isForceAccess()
        +
        Retrieves whether or not not to override any scope restrictions.
        +
        Returns:
        TRUE if we override scope, FALSE otherwise.
        +
      • +
      + + + +
        +
      • +

        setForceAccess

        +
        public void setForceAccess(boolean forceAccess)
        +
        Sets whether or not not to override any scope restrictions.
        +
        Parameters:
        forceAccess - - TRUE if we override scope, FALSE otherwise.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/IntEnum.html b/Javadoc/com/comphenix/protocol/reflect/IntEnum.html new file mode 100644 index 00000000..0da3a740 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/IntEnum.html @@ -0,0 +1,378 @@ + + + + + +IntEnum + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect
+

Class IntEnum

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    Packets.Client, Packets.Server
    +
    +
    +
    +
    public class IntEnum
    +extends java.lang.Object
    +
    Represents a traditional int field enum.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected com.google.common.collect.BiMap<java.lang.Integer,java.lang.String>members 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      IntEnum() +
      Registers every declared integer field.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.lang.StringgetDeclaredName(java.lang.Integer id) +
      Retrieve the name of the member with the given id.
      +
      booleanhasMember(int id) +
      Determines whether or not the given member exists.
      +
      protected voidregisterAll() +
      Registers every public int field as a member.
      +
      protected voidregisterMember(int id, + java.lang.String name) +
      Registers a member.
      +
      java.lang.IntegervalueOf(java.lang.String name) +
      Retrieve the ID of the member with the given name.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        members

        +
        protected com.google.common.collect.BiMap<java.lang.Integer,java.lang.String> members
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IntEnum

        +
        public IntEnum()
        +
        Registers every declared integer field.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        registerAll

        +
        protected void registerAll()
        +
        Registers every public int field as a member.
        +
      • +
      + + + +
        +
      • +

        registerMember

        +
        protected void registerMember(int id,
        +                  java.lang.String name)
        +
        Registers a member.
        +
        Parameters:
        id - - id of member.
        name - - name of member.
        +
      • +
      + + + +
        +
      • +

        hasMember

        +
        public boolean hasMember(int id)
        +
        Determines whether or not the given member exists.
        +
        Parameters:
        id - - the ID of the member to find.
        +
        Returns:
        TRUE if a member with the given ID exists, FALSE otherwise.
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public java.lang.Integer valueOf(java.lang.String name)
        +
        Retrieve the ID of the member with the given name.
        +
        Parameters:
        name - - name of member to retrieve.
        +
        Returns:
        ID of the member, or NULL if not found.
        +
      • +
      + + + +
        +
      • +

        getDeclaredName

        +
        public java.lang.String getDeclaredName(java.lang.Integer id)
        +
        Retrieve the name of the member with the given id.
        +
        Parameters:
        id - - id of the member to retrieve.
        +
        Returns:
        Declared name of the member, or NULL if not found.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/MethodUtils.html b/Javadoc/com/comphenix/protocol/reflect/MethodUtils.html new file mode 100644 index 00000000..fadc526d --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/MethodUtils.html @@ -0,0 +1,980 @@ + + + + + +MethodUtils + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect
+

Class MethodUtils

+
+
+ +
+
    +
  • +
    +
    +
    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. + 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
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MethodUtils() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static intclearCache() +
      Clear the method cache.
      +
      static java.lang.reflect.MethodgetAccessibleMethod(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.
      +
      static java.lang.reflect.MethodgetAccessibleMethod(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.
      +
      static java.lang.reflect.MethodgetAccessibleMethod(java.lang.reflect.Method method) +
      Return an accessible method (that is, one that can be invoked via + reflection) that implements the specified Method.
      +
      static java.lang.reflect.MethodgetMatchingAccessibleMethod(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.
      +
      static java.lang.ClassgetPrimitiveType(java.lang.Class wrapperType) +
      Gets the class for the primitive type corresponding to the primitive wrapper class given.
      +
      static java.lang.ClassgetPrimitiveWrapper(java.lang.Class primitiveType) +
      Gets the wrapper object class for the given primitive type class.
      +
      static java.lang.ObjectinvokeExactMethod(java.lang.Object object, + java.lang.String methodName, + java.lang.Object arg) +
      Invoke a method whose parameter type matches exactly the object + type.
      +
      static java.lang.ObjectinvokeExactMethod(java.lang.Object object, + java.lang.String methodName, + java.lang.Object[] args) +
      Invoke a method whose parameter types match exactly the object + types.
      +
      static java.lang.ObjectinvokeExactMethod(java.lang.Object object, + java.lang.String methodName, + java.lang.Object[] args, + java.lang.Class[] parameterTypes) +
      Invoke a method whose parameter types match exactly the parameter + types given.
      +
      static java.lang.ObjectinvokeExactStaticMethod(java.lang.Class objectClass, + java.lang.String methodName, + java.lang.Object arg) +
      Invoke a static method whose parameter type matches exactly the object + type.
      +
      static java.lang.ObjectinvokeExactStaticMethod(java.lang.Class objectClass, + java.lang.String methodName, + java.lang.Object[] args) +
      Invoke a static method whose parameter types match exactly the object + types.
      +
      static java.lang.ObjectinvokeExactStaticMethod(java.lang.Class objectClass, + java.lang.String methodName, + java.lang.Object[] args, + java.lang.Class[] parameterTypes) +
      Invoke a static method whose parameter types match exactly the parameter + types given.
      +
      static java.lang.ObjectinvokeMethod(java.lang.Object object, + java.lang.String methodName, + java.lang.Object arg) +
      Invoke a named method whose parameter type matches the object type.
      +
      static java.lang.ObjectinvokeMethod(java.lang.Object object, + java.lang.String methodName, + java.lang.Object[] args) +
      Invoke a named method whose parameter type matches the object type.
      +
      static java.lang.ObjectinvokeMethod(java.lang.Object object, + java.lang.String methodName, + java.lang.Object[] args, + java.lang.Class[] parameterTypes) +
      Invoke a named method whose parameter type matches the object type.
      +
      static java.lang.ObjectinvokeStaticMethod(java.lang.Class objectClass, + java.lang.String methodName, + java.lang.Object arg) +
      Invoke a named static method whose parameter type matches the object type.
      +
      static java.lang.ObjectinvokeStaticMethod(java.lang.Class objectClass, + java.lang.String methodName, + java.lang.Object[] args) +
      Invoke a named static method whose parameter type matches the object type.
      +
      static java.lang.ObjectinvokeStaticMethod(java.lang.Class objectClass, + java.lang.String methodName, + java.lang.Object[] args, + java.lang.Class[] parameterTypes) +
      Invoke a named static method whose parameter type matches the object type.
      +
      static booleanisAssignmentCompatible(java.lang.Class parameterType, + java.lang.Class parameterization) +
      Determine whether a type can be used as a parameter in a method invocation.
      +
      static voidsetCacheMethods(boolean cacheMethods) +
      Set whether methods should be cached for greater performance or not, + default is true.
      +
      static java.lang.ClasstoNonPrimitiveClass(java.lang.Class clazz) +
      Find a non primitive representation for given primitive class.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MethodUtils

        +
        public MethodUtils()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setCacheMethods

        +
        public static void setCacheMethods(boolean cacheMethods)
        +
        Set whether methods should be cached for greater performance or not, + default is true.
        +
        Parameters:
        cacheMethods - true if methods should be + cached for greater performance, otherwise false
        Since:
        +
        1.8.0
        +
      • +
      + + + +
        +
      • +

        clearCache

        +
        public static int clearCache()
        +
        Clear the method cache.
        +
        Returns:
        the number of cached methods cleared
        Since:
        +
        1.8.0
        +
      • +
      + + + +
        +
      • +

        invokeMethod

        +
        public static java.lang.Object invokeMethod(java.lang.Object object,
        +                            java.lang.String methodName,
        +                            java.lang.Object arg)
        +                                     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). +

        +
        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 + method invoked
        +
        java.lang.IllegalAccessException - if the requested method is not accessible + via reflection
        +
      • +
      + + + +
        +
      • +

        invokeMethod

        +
        public static java.lang.Object invokeMethod(java.lang.Object object,
        +                            java.lang.String methodName,
        +                            java.lang.Object[] args)
        +                                     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). +

        +
        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 + method invoked
        +
        java.lang.IllegalAccessException - if the requested method is not accessible + via reflection
        +
      • +
      + + + +
        +
      • +

        invokeMethod

        +
        public static java.lang.Object invokeMethod(java.lang.Object object,
        +                            java.lang.String methodName,
        +                            java.lang.Object[] args,
        +                            java.lang.Class[] parameterTypes)
        +                                     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 + 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 + method invoked
        +
        java.lang.IllegalAccessException - if the requested method is not accessible + via reflection
        +
      • +
      + + + +
        +
      • +

        invokeExactMethod

        +
        public static java.lang.Object invokeExactMethod(java.lang.Object object,
        +                                 java.lang.String methodName,
        +                                 java.lang.Object arg)
        +                                          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). +

        +
        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 + method invoked
        +
        java.lang.IllegalAccessException - if the requested method is not accessible + via reflection
        +
      • +
      + + + +
        +
      • +

        invokeExactMethod

        +
        public static java.lang.Object invokeExactMethod(java.lang.Object object,
        +                                 java.lang.String methodName,
        +                                 java.lang.Object[] args)
        +                                          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 + 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 + method invoked
        +
        java.lang.IllegalAccessException - if the requested method is not accessible + via reflection
        +
      • +
      + + + +
        +
      • +

        invokeExactMethod

        +
        public static java.lang.Object invokeExactMethod(java.lang.Object object,
        +                                 java.lang.String methodName,
        +                                 java.lang.Object[] args,
        +                                 java.lang.Class[] parameterTypes)
        +                                          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 + 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 + method invoked
        +
        java.lang.IllegalAccessException - if the requested method is not accessible + via reflection
        +
      • +
      + + + +
        +
      • +

        invokeExactStaticMethod

        +
        public static java.lang.Object invokeExactStaticMethod(java.lang.Class objectClass,
        +                                       java.lang.String methodName,
        +                                       java.lang.Object[] args,
        +                                       java.lang.Class[] parameterTypes)
        +                                                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 + 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 + method invoked
        +
        java.lang.IllegalAccessException - if the requested method is not accessible + via reflection
        Since:
        +
        1.8.0
        +
      • +
      + + + +
        +
      • +

        invokeStaticMethod

        +
        public static java.lang.Object invokeStaticMethod(java.lang.Class objectClass,
        +                                  java.lang.String methodName,
        +                                  java.lang.Object arg)
        +                                           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). +

        +
        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 + method invoked
        +
        java.lang.IllegalAccessException - if the requested method is not accessible + via reflection
        Since:
        +
        1.8.0
        +
      • +
      + + + +
        +
      • +

        invokeStaticMethod

        +
        public static java.lang.Object invokeStaticMethod(java.lang.Class objectClass,
        +                                  java.lang.String methodName,
        +                                  java.lang.Object[] args)
        +                                           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). +

        +
        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 + method invoked
        +
        java.lang.IllegalAccessException - if the requested method is not accessible + via reflection
        Since:
        +
        1.8.0
        +
      • +
      + + + +
        +
      • +

        invokeStaticMethod

        +
        public static java.lang.Object invokeStaticMethod(java.lang.Class objectClass,
        +                                  java.lang.String methodName,
        +                                  java.lang.Object[] args,
        +                                  java.lang.Class[] parameterTypes)
        +                                           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 + 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 + method invoked
        +
        java.lang.IllegalAccessException - if the requested method is not accessible + via reflection
        Since:
        +
        1.8.0
        +
      • +
      + + + +
        +
      • +

        invokeExactStaticMethod

        +
        public static java.lang.Object invokeExactStaticMethod(java.lang.Class objectClass,
        +                                       java.lang.String methodName,
        +                                       java.lang.Object arg)
        +                                                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). +

        +
        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 + method invoked
        +
        java.lang.IllegalAccessException - if the requested method is not accessible + via reflection
        Since:
        +
        1.8.0
        +
      • +
      + + + +
        +
      • +

        invokeExactStaticMethod

        +
        public static java.lang.Object invokeExactStaticMethod(java.lang.Class objectClass,
        +                                       java.lang.String methodName,
        +                                       java.lang.Object[] args)
        +                                                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 + 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 + method invoked
        +
        java.lang.IllegalAccessException - if the requested method is not accessible + via reflection
        Since:
        +
        1.8.0
        +
      • +
      + + + +
        +
      • +

        getAccessibleMethod

        +
        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 + 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
        +
      • +
      + + + +
        +
      • +

        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 + can be found, return null.

        +
        Parameters:
        method - The method that we wish to call
        +
        Returns:
        The accessible method
        +
      • +
      + + + +
        +
      • +

        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 + 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:
        +
        1.8.0
        +
      • +
      + + + +
        +
      • +

        getMatchingAccessibleMethod

        +
        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 + parameter.

        +
        Parameters:
        clazz - find method in this class
        methodName - find method with this name
        parameterTypes - find method with compatible parameters
        +
        Returns:
        The accessible method
        +
      • +
      + + + +
        +
      • +

        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. + 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.
        +
      • +
      + + + +
        +
      • +

        getPrimitiveWrapper

        +
        public static java.lang.Class getPrimitiveWrapper(java.lang.Class primitiveType)
        +
        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 + or null if no match is found
        +
      • +
      + + + +
        +
      • +

        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. + 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, + null if no match is found
        +
      • +
      + + + +
        +
      • +

        toNonPrimitiveClass

        +
        public static java.lang.Class toNonPrimitiveClass(java.lang.Class clazz)
        +
        Find a non primitive representation for given primitive class.
        +
        Parameters:
        clazz - the class to find a representation for, not null
        +
        Returns:
        the original class if it not a primitive. Otherwise the wrapper class. Not null
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/PrimitiveUtils.html b/Javadoc/com/comphenix/protocol/reflect/PrimitiveUtils.html new file mode 100644 index 00000000..b43120e6 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/PrimitiveUtils.html @@ -0,0 +1,311 @@ + + + + + +PrimitiveUtils + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect
+

Class PrimitiveUtils

+
+
+ +
+
    +
  • +
    +
    +
    public final class PrimitiveUtils
    +extends java.lang.Object
    +
    Contains static utility methods pertaining to primitive types and their + corresponding wrapper types.
    +
    Author:
    +
    Kevin Bourrillion
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static <T> TcheckNotNull(T obj) 
      static booleanisPrimitive(java.lang.reflect.Type type) +
      Returns true if this type is a primitive.
      +
      static booleanisWrapperType(java.lang.reflect.Type type) +
      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 + 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 + primitive type; otherwise returns type itself.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isPrimitive

        +
        public static boolean isPrimitive(java.lang.reflect.Type type)
        +
        Returns true if this type is a primitive.
        +
      • +
      + + + +
        +
      • +

        isWrapperType

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

        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
        + 
        +
      • +
      + + + +
        +
      • +

        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
        + 
        +
      • +
      + + + + + +
        +
      • +

        checkNotNull

        +
        public static <T> T checkNotNull(T obj)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/StructureModifier.html b/Javadoc/com/comphenix/protocol/reflect/StructureModifier.html new file mode 100644 index 00000000..0e232066 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/StructureModifier.html @@ -0,0 +1,547 @@ + + + + + +StructureModifier + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect
+

Class StructureModifier<TField>

+
+
+ +
+
    +
  • +
    +
    +
    public class StructureModifier<TField>
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      StructureModifier(java.lang.Class targetType, + java.lang.Class superclassExclude, + boolean requireDefault) +
      Creates a structure modifier.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.util.List<java.lang.reflect.Field>getFields() +
      Retrieves a list of the fields matching the constraints of this structure modifier.
      +
      java.lang.ClassgetFieldType() +
      Retrieves the common type of each field.
      +
      java.lang.ObjectgetTarget() +
      Retrieves the object we're currently modifying.
      +
      java.lang.ClassgetTargetType() +
      Retrieves the type of the object we're modifying.
      +
      java.util.List<TField>getValues() +
      Retrieve every value stored in the fields of the current type.
      +
      StructureModifier<TField>modify(int fieldIndex, + com.google.common.base.Function<TField,TField> select) +
      Correctly modifies the value of a field.
      +
      TFieldread(int fieldIndex) +
      Reads the value of a field given its index.
      +
      TFieldreadSafely(int fieldIndex) +
      Reads the value of a field if and ONLY IF it exists.
      +
      intsize() +
      Retrieve the number of readable types.
      +
      StructureModifier<TField>withTarget(java.lang.Object target) +
      Retrieves a structure modifier of the same type for a different object target.
      +
      <T> StructureModifier<T>withType(java.lang.Class fieldType) +
      Retrieves a structure modifier that only reads and writes fields of a given type.
      +
      <T> StructureModifier<T>withType(java.lang.Class fieldType, + EquivalentConverter<T> converter) +
      Retrieves a structure modifier that only reads and writes fields of a given type.
      +
      StructureModifier<TField>write(int fieldIndex, + TField value) +
      Writes the value of a field given its index.
      +
      StructureModifier<TField>writeDefaults() +
      Sets all non-primitive fields to a more fitting default value.
      +
      StructureModifier<TField>writeSafely(int fieldIndex, + TField value) +
      Writes the value of a given field IF and ONLY if it exists.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StructureModifier

        +
        public StructureModifier(java.lang.Class targetType,
        +                 java.lang.Class superclassExclude,
        +                 boolean requireDefault)
        +
        Creates a structure modifier.
        +
        Parameters:
        targetType - - the structure to modify.
        superclassExclude - - a superclass to exclude.
        requireDefault - - whether or not we will be using writeDefaults().
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        read

        +
        public TField read(int fieldIndex)
        +            throws FieldAccessException
        +
        Reads the value of a field given its index.
        +
        Parameters:
        fieldIndex - - index of the field.
        +
        Returns:
        Value of the field.
        +
        Throws:
        +
        FieldAccessException - The field doesn't exist, or it cannot be accessed under the current security contraints.
        +
      • +
      + + + +
        +
      • +

        readSafely

        +
        public TField readSafely(int fieldIndex)
        +                  throws FieldAccessException
        +
        Reads the value of a field if and ONLY IF it exists.
        +
        Parameters:
        fieldIndex - - index of the field.
        +
        Returns:
        Value of the field, or NULL if it doesn't exist.
        +
        Throws:
        +
        FieldAccessException - The field cannot be accessed under the current security contraints.
        +
      • +
      + + + + + +
        +
      • +

        write

        +
        public StructureModifier<TField> write(int fieldIndex,
        +                              TField value)
        +                                throws FieldAccessException
        +
        Writes the value of a field given its index.
        +
        Parameters:
        fieldIndex - - index of the field.
        value - - new value of the field.
        +
        Returns:
        This structure modifier - for chaining.
        +
        Throws:
        +
        FieldAccessException - The field doesn't exist, or it cannot be accessed under the current security contraints.
        +
      • +
      + + + + + +
        +
      • +

        writeSafely

        +
        public StructureModifier<TField> writeSafely(int fieldIndex,
        +                                    TField value)
        +                                      throws FieldAccessException
        +
        Writes the value of a given field IF and ONLY if it exists.
        +
        Parameters:
        fieldIndex - - index of the potential field.
        value - - new value of the field.
        +
        Returns:
        This structure modifer - for chaining.
        +
        Throws:
        +
        FieldAccessException - The field cannot be accessed under the current security contraints.
        +
      • +
      + + + +
        +
      • +

        modify

        +
        public StructureModifier<TField> modify(int fieldIndex,
        +                               com.google.common.base.Function<TField,TField> select)
        +                                 throws FieldAccessException
        +
        Correctly modifies the value of a field.
        +
        Parameters:
        fieldIndex - - index of the field to modify.
        select - - the function that modifies the field value.
        +
        Returns:
        This structure modifier - for chaining.
        +
        Throws:
        +
        FieldAccessException - The field cannot be accessed under the current security contraints.
        +
      • +
      + + + +
        +
      • +

        withType

        +
        public <T> StructureModifier<T> withType(java.lang.Class fieldType)
        +
        Retrieves a structure modifier that only reads and writes fields of a given type.
        +
        Parameters:
        fieldType - - the type, or supertype, of every field to modify.
        +
        Returns:
        A structure modifier for fields of this type.
        +
      • +
      + + + + + + + +
        +
      • +

        withType

        +
        public <T> StructureModifier<T> withType(java.lang.Class fieldType,
        +                                EquivalentConverter<T> converter)
        +
        Retrieves a structure modifier that only reads and writes fields of a given type.
        +
        Parameters:
        fieldType - - the type, or supertype, of every field to modify.
        converter - - converts objects into the given type.
        +
        Returns:
        A structure modifier for fields of this type.
        +
      • +
      + + + +
        +
      • +

        getFieldType

        +
        public java.lang.Class getFieldType()
        +
        Retrieves the common type of each field.
        +
        Returns:
        Common type of each field.
        +
      • +
      + + + +
        +
      • +

        getTargetType

        +
        public java.lang.Class getTargetType()
        +
        Retrieves the type of the object we're modifying.
        +
        Returns:
        Type of the object.
        +
      • +
      + + + +
        +
      • +

        getTarget

        +
        public java.lang.Object getTarget()
        +
        Retrieves the object we're currently modifying.
        +
        Returns:
        Object we're modifying.
        +
      • +
      + + + +
        +
      • +

        size

        +
        public int size()
        +
        Retrieve the number of readable types.
        +
        Returns:
        Readable types.
        +
      • +
      + + + +
        +
      • +

        withTarget

        +
        public StructureModifier<TField> withTarget(java.lang.Object target)
        +
        Retrieves a structure modifier of the same type for a different object target.
        +
        Parameters:
        target - - different target of the same type.
        +
        Returns:
        Structure modifier with the new target.
        +
      • +
      + + + +
        +
      • +

        getFields

        +
        public java.util.List<java.lang.reflect.Field> getFields()
        +
        Retrieves a list of the fields matching the constraints of this structure modifier.
        +
        Returns:
        List of fields.
        +
      • +
      + + + +
        +
      • +

        getValues

        +
        public java.util.List<TField> getValues()
        +                                 throws FieldAccessException
        +
        Retrieve every value stored in the fields of the current type.
        +
        Returns:
        Every field value.
        +
        Throws:
        +
        FieldAccessException - Unable to access one or all of the fields
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/StructureModifierTest.html b/Javadoc/com/comphenix/protocol/reflect/StructureModifierTest.html new file mode 100644 index 00000000..a970f235 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/StructureModifierTest.html @@ -0,0 +1,259 @@ + + + + + +StructureModifierTest + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect
+

Class StructureModifierTest

+
+
+ +
+
    +
  • +
    +
    +
    public class StructureModifierTest
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidtest() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/VolatileField.html b/Javadoc/com/comphenix/protocol/reflect/VolatileField.html new file mode 100644 index 00000000..b6a24e84 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/VolatileField.html @@ -0,0 +1,442 @@ + + + + + +VolatileField + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect
+

Class VolatileField

+
+
+ +
+
    +
  • +
    +
    +
    public class VolatileField
    +extends java.lang.Object
    +
    Represents a field that will revert to its original state when this class is garbaged collected.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      VolatileField(java.lang.reflect.Field field, + java.lang.Object container) +
      Initializes a volatile field with an associated object.
      +
      VolatileField(java.lang.reflect.Field field, + java.lang.Object container, + boolean forceAccess) +
      Initializes a volatile field with an associated object.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      protected voidfinalize() 
      java.lang.ObjectgetContainer() +
      Retrieves the object the field is stored.
      +
      java.lang.reflect.FieldgetField() +
      Retrieves the current field.
      +
      java.lang.ObjectgetOldValue() +
      Retrieves the field value before the previous setValue(), unless saveValue() has been called.
      +
      java.lang.ObjectgetValue() +
      Retrieves the current field value.
      +
      booleanisForceAccess() +
      Retrieves whether or not not to override any scope restrictions.
      +
      voidrevertValue() +
      Revert to the previously set value.
      +
      voidsaveValue() +
      Ensure that the current value is still set after this class has been garbaged collected.
      +
      voidsetForceAccess(boolean forceAccess) +
      Sets whether or not not to override any scope restrictions.
      +
      voidsetValue(java.lang.Object newValue) +
      Sets the current value.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VolatileField

        +
        public VolatileField(java.lang.reflect.Field field,
        +             java.lang.Object container)
        +
        Initializes a volatile field with an associated object.
        +
        Parameters:
        field - - the field.
        container - - the object this field belongs to.
        +
      • +
      + + + +
        +
      • +

        VolatileField

        +
        public VolatileField(java.lang.reflect.Field field,
        +             java.lang.Object container,
        +             boolean forceAccess)
        +
        Initializes a volatile field with an associated object.
        +
        Parameters:
        field - - the field.
        container - - the object this field belongs to.
        forceAccess - - whether or not to override any scope restrictions.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getField

        +
        public java.lang.reflect.Field getField()
        +
        Retrieves the current field.
        +
        Returns:
        The stored field.
        +
      • +
      + + + +
        +
      • +

        getContainer

        +
        public java.lang.Object getContainer()
        +
        Retrieves the object the field is stored.
        +
        Returns:
        The reference object.
        +
      • +
      + + + +
        +
      • +

        isForceAccess

        +
        public boolean isForceAccess()
        +
        Retrieves whether or not not to override any scope restrictions.
        +
        Returns:
        TRUE if we override scope, FALSE otherwise.
        +
      • +
      + + + +
        +
      • +

        setForceAccess

        +
        public void setForceAccess(boolean forceAccess)
        +
        Sets whether or not not to override any scope restrictions.
        +
        Parameters:
        forceAccess - - TRUE if we override scope, FALSE otherwise.
        +
      • +
      + + + +
        +
      • +

        getValue

        +
        public java.lang.Object getValue()
        +
        Retrieves the current field value.
        +
        Returns:
        The current field value.
        +
      • +
      + + + +
        +
      • +

        getOldValue

        +
        public java.lang.Object getOldValue()
        +
        Retrieves the field value before the previous setValue(), unless saveValue() has been called.
        +
        Returns:
        Previous value.
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue(java.lang.Object newValue)
        +
        Sets the current value. This will be reverted unless saveValue() is called.
        +
        Parameters:
        newValue - - new field value.
        +
      • +
      + + + +
        +
      • +

        saveValue

        +
        public void saveValue()
        +
        Ensure that the current value is still set after this class has been garbaged collected.
        +
      • +
      + + + +
        +
      • +

        revertValue

        +
        public void revertValue()
        +
        Revert to the previously set value.
        +
      • +
      + + + +
        +
      • +

        finalize

        +
        protected void finalize()
        +                 throws java.lang.Throwable
        +
        +
        Overrides:
        +
        finalize in class java.lang.Object
        +
        Throws:
        +
        java.lang.Throwable
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/class-use/EquivalentConverter.html b/Javadoc/com/comphenix/protocol/reflect/class-use/EquivalentConverter.html new file mode 100644 index 00000000..0403457d --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/class-use/EquivalentConverter.html @@ -0,0 +1,158 @@ + + + + + +Uses of Interface com.comphenix.protocol.reflect.EquivalentConverter + + + + + + + +
+ + + + + +
+ + +
+

Uses of Interface
com.comphenix.protocol.reflect.EquivalentConverter

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/class-use/FieldAccessException.html b/Javadoc/com/comphenix/protocol/reflect/class-use/FieldAccessException.html new file mode 100644 index 00000000..02b0cc9b --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/class-use/FieldAccessException.html @@ -0,0 +1,268 @@ + + + + + +Uses of Class com.comphenix.protocol.reflect.FieldAccessException + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.reflect.FieldAccessException

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/class-use/FieldUtils.html b/Javadoc/com/comphenix/protocol/reflect/class-use/FieldUtils.html new file mode 100644 index 00000000..5026e710 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/class-use/FieldUtils.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.reflect.FieldUtils + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.reflect.FieldUtils

+
+
No usage of com.comphenix.protocol.reflect.FieldUtils
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/class-use/FuzzyReflection.html b/Javadoc/com/comphenix/protocol/reflect/class-use/FuzzyReflection.html new file mode 100644 index 00000000..b3300218 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/class-use/FuzzyReflection.html @@ -0,0 +1,177 @@ + + + + + +Uses of Class com.comphenix.protocol.reflect.FuzzyReflection + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.reflect.FuzzyReflection

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/class-use/IntEnum.html b/Javadoc/com/comphenix/protocol/reflect/class-use/IntEnum.html new file mode 100644 index 00000000..3f0df0e3 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/class-use/IntEnum.html @@ -0,0 +1,163 @@ + + + + + +Uses of Class com.comphenix.protocol.reflect.IntEnum + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.reflect.IntEnum

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/class-use/MethodUtils.html b/Javadoc/com/comphenix/protocol/reflect/class-use/MethodUtils.html new file mode 100644 index 00000000..65dcd901 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/class-use/MethodUtils.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.reflect.MethodUtils + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.reflect.MethodUtils

+
+
No usage of com.comphenix.protocol.reflect.MethodUtils
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/class-use/PrimitiveUtils.html b/Javadoc/com/comphenix/protocol/reflect/class-use/PrimitiveUtils.html new file mode 100644 index 00000000..7b481906 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/class-use/PrimitiveUtils.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.reflect.PrimitiveUtils + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.reflect.PrimitiveUtils

+
+
No usage of com.comphenix.protocol.reflect.PrimitiveUtils
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/class-use/StructureModifier.html b/Javadoc/com/comphenix/protocol/reflect/class-use/StructureModifier.html new file mode 100644 index 00000000..8bff7ab6 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/class-use/StructureModifier.html @@ -0,0 +1,303 @@ + + + + + +Uses of Class com.comphenix.protocol.reflect.StructureModifier + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.reflect.StructureModifier

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/class-use/StructureModifierTest.html b/Javadoc/com/comphenix/protocol/reflect/class-use/StructureModifierTest.html new file mode 100644 index 00000000..a0dbced5 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/class-use/StructureModifierTest.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.reflect.StructureModifierTest + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.reflect.StructureModifierTest

+
+
No usage of com.comphenix.protocol.reflect.StructureModifierTest
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/class-use/VolatileField.html b/Javadoc/com/comphenix/protocol/reflect/class-use/VolatileField.html new file mode 100644 index 00000000..8e11e278 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/class-use/VolatileField.html @@ -0,0 +1,115 @@ + + + + + +Uses of Class com.comphenix.protocol.reflect.VolatileField + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.reflect.VolatileField

+
+
No usage of com.comphenix.protocol.reflect.VolatileField
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/CollectionGenerator.html b/Javadoc/com/comphenix/protocol/reflect/instances/CollectionGenerator.html new file mode 100644 index 00000000..aecdcf27 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/instances/CollectionGenerator.html @@ -0,0 +1,313 @@ + + + + + +CollectionGenerator + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect.instances
+

Class CollectionGenerator

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    InstanceProvider
    +
    +
    +
    +
    public class CollectionGenerator
    +extends java.lang.Object
    +implements InstanceProvider
    +
    Provides simple constructors for collection interfaces.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static CollectionGeneratorINSTANCE +
      Shared instance of this generator.
      +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.lang.Objectcreate(java.lang.Class<?> type) +
      Create an instance given a type, if possible.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CollectionGenerator

        +
        public CollectionGenerator()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        create

        +
        public java.lang.Object create(@Nullable
        +                      java.lang.Class<?> type)
        +
        Description copied from interface: InstanceProvider
        +
        Create an instance given a type, if possible.
        +
        +
        Specified by:
        +
        create in interface InstanceProvider
        +
        Parameters:
        type - - type to create.
        +
        Returns:
        The instance, or NULL if the type cannot be created.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/DefaultInstances.html b/Javadoc/com/comphenix/protocol/reflect/instances/DefaultInstances.html new file mode 100644 index 00000000..fad47d00 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/instances/DefaultInstances.html @@ -0,0 +1,444 @@ + + + + + +DefaultInstances + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect.instances
+

Class DefaultInstances

+
+
+ +
+
    +
  • +
    +
    +
    public class DefaultInstances
    +extends java.lang.Object
    +
    Used to construct default instances of any type.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static DefaultInstancesDEFAULT +
      Standard default instance provider.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      DefaultInstances(com.google.common.collect.ImmutableList<InstanceProvider> registered) +
      Construct a default instance generator using the given instance providers.
      +
      DefaultInstances(InstanceProvider... instaceProviders) +
      Construct a default instance generator using the given instance providers.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      protected <T> booleancontains(T[] elements, + T elementToFind) 
      protected <T> TcreateInstance(java.lang.Class<T> type, + 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.
      +
      static DefaultInstancesfromArray(InstanceProvider... instaceProviders) +
      Construct a default instance generator using the given instance providers.
      +
      <T> TgetDefault(java.lang.Class<T> type) +
      Retrieves a default instance or value that is assignable to this type.
      +
      <T> TgetDefault(java.lang.Class<T> type, + java.util.List<InstanceProvider> providers) +
      Retrieves a default instance or value that is assignable to this type.
      +
      com.google.common.collect.ImmutableList<InstanceProvider>getRegistered() +
      Retrieves a immutable list of every default object providers that generates instances.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        DEFAULT

        +
        public static DefaultInstances DEFAULT
        +
        Standard default instance provider.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DefaultInstances

        +
        public DefaultInstances(com.google.common.collect.ImmutableList<InstanceProvider> registered)
        +
        Construct a default instance generator using the given instance providers.
        +
        Parameters:
        registered - - list of instance providers.
        +
      • +
      + + + +
        +
      • +

        DefaultInstances

        +
        public DefaultInstances(InstanceProvider... instaceProviders)
        +
        Construct a default instance generator using the given instance providers.
        +
        Parameters:
        instaceProviders - - array of instance providers.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        fromArray

        +
        public static DefaultInstances fromArray(InstanceProvider... instaceProviders)
        +
        Construct a default instance generator using the given instance providers.
        +
        Parameters:
        instaceProviders - - array of instance providers.
        +
        Returns:
        An default instance generator.
        +
      • +
      + + + +
        +
      • +

        getRegistered

        +
        public com.google.common.collect.ImmutableList<InstanceProvider> getRegistered()
        +
        Retrieves a immutable list of every default object providers that generates instances.
        +
        Returns:
        Table of instance providers.
        +
      • +
      + + + +
        +
      • +

        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.
        • +
        +
+
Parameters:
type - - the type to construct a default value.
+
Returns:
A default value/instance, or NULL if not possible.
+ + + + + +
+
Parameters:
type - - the type to construct a default value.
providers - - instance providers used during the
+
Returns:
A default value/instance, or NULL if not possible.
+ + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/InstanceProvider.html b/Javadoc/com/comphenix/protocol/reflect/instances/InstanceProvider.html new file mode 100644 index 00000000..3799da02 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/instances/InstanceProvider.html @@ -0,0 +1,219 @@ + + + + + +InstanceProvider + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect.instances
+

Interface InstanceProvider

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    CollectionGenerator, PrimitiveGenerator
    +
    +
    +
    +
    public interface InstanceProvider
    +
    Represents a type generator for specific types.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.lang.Objectcreate(java.lang.Class<?> type) +
      Create an instance given a type, if possible.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        create

        +
        java.lang.Object create(@Nullable
        +                      java.lang.Class<?> type)
        +
        Create an instance given a type, if possible.
        +
        Parameters:
        type - - type to create.
        +
        Returns:
        The instance, or NULL if the type cannot be created.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/PrimitiveGenerator.html b/Javadoc/com/comphenix/protocol/reflect/instances/PrimitiveGenerator.html new file mode 100644 index 00000000..5af71dc7 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/instances/PrimitiveGenerator.html @@ -0,0 +1,347 @@ + + + + + +PrimitiveGenerator + + + + + + + +
+ + + + + +
+ + + +
+
com.comphenix.protocol.reflect.instances
+

Class PrimitiveGenerator

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    InstanceProvider
    +
    +
    +
    +
    public class PrimitiveGenerator
    +extends java.lang.Object
    +implements InstanceProvider
    +
    Provides constructors for primtive types, wrappers, arrays and strings.
    +
    Author:
    +
    Kristian
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static PrimitiveGeneratorINSTANCE +
      Shared instance of this generator.
      +
      static java.lang.StringSTRING_DEFAULT +
      Default value for Strings.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PrimitiveGenerator(java.lang.String stringDefault) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.lang.Objectcreate(java.lang.Class<?> type) +
      Create an instance given a type, if possible.
      +
      java.lang.StringgetStringDefault() +
      Retrieve the string default.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        STRING_DEFAULT

        +
        public static final java.lang.String STRING_DEFAULT
        +
        Default value for Strings.
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        INSTANCE

        +
        public static PrimitiveGenerator INSTANCE
        +
        Shared instance of this generator.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PrimitiveGenerator

        +
        public PrimitiveGenerator(java.lang.String stringDefault)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getStringDefault

        +
        public java.lang.String getStringDefault()
        +
        Retrieve the string default.
        +
        Returns:
        Default instance of a string.
        +
      • +
      + + + +
        +
      • +

        create

        +
        public java.lang.Object create(@Nullable
        +                      java.lang.Class<?> type)
        +
        Description copied from interface: InstanceProvider
        +
        Create an instance given a type, if possible.
        +
        +
        Specified by:
        +
        create in interface InstanceProvider
        +
        Parameters:
        type - - type to create.
        +
        Returns:
        The instance, or NULL if the type cannot be created.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/class-use/CollectionGenerator.html b/Javadoc/com/comphenix/protocol/reflect/instances/class-use/CollectionGenerator.html new file mode 100644 index 00000000..ad918e3d --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/instances/class-use/CollectionGenerator.html @@ -0,0 +1,157 @@ + + + + + +Uses of Class com.comphenix.protocol.reflect.instances.CollectionGenerator + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.reflect.instances.CollectionGenerator

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/class-use/DefaultInstances.html b/Javadoc/com/comphenix/protocol/reflect/instances/class-use/DefaultInstances.html new file mode 100644 index 00000000..c4102aae --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/instances/class-use/DefaultInstances.html @@ -0,0 +1,172 @@ + + + + + +Uses of Class com.comphenix.protocol.reflect.instances.DefaultInstances + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.reflect.instances.DefaultInstances

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/class-use/InstanceProvider.html b/Javadoc/com/comphenix/protocol/reflect/instances/class-use/InstanceProvider.html new file mode 100644 index 00000000..30f87e13 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/instances/class-use/InstanceProvider.html @@ -0,0 +1,235 @@ + + + + + +Uses of Interface com.comphenix.protocol.reflect.instances.InstanceProvider + + + + + + + +
+ + + + + +
+ + +
+

Uses of Interface
com.comphenix.protocol.reflect.instances.InstanceProvider

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/class-use/PrimitiveGenerator.html b/Javadoc/com/comphenix/protocol/reflect/instances/class-use/PrimitiveGenerator.html new file mode 100644 index 00000000..f7331770 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/instances/class-use/PrimitiveGenerator.html @@ -0,0 +1,157 @@ + + + + + +Uses of Class com.comphenix.protocol.reflect.instances.PrimitiveGenerator + + + + + + + +
+ + + + + +
+ + +
+

Uses of Class
com.comphenix.protocol.reflect.instances.PrimitiveGenerator

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/package-frame.html b/Javadoc/com/comphenix/protocol/reflect/instances/package-frame.html new file mode 100644 index 00000000..35c23469 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/instances/package-frame.html @@ -0,0 +1,25 @@ + + + + + +com.comphenix.protocol.reflect.instances + + + + +

com.comphenix.protocol.reflect.instances

+
+

Interfaces

+ +

Classes

+ +
+ + diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/package-summary.html b/Javadoc/com/comphenix/protocol/reflect/instances/package-summary.html new file mode 100644 index 00000000..c97c33a7 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/instances/package-summary.html @@ -0,0 +1,164 @@ + + + + + +com.comphenix.protocol.reflect.instances + + + + + + + +
+ + + + + +
+ + +
+

Package com.comphenix.protocol.reflect.instances

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/package-tree.html b/Javadoc/com/comphenix/protocol/reflect/instances/package-tree.html new file mode 100644 index 00000000..e3c71a67 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/instances/package-tree.html @@ -0,0 +1,134 @@ + + + + + +com.comphenix.protocol.reflect.instances Class Hierarchy + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package com.comphenix.protocol.reflect.instances

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/instances/package-use.html b/Javadoc/com/comphenix/protocol/reflect/instances/package-use.html new file mode 100644 index 00000000..357a7326 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/instances/package-use.html @@ -0,0 +1,165 @@ + + + + + +Uses of Package com.comphenix.protocol.reflect.instances + + + + + + + +
+ + + + + +
+ + +
+

Uses of Package
com.comphenix.protocol.reflect.instances

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/package-frame.html b/Javadoc/com/comphenix/protocol/reflect/package-frame.html new file mode 100644 index 00000000..8726625a --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/package-frame.html @@ -0,0 +1,34 @@ + + + + + +com.comphenix.protocol.reflect + + + + +

com.comphenix.protocol.reflect

+
+

Interfaces

+ +

Classes

+ +

Exceptions

+ +
+ + diff --git a/Javadoc/com/comphenix/protocol/reflect/package-summary.html b/Javadoc/com/comphenix/protocol/reflect/package-summary.html new file mode 100644 index 00000000..e5477de5 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/package-summary.html @@ -0,0 +1,208 @@ + + + + + +com.comphenix.protocol.reflect + + + + + + + +
+ + + + + +
+ + +
+

Package com.comphenix.protocol.reflect

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/package-tree.html b/Javadoc/com/comphenix/protocol/reflect/package-tree.html new file mode 100644 index 00000000..93286179 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/package-tree.html @@ -0,0 +1,148 @@ + + + + + +com.comphenix.protocol.reflect Class Hierarchy + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package com.comphenix.protocol.reflect

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/com/comphenix/protocol/reflect/package-use.html b/Javadoc/com/comphenix/protocol/reflect/package-use.html new file mode 100644 index 00000000..84a7dd81 --- /dev/null +++ b/Javadoc/com/comphenix/protocol/reflect/package-use.html @@ -0,0 +1,232 @@ + + + + + +Uses of Package com.comphenix.protocol.reflect + + + + + + + +
+ + + + + +
+ + +
+

Uses of Package
com.comphenix.protocol.reflect

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/constant-values.html b/Javadoc/constant-values.html new file mode 100644 index 00000000..de1f7b32 --- /dev/null +++ b/Javadoc/constant-values.html @@ -0,0 +1,821 @@ + + + + + +Constant Field Values + + + + + + + +
+ + + + + +
+ + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

com.comphenix.*

+ + +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/deprecated-list.html b/Javadoc/deprecated-list.html new file mode 100644 index 00000000..ce7a38ed --- /dev/null +++ b/Javadoc/deprecated-list.html @@ -0,0 +1,115 @@ + + + + + +Deprecated List + + + + + + + +
+ + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/help-doc.html b/Javadoc/help-doc.html new file mode 100644 index 00000000..aeaa1478 --- /dev/null +++ b/Javadoc/help-doc.html @@ -0,0 +1,220 @@ + + + + + +API Help + + + + + + + +
+ + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-1.html b/Javadoc/index-files/index-1.html new file mode 100644 index 00000000..7d8c8546 --- /dev/null +++ b/Javadoc/index-files/index-1.html @@ -0,0 +1,150 @@ + + + + + +A-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

A

+
+
ABILITIES - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
ABILITIES - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
add(T) - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
+
Inserts the given element in the proper location.
+
+
ADD_EXP_ORB - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
addAll(Collection<? extends T>) - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
 
+
addListener(PacketListener, ListeningWhitelist) - Method in class com.comphenix.protocol.injector.ConcurrentListenerMultimap
+
+
Adds a listener to its requested list of packet recievers.
+
+
addPacketListener(PacketListener) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
addPacketListener(PacketListener) - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Adds a packet listener.
+
+
Application - Class in com.comphenix.protocol
+
 
+
Application() - Constructor for class com.comphenix.protocol.Application
+
 
+
ARM_ANIMATION - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
ARM_ANIMATION - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
ATTACH_ENTITY - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-10.html b/Javadoc/index-files/index-10.html new file mode 100644 index 00000000..cc959fb6 --- /dev/null +++ b/Javadoc/index-files/index-10.html @@ -0,0 +1,132 @@ + + + + + +K-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

K

+
+
KEEP_ALIVE - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
KEEP_ALIVE - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
KEY_REQUEST - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
KEY_RESPONSE - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
KEY_RESPONSE - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
KICK_DISCONNECT - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
KICK_DISCONNECT - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-11.html b/Javadoc/index-files/index-11.html new file mode 100644 index 00000000..1909ab8a --- /dev/null +++ b/Javadoc/index-files/index-11.html @@ -0,0 +1,142 @@ + + + + + +L-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

L

+
+
ListenerPriority - Enum in com.comphenix.protocol.events
+
+
Represents a packet event priority, similar to the Bukkit EventPriority.
+
+
listeners - Variable in class com.comphenix.protocol.injector.ConcurrentListenerMultimap
+
 
+
ListeningWhitelist - Class in com.comphenix.protocol.events
+
+
Determines which packets will be observed by a listener, and with what priority.
+
+
ListeningWhitelist(ListenerPriority, Set<Integer>) - Constructor for class com.comphenix.protocol.events.ListeningWhitelist
+
+
Creates a packet whitelist for a given priority with a set of packet IDs.
+
+
ListeningWhitelist(ListenerPriority, Integer...) - Constructor for class com.comphenix.protocol.events.ListeningWhitelist
+
+
Creates a packet whitelist of a given priority for a list of packets.
+
+
LOCALE_AND_VIEW_DISTANCE - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
LOGIN - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
LOGIN - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-12.html b/Javadoc/index-files/index-12.html new file mode 100644 index 00000000..9dc79def --- /dev/null +++ b/Javadoc/index-files/index-12.html @@ -0,0 +1,146 @@ + + + + + +M-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

M

+
+
main(String[]) - Static method in class com.comphenix.protocol.Application
+
 
+
MAP_CHUNK - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
MAP_CHUNK_BULK - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
members - Variable in class com.comphenix.protocol.reflect.IntEnum
+
 
+
MethodUtils - Class in com.comphenix.protocol.reflect
+
+
Utility reflection methods focussed on methods in general rather than properties in particular.
+
+
MethodUtils() - Constructor for class com.comphenix.protocol.reflect.MethodUtils
+
 
+
MINECRAFT_OBJECT - Static variable in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Matches a Minecraft object.
+
+
MOB_EFFECT - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
MOB_SPAWN - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
modify(int, Function<TField, TField>) - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Correctly modifies the value of a field.
+
+
MULTI_BLOCK_CHANGE - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-13.html b/Javadoc/index-files/index-13.html new file mode 100644 index 00000000..daf0ca9b --- /dev/null +++ b/Javadoc/index-files/index-13.html @@ -0,0 +1,126 @@ + + + + + +N-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

N

+
+
NAMED_ENTITY_SPAWN - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
NAMED_SOUND_EFFECT - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
newPacket(int) - Static method in class com.comphenix.protocol.injector.StructureCache
+
+
Creates an empty Minecraft packet of the given ID.
+
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-14.html b/Javadoc/index-files/index-14.html new file mode 100644 index 00000000..9d0f8129 --- /dev/null +++ b/Javadoc/index-files/index-14.html @@ -0,0 +1,138 @@ + + + + + +O-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

O

+
+
onDisable() - Method in class com.comphenix.protocol.ProtocolLibrary
+
 
+
onEnable() - Method in class com.comphenix.protocol.ProtocolLibrary
+
 
+
onLoad() - Method in class com.comphenix.protocol.ProtocolLibrary
+
 
+
onPacketReceiving(PacketEvent) - Method in class com.comphenix.protocol.events.PacketAdapter
+
 
+
onPacketReceiving(PacketEvent) - Method in interface com.comphenix.protocol.events.PacketListener
+
+
Invoked right before a recieved packet from a client is being processed.
+
+
onPacketSending(PacketEvent) - Method in class com.comphenix.protocol.events.PacketAdapter
+
 
+
onPacketSending(PacketEvent) - Method in interface com.comphenix.protocol.events.PacketListener
+
+
Invoked right before a packet is transmitted from the server to the client.
+
+
OPEN_WINDOW - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-15.html b/Javadoc/index-files/index-15.html new file mode 100644 index 00000000..5d2064df --- /dev/null +++ b/Javadoc/index-files/index-15.html @@ -0,0 +1,231 @@ + + + + + +P-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

P

+
+
PacketAdapter - Class in com.comphenix.protocol.events
+
+
Represents a packet listener with useful constructors.
+
+
PacketAdapter(Plugin, ConnectionSide, Integer...) - Constructor for class com.comphenix.protocol.events.PacketAdapter
+
+
Initialize a packet listener with default priority.
+
+
PacketAdapter(Plugin, ConnectionSide, ListenerPriority, Integer...) - Constructor for class com.comphenix.protocol.events.PacketAdapter
+
+
Initialize a packet listener for a single connection side.
+
+
PacketConstructor - Class in com.comphenix.protocol.injector
+
+
A packet constructor that uses an internal Minecraft.
+
+
PacketConstructor.BukkitUnwrapper - Class in com.comphenix.protocol.injector
+
 
+
PacketConstructor.BukkitUnwrapper() - Constructor for class com.comphenix.protocol.injector.PacketConstructor.BukkitUnwrapper
+
 
+
PacketConstructor.Unwrapper - Interface in com.comphenix.protocol.injector
+
 
+
PacketContainer - Class in com.comphenix.protocol.events
+
+
Represents a Minecraft packet indirectly.
+
+
PacketContainer(int) - Constructor for class com.comphenix.protocol.events.PacketContainer
+
+
Creates a packet container for a new packet.
+
+
PacketContainer(int, Packet) - Constructor for class com.comphenix.protocol.events.PacketContainer
+
+
Creates a packet container for an existing packet.
+
+
PacketContainer(int, Packet, StructureModifier<Object>) - Constructor for class com.comphenix.protocol.events.PacketContainer
+
+
Creates a packet container for an existing packet.
+
+
PacketEvent - Class in com.comphenix.protocol.events
+
 
+
PacketEvent(Object) - Constructor for class com.comphenix.protocol.events.PacketEvent
+
+
Use the static constructors to create instances of this event.
+
+
PacketFilterManager - Class in com.comphenix.protocol.injector
+
 
+
PacketFilterManager(ClassLoader, Logger) - Constructor for class com.comphenix.protocol.injector.PacketFilterManager
+
+
Only create instances of this class if protocol lib is disabled.
+
+
PacketFilterManager.PlayerInjectHooks - Enum in com.comphenix.protocol.injector
+
+
Sets the inject hook type.
+
+
PacketListener - Interface in com.comphenix.protocol.events
+
+
Represents a listener that recieves notifications when packets are sent or recieved.
+
+
Packets - Class in com.comphenix.protocol
+
+
List of known packet IDs since 1.3.2.
+
+
Packets() - Constructor for class com.comphenix.protocol.Packets
+
 
+
Packets.Client - Class in com.comphenix.protocol
+
+
List of packets sent by the client.
+
+
Packets.Server - Class in com.comphenix.protocol
+
+
List of packets sent only by the server.
+
+
PICKUP_SPAWN - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
PLACE - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
PLAY_NOTE_BLOCK - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
PLAYER_INFO - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
PLAYER_LOOK - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
PLAYER_LOOK - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
PLAYER_LOOK_MOVE - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
PLAYER_LOOK_MOVE - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
PLAYER_POSITION - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
PLAYER_POSITION - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
plugin - Variable in class com.comphenix.protocol.events.PacketAdapter
+
 
+
PrimitiveGenerator - Class in com.comphenix.protocol.reflect.instances
+
+
Provides constructors for primtive types, wrappers, arrays and strings.
+
+
PrimitiveGenerator(String) - Constructor for class com.comphenix.protocol.reflect.instances.PrimitiveGenerator
+
 
+
PrimitiveUtils - Class in com.comphenix.protocol.reflect
+
+
Contains static utility methods pertaining to primitive types and their + corresponding wrapper types.
+
+
ProtocolLibrary - Class in com.comphenix.protocol
+
 
+
ProtocolLibrary() - Constructor for class com.comphenix.protocol.ProtocolLibrary
+
 
+
ProtocolManager - Interface in com.comphenix.protocol
+
+
Represents an API for accessing the Minecraft protocol.
+
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-16.html b/Javadoc/index-files/index-16.html new file mode 100644 index 00000000..e8935211 --- /dev/null +++ b/Javadoc/index-files/index-16.html @@ -0,0 +1,226 @@ + + + + + +R-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

R

+
+
read(int) - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Reads the value of a field given its index.
+
+
readField(Field, Object) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Read an accessible Field.
+
+
readField(Field, Object, boolean) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Read a Field.
+
+
readField(Object, String) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Read the named public field.
+
+
readField(Object, String, boolean) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Read the named field.
+
+
readSafely(int) - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Reads the value of a field if and ONLY IF it exists.
+
+
readStaticField(Field) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Read an accessible static Field.
+
+
readStaticField(Field, boolean) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Read a static Field.
+
+
readStaticField(Class, String) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Read the named public static field.
+
+
readStaticField(Class, String, boolean) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Read the named static field.
+
+
receivingWhitelist - Variable in class com.comphenix.protocol.events.PacketAdapter
+
 
+
recieveClientPacket(Player, PacketContainer) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
recieveClientPacket(Player, PacketContainer, boolean) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
recieveClientPacket(Player, PacketContainer) - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Simulate recieving a certain packet from a given player.
+
+
recieveClientPacket(Player, PacketContainer, boolean) - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Simulate recieving a certain packet from a given player.
+
+
registerAll() - Method in class com.comphenix.protocol.reflect.IntEnum
+
+
Registers every public int field as a member.
+
+
registerEvents(PluginManager, Plugin) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
+
Register this protocol manager on Bukkit.
+
+
registerMember(int, String) - Method in class com.comphenix.protocol.reflect.IntEnum
+
+
Registers a member.
+
+
REL_ENTITY_MOVE - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
REL_ENTITY_MOVE_LOOK - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
remove(Object) - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
+
Removes from the list by making a new list with every element except the one given.
+
+
remove(int) - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
+
Removes from the list by making a copy of every element except the one with the given index.
+
+
REMOVE_MOB_EFFECT - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
removeAll(Collection<?>) - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
 
+
removeListener(PacketListener, ListeningWhitelist) - Method in class com.comphenix.protocol.injector.ConcurrentListenerMultimap
+
+
Removes the given listener from the packet event list.
+
+
removePacketListener(PacketListener) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
removePacketListener(PacketListener) - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Removes a given packet listener.
+
+
removePacketListeners(Plugin) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
removePacketListeners(Plugin) - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Removes every listener associated with the given plugin.
+
+
RESPAWN - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
RESPAWN - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
retainAll(Collection<?>) - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
 
+
revertValue() - Method in class com.comphenix.protocol.reflect.VolatileField
+
+
Revert to the previously set value.
+
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-17.html b/Javadoc/index-files/index-17.html new file mode 100644 index 00000000..c4808b7c --- /dev/null +++ b/Javadoc/index-files/index-17.html @@ -0,0 +1,231 @@ + + + + + +S-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

S

+
+
saveValue() - Method in class com.comphenix.protocol.reflect.VolatileField
+
+
Ensure that the current value is still set after this class has been garbaged collected.
+
+
sendingWhitelist - Variable in class com.comphenix.protocol.events.PacketAdapter
+
 
+
sendServerPacket(Player, PacketContainer) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
sendServerPacket(Player, PacketContainer, boolean) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
sendServerPacket(Player, PacketContainer) - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Send a packet to the given player.
+
+
sendServerPacket(Player, PacketContainer, boolean) - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Send a packet to the given player.
+
+
SET_CREATIVE_SLOT - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
SET_CREATIVE_SLOT - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
SET_EXPERIENCE - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
SET_SLOT - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
setCacheMethods(boolean) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Set whether methods should be cached for greater performance or not, + default is true.
+
+
setCancelled(boolean) - Method in class com.comphenix.protocol.events.PacketEvent
+
+
Sets whether or not the packet should be cancelled.
+
+
setForceAccess(boolean) - Method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Sets whether or not not to override any scope restrictions.
+
+
setForceAccess(boolean) - Method in class com.comphenix.protocol.reflect.VolatileField
+
+
Sets whether or not not to override any scope restrictions.
+
+
setPacket(PacketContainer) - Method in class com.comphenix.protocol.events.PacketEvent
+
+
Replace the packet that will be sent to the player.
+
+
setPlayerHook(PacketFilterManager.PlayerInjectHooks) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
+
Sets how the server packets are read.
+
+
setValue(Object) - Method in class com.comphenix.protocol.reflect.VolatileField
+
+
Sets the current value.
+
+
size() - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
+
Retrieve the size of the list.
+
+
size() - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Retrieve the number of readable types.
+
+
SortedCopyOnWriteArray<T extends java.lang.Comparable<T>> - Class in com.comphenix.protocol.concurrency
+
+
An implicitly sorted array list that preserves insertion order and maintains duplicates.
+
+
SortedCopyOnWriteArray() - Constructor for class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
+
Construct an empty sorted array.
+
+
SortedCopyOnWriteArray(Collection<T>) - Constructor for class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
+
Create a sorted array from the given list.
+
+
SortedCopyOnWriteArray(Collection<T>, boolean) - Constructor for class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
+
Create a sorted array from the given list.
+
+
SortedCopyOnWriteArrayTest - Class in com.comphenix.protocol.injector
+
 
+
SortedCopyOnWriteArrayTest() - Constructor for class com.comphenix.protocol.injector.SortedCopyOnWriteArrayTest
+
 
+
SPAWN_POSITION - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
STATISTIC - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
Statistics - Class in com.comphenix.protocol.metrics
+
 
+
Statistics(Plugin) - Constructor for class com.comphenix.protocol.metrics.Statistics
+
 
+
STRING_DEFAULT - Static variable in class com.comphenix.protocol.reflect.instances.PrimitiveGenerator
+
+
Default value for Strings.
+
+
StructureCache - Class in com.comphenix.protocol.injector
+
+
Caches structure modifiers.
+
+
StructureCache() - Constructor for class com.comphenix.protocol.injector.StructureCache
+
 
+
structureModifier - Variable in class com.comphenix.protocol.events.PacketContainer
+
 
+
StructureModifier<TField> - Class in com.comphenix.protocol.reflect
+
 
+
StructureModifier(Class, Class, boolean) - Constructor for class com.comphenix.protocol.reflect.StructureModifier
+
+
Creates a structure modifier.
+
+
StructureModifierTest - Class in com.comphenix.protocol.reflect
+
 
+
StructureModifierTest() - Constructor for class com.comphenix.protocol.reflect.StructureModifierTest
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-18.html b/Javadoc/index-files/index-18.html new file mode 100644 index 00000000..f491197c --- /dev/null +++ b/Javadoc/index-files/index-18.html @@ -0,0 +1,146 @@ + + + + + +T-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

T

+
+
TAB_COMPLETE - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
TAB_COMPLETE - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
test() - Method in class com.comphenix.protocol.reflect.StructureModifierTest
+
 
+
testInsertion() - Method in class com.comphenix.protocol.injector.SortedCopyOnWriteArrayTest
+
 
+
testOrder() - Method in class com.comphenix.protocol.injector.SortedCopyOnWriteArrayTest
+
 
+
TILE_ENTITY_DATA - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
toArray() - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
 
+
toArray(T[]) - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
 
+
toNonPrimitiveClass(Class) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Find a non primitive representation for given primitive class.
+
+
toString() - Method in class com.comphenix.protocol.events.ListeningWhitelist
+
 
+
toString() - Method in class com.comphenix.protocol.events.PacketAdapter
+
 
+
TRANSACTION - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
TRANSACTION - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-19.html b/Javadoc/index-files/index-19.html new file mode 100644 index 00000000..57cbbd74 --- /dev/null +++ b/Javadoc/index-files/index-19.html @@ -0,0 +1,147 @@ + + + + + +U-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

U

+
+
unwrap(Class<T>) - Static method in class com.comphenix.protocol.reflect.PrimitiveUtils
+
+
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.PacketConstructor.BukkitUnwrapper
+
 
+
unwrapItem(Object) - Method in interface com.comphenix.protocol.injector.PacketConstructor.Unwrapper
+
 
+
unwrapType(Class<?>) - Method in class com.comphenix.protocol.injector.PacketConstructor.BukkitUnwrapper
+
 
+
unwrapType(Class<?>) - Method in interface com.comphenix.protocol.injector.PacketConstructor.Unwrapper
+
 
+
UPDATE_HEALTH - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
UPDATE_SIGN - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
UPDATE_SIGN - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
UPDATE_TIME - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
updateEntity(Entity, List<Player>) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
updateEntity(Entity, List<Player>) - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Completely refresh all clients about an entity.
+
+
USE_ENTITY - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-2.html b/Javadoc/index-files/index-2.html new file mode 100644 index 00000000..c2f08dd7 --- /dev/null +++ b/Javadoc/index-files/index-2.html @@ -0,0 +1,130 @@ + + + + + +B-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

B

+
+
BED - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
BLOCK_BREAK_ANIMATION - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
BLOCK_CHANGE - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
BLOCK_DIG - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
BLOCK_ITEM_SWITCH - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
BUTTON_CLICK - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-20.html b/Javadoc/index-files/index-20.html new file mode 100644 index 00000000..e68ff9ed --- /dev/null +++ b/Javadoc/index-files/index-20.html @@ -0,0 +1,167 @@ + + + + + +V-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

V

+
+
valueOf(String) - Static method in enum com.comphenix.protocol.events.ConnectionSide
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.comphenix.protocol.events.ListenerPriority
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum com.comphenix.protocol.injector.PacketFilterManager.PlayerInjectHooks
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in class com.comphenix.protocol.Packets
+
+
Find a packet by name.
+
+
valueOf(String) - Method in class com.comphenix.protocol.reflect.IntEnum
+
+
Retrieve the ID of the member with the given name.
+
+
values() - Static method in enum com.comphenix.protocol.events.ConnectionSide
+
+
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 +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 +the order they are declared.
+
+
VEHICLE_SPAWN - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
VolatileField - Class in com.comphenix.protocol.reflect
+
+
Represents a field that will revert to its original state when this class is garbaged collected.
+
+
VolatileField(Field, Object) - Constructor for class com.comphenix.protocol.reflect.VolatileField
+
+
Initializes a volatile field with an associated object.
+
+
VolatileField(Field, Object, boolean) - Constructor for class com.comphenix.protocol.reflect.VolatileField
+
+
Initializes a volatile field with an associated object.
+
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-21.html b/Javadoc/index-files/index-21.html new file mode 100644 index 00000000..85e10eab --- /dev/null +++ b/Javadoc/index-files/index-21.html @@ -0,0 +1,195 @@ + + + + + +W-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

W

+
+
WEATHER - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
WINDOW_CLICK - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
WINDOW_ITEMS - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
withPacket(int, Class<?>[]) - Method in class com.comphenix.protocol.injector.PacketConstructor
+
+
Create a packet constructor that creates packets using the given types.
+
+
withTarget(Object) - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Retrieves a structure modifier of the same type for a different object target.
+
+
withType(Class) - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Retrieves a structure modifier that only reads and writes fields of a given type.
+
+
withType(Class, EquivalentConverter<T>) - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Retrieves a structure modifier that only reads and writes fields of a given type.
+
+
withUnwrappers(List<PacketConstructor.Unwrapper>) - Method in class com.comphenix.protocol.injector.PacketConstructor
+
+
Return a copy of the current constructor with a different list of unwrappers.
+
+
WORLD_EVENT - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
wrap(Class<T>) - Static method in class com.comphenix.protocol.reflect.PrimitiveUtils
+
+
Returns the corresponding wrapper type of type if it is a + primitive type; otherwise returns type itself.
+
+
write(int, TField) - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Writes the value of a field given its index.
+
+
writeDefaults() - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Sets all non-primitive fields to a more fitting default value.
+
+
writeField(Field, Object, Object) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Write an accessible field.
+
+
writeField(Field, Object, Object, boolean) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Write a field.
+
+
writeField(Object, String, Object) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Write a public field.
+
+
writeField(Object, String, Object, boolean) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Write a field.
+
+
writeSafely(int, TField) - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Writes the value of a given field IF and ONLY if it exists.
+
+
writeStaticField(Field, Object) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Write a public static Field.
+
+
writeStaticField(Field, Object, boolean) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Write a static Field.
+
+
writeStaticField(Class, String, Object) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Write a named public static Field.
+
+
writeStaticField(Class, String, Object, boolean) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Write a named static Field.
+
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-3.html b/Javadoc/index-files/index-3.html new file mode 100644 index 00000000..117a43ce --- /dev/null +++ b/Javadoc/index-files/index-3.html @@ -0,0 +1,216 @@ + + + + + +C-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

C

+
+
CHAT - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
CHAT - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
checkNotNull(T) - Static method in class com.comphenix.protocol.reflect.PrimitiveUtils
+
 
+
clear() - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
 
+
clearCache() - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Clear the method cache.
+
+
CLIENT_COMMAND - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
close() - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
CLOSE_WINDOW - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
CLOSE_WINDOW - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
COLLECT - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
CollectionGenerator - Class in com.comphenix.protocol.reflect.instances
+
+
Provides simple constructors for collection interfaces.
+
+
CollectionGenerator() - Constructor for class com.comphenix.protocol.reflect.instances.CollectionGenerator
+
 
+
com.comphenix.protocol.concurrency - package com.comphenix.protocol.concurrency
+
 
+
com.comphenix.protocol.events - package com.comphenix.protocol.events
+
 
+
com.comphenix.protocol.injector - package com.comphenix.protocol.injector
+
 
+
com.comphenix.protocol.metrics - package com.comphenix.protocol.metrics
+
 
+
com.comphenix.protocol.reflect - package com.comphenix.protocol.reflect
+
 
+
com.comphenix.protocol.reflect.instances - package com.comphenix.protocol.reflect.instances
+
 
+
ConcurrentListenerMultimap - Class in com.comphenix.protocol.injector
+
+
A thread-safe implementation of a listener multimap.
+
+
ConcurrentListenerMultimap() - Constructor for class com.comphenix.protocol.injector.ConcurrentListenerMultimap
+
 
+
ConnectionSide - Enum in com.comphenix.protocol.events
+
+
Used to set a packet filter.
+
+
connectionSide - Variable in class com.comphenix.protocol.events.PacketAdapter
+
 
+
contains(Object) - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
 
+
contains(T[], T) - Method in class com.comphenix.protocol.reflect.instances.DefaultInstances
+
 
+
containsAll(Collection<?>) - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
 
+
CRAFT_PROGRESS_BAR - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
create(Class<?>) - Method in class com.comphenix.protocol.reflect.instances.CollectionGenerator
+
 
+
create(Class<?>) - Method in interface com.comphenix.protocol.reflect.instances.InstanceProvider
+
+
Create an instance given a type, if possible.
+
+
create(Class<?>) - Method in class com.comphenix.protocol.reflect.instances.PrimitiveGenerator
+
 
+
createInstance(Class<T>, Constructor<T>, Class<?>[], Object[]) - Method in class com.comphenix.protocol.reflect.instances.DefaultInstances
+
+
Used by the default instance provider to create a class from a given constructor.
+
+
createPacket(Object...) - Method in class com.comphenix.protocol.injector.PacketConstructor
+
+
Construct a packet using the special builtin Minecraft constructors.
+
+
createPacket(int) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
createPacket(int, boolean) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
createPacket(int) - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Constructs a new encapsulated Minecraft packet with the given ID.
+
+
createPacket(int, boolean) - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Constructs a new encapsulated Minecraft packet with the given ID.
+
+
createPacketConstructor(int, Object...) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
createPacketConstructor(int, Object...) - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Construct a packet using the special builtin Minecraft constructors.
+
+
CUSTOM_PAYLOAD - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
CUSTOM_PAYLOAD - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-4.html b/Javadoc/index-files/index-4.html new file mode 100644 index 00000000..92775fb7 --- /dev/null +++ b/Javadoc/index-files/index-4.html @@ -0,0 +1,140 @@ + + + + + +D-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

D

+
+
DEFAULT - Static variable in class com.comphenix.protocol.injector.PacketConstructor
+
+
A packet constructor that automatically converts Bukkit types to their NMS conterpart.
+
+
DEFAULT - Static variable in class com.comphenix.protocol.reflect.instances.DefaultInstances
+
+
Standard default instance provider.
+
+
DefaultInstances - Class in com.comphenix.protocol.reflect.instances
+
+
Used to construct default instances of any type.
+
+
DefaultInstances(ImmutableList<InstanceProvider>) - Constructor for class com.comphenix.protocol.reflect.instances.DefaultInstances
+
+
Construct a default instance generator using the given instance providers.
+
+
DefaultInstances(InstanceProvider...) - Constructor for class com.comphenix.protocol.reflect.instances.DefaultInstances
+
+
Construct a default instance generator using the given instance providers.
+
+
DESTROY_ENTITY - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-5.html b/Javadoc/index-files/index-5.html new file mode 100644 index 00000000..7a97d4ca --- /dev/null +++ b/Javadoc/index-files/index-5.html @@ -0,0 +1,152 @@ + + + + + +E-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

E

+
+
EMPTY_WHITELIST - Static variable in class com.comphenix.protocol.events.ListeningWhitelist
+
+
A whitelist with no packets - indicates that the listener shouldn't observe any packets.
+
+
ENTITY - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
ENTITY_ACTION - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
ENTITY_EQUIPMENT - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
ENTITY_HEAD_ROTATION - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
ENTITY_LOCATION_ACTION - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
ENTITY_LOOK - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
ENTITY_METADATA - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
ENTITY_PAINTING - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
ENTITY_STATUS - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
ENTITY_TELEPORT - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
ENTITY_VELOCITY - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
equals(Object) - Method in class com.comphenix.protocol.events.ListeningWhitelist
+
 
+
EquivalentConverter<TType> - Interface in com.comphenix.protocol.reflect
+
+
Interface that converts generic objects into types and back.
+
+
EXPLOSION - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-6.html b/Javadoc/index-files/index-6.html new file mode 100644 index 00000000..c33804e8 --- /dev/null +++ b/Javadoc/index-files/index-6.html @@ -0,0 +1,182 @@ + + + + + +F-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

F

+
+
FieldAccessException - Exception in com.comphenix.protocol.reflect
+
+
Invoked when a field is inaccessible due to security limitations, or when it simply doesn't exist.
+
+
FieldAccessException() - Constructor for exception com.comphenix.protocol.reflect.FieldAccessException
+
 
+
FieldAccessException(String, Throwable) - Constructor for exception com.comphenix.protocol.reflect.FieldAccessException
+
 
+
FieldAccessException(String) - Constructor for exception com.comphenix.protocol.reflect.FieldAccessException
+
 
+
FieldAccessException(Throwable) - Constructor for exception com.comphenix.protocol.reflect.FieldAccessException
+
 
+
FieldUtils - Class in com.comphenix.protocol.reflect
+
+
Utilities for working with fields by reflection.
+
+
FieldUtils() - Constructor for class com.comphenix.protocol.reflect.FieldUtils
+
+
FieldUtils instances should NOT be constructed in standard programming.
+
+
finalize() - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
finalize() - Method in class com.comphenix.protocol.reflect.VolatileField
+
 
+
FLYING - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
FLYING - Static variable in class com.comphenix.protocol.Packets.Server
+
 
+
fromArray(InstanceProvider...) - Static method in class com.comphenix.protocol.reflect.instances.DefaultInstances
+
+
Construct a default instance generator using the given instance providers.
+
+
fromClass(Class<?>) - Static method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves a fuzzy reflection instance from a given class.
+
+
fromClass(Class<?>, boolean) - Static method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves a fuzzy reflection instance from a given class.
+
+
fromClient(Object, PacketContainer, Player) - Static method in class com.comphenix.protocol.events.PacketEvent
+
+
Creates an event representing a client packet transmission.
+
+
fromFormat(String, Object...) - Static method in exception com.comphenix.protocol.reflect.FieldAccessException
+
 
+
fromObject(Object) - Static method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves a fuzzy reflection instance from an object.
+
+
fromObject(Object, boolean) - Static method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves a fuzzy reflection instance from an object.
+
+
fromServer(Object, PacketContainer, Player) - Static method in class com.comphenix.protocol.events.PacketEvent
+
+
Creates an event representing a server packet transmission.
+
+
FuzzyReflection - Class in com.comphenix.protocol.reflect
+
+
Retrieves fields and methods by signature, not just name.
+
+
FuzzyReflection(Class<?>, boolean) - Constructor for class com.comphenix.protocol.reflect.FuzzyReflection
+
 
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-7.html b/Javadoc/index-files/index-7.html new file mode 100644 index 00000000..2a3aa301 --- /dev/null +++ b/Javadoc/index-files/index-7.html @@ -0,0 +1,406 @@ + + + + + +G-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

G

+
+
get(int) - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
+
Retrieves an element by index.
+
+
GET_INFO - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
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 + 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 + 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 + reflection) that implements the specified Method.
+
+
getClassLoader() - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
+
Retrieves the current plugin class loader.
+
+
getClientRegistry() - Static method in class com.comphenix.protocol.Packets
+
+
A registry that parses between names and packet IDs.
+
+
getContainer() - Method in class com.comphenix.protocol.reflect.VolatileField
+
+
Retrieves the object the field is stored.
+
+
getDeclaredName(int) - Static method in class com.comphenix.protocol.Packets
+
+
Retrieves the name of a packet.
+
+
getDeclaredName(Integer) - Method in class com.comphenix.protocol.reflect.IntEnum
+
+
Retrieve the name of the member with the given id.
+
+
getDefault(Class<T>) - Method in class com.comphenix.protocol.reflect.instances.DefaultInstances
+
+
Retrieves a default instance or value that is assignable to this type.
+
+
getDefault(Class<T>, List<InstanceProvider>) - Method in class com.comphenix.protocol.reflect.instances.DefaultInstances
+
+
Retrieves a default instance or value that is assignable to this type.
+
+
getEntityModifier(World) - Method in class com.comphenix.protocol.events.PacketContainer
+
+
Retrieves a read/write structure for entity objects.
+
+
getField(Class, String) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Gets an accessible Field by name respecting scope.
+
+
getField(Class, String, boolean) - Static method in class com.comphenix.protocol.reflect.FieldUtils
+
+
Gets an accessible Field by name breaking scope if + requested.
+
+
getField() - Method in class com.comphenix.protocol.reflect.VolatileField
+
+
Retrieves the current field.
+
+
getFieldByName(String) - Method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves a field by name.
+
+
getFieldByType(String) - Method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves a field by type.
+
+
getFieldByType(String, Set<Class>) - Method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves a field by type.
+
+
getFields() - Method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves all private and public fields in declared order (after JDK 1.5).
+
+
getFields() - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Retrieves a list of the fields matching the constraints of this structure modifier.
+
+
getFieldType() - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Retrieves the common type of each field.
+
+
getGeneric(TType) - Method in interface com.comphenix.protocol.reflect.EquivalentConverter
+
 
+
getHandle() - Method in class com.comphenix.protocol.events.PacketContainer
+
+
Retrieves the underlying Minecraft packet.
+
+
getID() - Method in class com.comphenix.protocol.events.PacketContainer
+
+
Retrieves the ID of this packet.
+
+
getItemArrayModifier() - Method in class com.comphenix.protocol.events.PacketContainer
+
+
Retrieves a read/write structure for arrays of ItemStacks.
+
+
getItemModifier() - Method in class com.comphenix.protocol.events.PacketContainer
+
+
Retrieves a read/write structure for ItemStack.
+
+
getLogger() - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
getMatchingAccessibleMethod(Class, String, Class[]) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Find an accessible method that matches the given name and has compatible parameters.
+
+
getMethodByName(String) - Method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves a method by looking at its name.
+
+
getMethodByParameters(String, Class<?>...) - Method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves a method by looking at the parameter types only.
+
+
getMethodByParameters(String, Class<?>, Class<?>[]) - Method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves a method by looking at the parameter types and return type only.
+
+
getMethods() - Method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves all private and public methods in declared order (after JDK 1.5).
+
+
getModifier() - Method in class com.comphenix.protocol.events.PacketContainer
+
+
Retrieves the generic structure modifier for this packet.
+
+
getOldValue() - Method in class com.comphenix.protocol.reflect.VolatileField
+
+
Retrieves the field value before the previous setValue(), unless saveValue() has been called.
+
+
getPacket() - Method in class com.comphenix.protocol.events.PacketEvent
+
+
Retrieves the packet that will be sent to the player.
+
+
getPacketID() - Method in class com.comphenix.protocol.events.PacketEvent
+
+
Retrieves the packet ID.
+
+
getPacketID() - Method in class com.comphenix.protocol.injector.PacketConstructor
+
+
Retrieve the id of the packets this constructor creates.
+
+
getPacketListeners() - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
getPacketListeners() - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Retrieves a list of every registered packet listener.
+
+
getPlayer() - Method in class com.comphenix.protocol.events.PacketEvent
+
+
Retrieves the player that has sent the packet or is recieving it.
+
+
getPlayerHook() - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
+
Retrieves how the server packets are read.
+
+
getPlayerHookInstance(Player) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
+
Used to construct a player hook.
+
+
getPlugin() - Method in class com.comphenix.protocol.events.PacketAdapter
+
 
+
getPlugin() - Method in interface com.comphenix.protocol.events.PacketListener
+
+
Retrieve the plugin that created list packet listener.
+
+
getPluginName(PacketListener) - Static method in class com.comphenix.protocol.events.PacketAdapter
+
+
Retrieves the name of the plugin that has been associated with the listener.
+
+
getPrimitiveType(Class) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Gets the class for the primitive type corresponding to the primitive wrapper class given.
+
+
getPrimitiveWrapper(Class) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Gets the wrapper object class for the given primitive type class.
+
+
getPriority() - Method in class com.comphenix.protocol.events.ListeningWhitelist
+
+
Retrieve the priority in the execution order of the packet listener.
+
+
getProtocolManager() - Static method in class com.comphenix.protocol.ProtocolLibrary
+
+
Retrieves the packet protocol manager.
+
+
getReceivingFilters() - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
getReceivingFilters() - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Retrieves a immutable set containing the ID of the recieved client packets that will be observed by listeners.
+
+
getReceivingWhitelist() - Method in class com.comphenix.protocol.events.PacketAdapter
+
 
+
getReceivingWhitelist() - Method in interface com.comphenix.protocol.events.PacketListener
+
+
Retrieve which packets sent by the client this listener will observe.
+
+
getRegistered() - Method in class com.comphenix.protocol.reflect.instances.DefaultInstances
+
+
Retrieves a immutable list of every default object providers that generates instances.
+
+
getRegistry() - Static method in class com.comphenix.protocol.Packets.Client
+
+
A registry that parses between names and packet IDs.
+
+
getRegistry() - Static method in class com.comphenix.protocol.Packets.Server
+
+
A registry that parses between names and packet IDs.
+
+
getSendingFilters() - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
getSendingFilters() - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Retrieves a immutable set containing the ID of the sent server packets that will be observed by listeners.
+
+
getSendingWhitelist() - Method in class com.comphenix.protocol.events.PacketAdapter
+
 
+
getSendingWhitelist() - Method in interface com.comphenix.protocol.events.PacketListener
+
+
Retrieve which packets sent by the server this listener will observe.
+
+
getServerRegistry() - Static method in class com.comphenix.protocol.Packets
+
+
A registry that parses between names and packet IDs.
+
+
getSlot() - Method in enum com.comphenix.protocol.events.ListenerPriority
+
+
A low slot represents a low priority.
+
+
getSource() - Method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves the underlying class.
+
+
getSpecific(Object) - Method in interface com.comphenix.protocol.reflect.EquivalentConverter
+
 
+
getSpecificModifier(Class<T>) - Method in class com.comphenix.protocol.events.PacketContainer
+
+
Retrieves a read/write structure for every field with the given type.
+
+
getSpecificType() - Method in interface com.comphenix.protocol.reflect.EquivalentConverter
+
 
+
getStatistics() - Method in class com.comphenix.protocol.ProtocolLibrary
+
+
Retrieve the metrics instance used to measure users of this library.
+
+
getStringDefault() - Method in class com.comphenix.protocol.reflect.instances.PrimitiveGenerator
+
+
Retrieve the string default.
+
+
getStructure(int) - Static method in class com.comphenix.protocol.injector.StructureCache
+
+
Retrieve a cached structure modifier for the given packet id.
+
+
getTarget() - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Retrieves the object we're currently modifying.
+
+
getTargetType() - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Retrieves the type of the object we're modifying.
+
+
getUnwrappers() - Method in class com.comphenix.protocol.injector.PacketConstructor
+
 
+
getValue() - Method in class com.comphenix.protocol.reflect.VolatileField
+
+
Retrieves the current field value.
+
+
getValues() - Method in class com.comphenix.protocol.reflect.StructureModifier
+
+
Retrieve every value stored in the fields of the current type.
+
+
getWhitelist() - Method in class com.comphenix.protocol.events.ListeningWhitelist
+
+
Retrieves the list of packets that will be observed by the listeners.
+
+
getWorldTypeModifier() - Method in class com.comphenix.protocol.events.PacketContainer
+
+
Retrieves a read/write structure for the world type enum.
+
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-8.html b/Javadoc/index-files/index-8.html new file mode 100644 index 00000000..2bdb7463 --- /dev/null +++ b/Javadoc/index-files/index-8.html @@ -0,0 +1,128 @@ + + + + + +H-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

H

+
+
handle - Variable in class com.comphenix.protocol.events.PacketContainer
+
 
+
HANDSHAKE - Static variable in class com.comphenix.protocol.Packets.Client
+
 
+
hashCode() - Method in class com.comphenix.protocol.events.ListeningWhitelist
+
 
+
hasMember(int) - Method in class com.comphenix.protocol.reflect.IntEnum
+
+
Determines whether or not the given member exists.
+
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index-files/index-9.html b/Javadoc/index-files/index-9.html new file mode 100644 index 00000000..0c739580 --- /dev/null +++ b/Javadoc/index-files/index-9.html @@ -0,0 +1,269 @@ + + + + + +I-Index + + + + + + + +
+ + + + + +
+ + +
A B C D E F G H I K L M N O P R S T U V W  + + +

I

+
+
id - Variable in class com.comphenix.protocol.events.PacketContainer
+
 
+
initializePlayers(Player[]) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
+
Initialize the packet injection for every player.
+
+
injectPlayer(Player) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
+
Initialize a player hook, allowing us to read server packets.
+
+
INSTANCE - Static variable in class com.comphenix.protocol.reflect.instances.CollectionGenerator
+
+
Shared instance of this generator.
+
+
INSTANCE - Static variable in class com.comphenix.protocol.reflect.instances.PrimitiveGenerator
+
+
Shared instance of this generator.
+
+
InstanceProvider - Interface in com.comphenix.protocol.reflect.instances
+
+
Represents a type generator for specific types.
+
+
IntEnum - Class in com.comphenix.protocol.reflect
+
+
Represents a traditional int field enum.
+
+
IntEnum() - Constructor for class com.comphenix.protocol.reflect.IntEnum
+
+
Registers every declared integer field.
+
+
invokeExactMethod(Object, String, Object) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
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 + 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 + 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 + 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 + 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 + types.
+
+
invokeMethod(Object, String, Object) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Invoke a named method whose parameter type matches the object type.
+
+
invokeMethod(Object, String, Object[]) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Invoke a named method whose parameter type matches the object type.
+
+
invokeMethod(Object, String, Object[], Class[]) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Invoke a named method whose parameter type matches the object type.
+
+
invokePacketRecieving(Logger, PacketEvent) - Method in class com.comphenix.protocol.injector.ConcurrentListenerMultimap
+
+
Invokes the given packet event for every registered listener.
+
+
invokePacketRecieving(PacketEvent) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
+
Invokes the given packet event for every registered listener.
+
+
invokePacketSending(Logger, PacketEvent) - Method in class com.comphenix.protocol.injector.ConcurrentListenerMultimap
+
+
Invokes the given packet event for every registered listener.
+
+
invokePacketSending(PacketEvent) - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
+
Invokes the given packet event for every registered listener.
+
+
invokeStaticMethod(Class, String, Object) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Invoke a named static method whose parameter type matches the object type.
+
+
invokeStaticMethod(Class, String, Object[]) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Invoke a named static method whose parameter type matches the object type.
+
+
invokeStaticMethod(Class, String, Object[], Class[]) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Invoke a named static method whose parameter type matches the object type.
+
+
isAssignmentCompatible(Class, Class) - Static method in class com.comphenix.protocol.reflect.MethodUtils
+
+
Determine whether a type can be used as a parameter in a method invocation.
+
+
isCancelled() - Method in class com.comphenix.protocol.events.PacketEvent
+
+
Retrieves whether or not the packet should be cancelled.
+
+
isClosed() - Method in class com.comphenix.protocol.injector.PacketFilterManager
+
 
+
isClosed() - Method in interface com.comphenix.protocol.ProtocolManager
+
+
Determines whether or not this protocol mananger has been disabled.
+
+
isEmpty() - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
 
+
isEnabled() - Method in class com.comphenix.protocol.events.ListeningWhitelist
+
+
Whether or not this whitelist has any enabled packets.
+
+
isForceAccess() - Method in class com.comphenix.protocol.reflect.FuzzyReflection
+
+
Retrieves whether or not not to override any scope restrictions.
+
+
isForceAccess() - Method in class com.comphenix.protocol.reflect.VolatileField
+
+
Retrieves whether or not not to override any scope restrictions.
+
+
isForClient() - Method in enum com.comphenix.protocol.events.ConnectionSide
+
 
+
isForServer() - Method in enum com.comphenix.protocol.events.ConnectionSide
+
 
+
isPrimitive(Type) - Static method in class com.comphenix.protocol.reflect.PrimitiveUtils
+
+
Returns true if this type is a primitive.
+
+
isServerPacket() - Method in class com.comphenix.protocol.events.PacketEvent
+
+
Whether or not this packet was created by the server.
+
+
isWrapperType(Type) - Static method in class com.comphenix.protocol.reflect.PrimitiveUtils
+
+
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
+
 
+
iterator() - Method in class com.comphenix.protocol.concurrency.SortedCopyOnWriteArray
+
+
Retrieves an iterator over the elements in the given list.
+
+
+A B C D E F G H I K L M N O P R S T U V W 
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/index.html b/Javadoc/index.html new file mode 100644 index 00000000..d43b271d --- /dev/null +++ b/Javadoc/index.html @@ -0,0 +1,33 @@ + + + + + +Generated Documentation (Untitled) + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/Javadoc/overview-frame.html b/Javadoc/overview-frame.html new file mode 100644 index 00000000..65ce143f --- /dev/null +++ b/Javadoc/overview-frame.html @@ -0,0 +1,26 @@ + + + + + +Overview List + + + + +
All Classes
+
+

Packages

+ +
+

 

+ + diff --git a/Javadoc/overview-summary.html b/Javadoc/overview-summary.html new file mode 100644 index 00000000..0f26239e --- /dev/null +++ b/Javadoc/overview-summary.html @@ -0,0 +1,150 @@ + + + + + +Overview + + + + + + + +
+ + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages 
PackageDescription
com.comphenix.protocol 
com.comphenix.protocol.concurrency 
com.comphenix.protocol.events 
com.comphenix.protocol.injector 
com.comphenix.protocol.metrics 
com.comphenix.protocol.reflect 
com.comphenix.protocol.reflect.instances 
+
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/overview-tree.html b/Javadoc/overview-tree.html new file mode 100644 index 00000000..e88eb308 --- /dev/null +++ b/Javadoc/overview-tree.html @@ -0,0 +1,207 @@ + + + + + +Class Hierarchy + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/package-list b/Javadoc/package-list new file mode 100644 index 00000000..4dfc3ea8 --- /dev/null +++ b/Javadoc/package-list @@ -0,0 +1,7 @@ +com.comphenix.protocol +com.comphenix.protocol.concurrency +com.comphenix.protocol.events +com.comphenix.protocol.injector +com.comphenix.protocol.metrics +com.comphenix.protocol.reflect +com.comphenix.protocol.reflect.instances diff --git a/Javadoc/resources/background.gif b/Javadoc/resources/background.gif new file mode 100644 index 0000000000000000000000000000000000000000..f471940fde2f39ef8943a6af9569bcf986b1579b GIT binary patch literal 2313 zcmV+k3HJ6!Nk%w1VKM-40OkMy00030|NlK(aXwsfKV5S}VtGJbbVOr%L0@%CZH88Q zl{{NzcR^uxNo<2iYk@pjY)*5FJz8x~bc{)B zfk z+1T6M-s9WdW8dcJ-wO*3@9+W*5AY543-j^$^!EPz_4eHZ2#>)41`h@dc!2OAgN6$a zCS2I?;lqgx6IR4nkpTe;1RN0f=zxMq2O=q`94V5d$&e>Unta)^<;;^G3>e7yp=ZvW z6DIW3xpSvaogXF?_4%`@(V;s}NR^5J!3hrtJV@1QRV&r5S*L!zYE|rss${iFkg&!? zTN5V#)~=bmMorwgZsEpdOE)iExo+FO-8;8Kga{=HbSQCnF=E6W3?o*|ID%uwi5**> zJXy127Y9m+=HQ|PhXWi+xNwoWv}n_%Pq%(e+H~mGqhq5kv4Mo|-n~g|7!F*xZ{xv< zCpXS~dGg^IGK?4@J-T%b(XnUHFul6n<@2&4)zzyO2) z3Q8`i0+UKY*`$}e9mmp;tg*))`|PsK1|hAo%u0K$vDwm4gaSkm0j{`26k#qAKmbuhxZ#cquDR>B zD{s8+&TH-uNg$C#68QG}1HMBHfrP&L@@w$F_!itRzXdCN@V|LDAu%3!IDtq1#1UV7 z#1RxvT=B(DWbCoU5l=ia$Pp`Hgb_?Mp@hmtxZDI2N-)v#$}PXVvdm1d>@v(v`0TUJ zF)Pu89(q`zv=w^nVTIF3@3BYIPA}c`(@ZCAwbNBEt@PDUKe5CTR8aB66IE1!w%Amt zy+jpcn~k>GZpVFg+H6x{_uOksvBlq0OyT$6TyQZ37k(cOxZr|JEx1sGm<(M9gH z-~PMqyn|tT=))UN`|-FFFUA#KToK0fUOaz=7}Z~KeHhVC&%O27cTfHQ^WBU8z4p&T zp#>D|V}XShTD;Hx745Iz{`>K-Z$A|7!*Boo{mY;G21vjH8t{M!OrQc6$iN0V@PQDF zpadsK!3tXNf*8!81~qnXWuHZ)kytd=_y+ADWvw31ouV;CdZ#ya*(l7-A-C-Y^+iit8O zBy3*`Ls$|5Hn4m_^I^|C7{m7EFn|5vTk;|oywIgCc9Bb*=L+Y$)M>9GC<|HGs@6NB zHLY%03!dDf=eDRt2O6lVSFRcsuWZEwU?=z$CZ0W?#VJfdN>HG(l%oKpyiftJc|Y)xkjSJYCrQal-0PC~()T9xwF!Jf zVi1UA#3BBbh(i8r5&v#Pz!cF41KjbCc?4u2@@Q~oKLirt2TM30;y6b+zyX2`Yl9u; z`0$3;v0-YUp&7NdPT#q`cZlbij$jvbRk6R>8g*>}*b9E+WDwmpHAAxYzyT aU_pX{M6b8i>#Dq3onfZy}_nli%!Q$ZV%e&!tN2 zX3B0NWXQ443Eo1rUP86rLU>O>oTp%wt3Z{Tz&P*)Iraq^_@X;RtUFY!JxH|4U!>kw zxXwqo&R3Y=EsXaR!ng@y+y$%L1P3FZ4@N!j3m5MW74HcC->_JFuvlxLXiI=-OQ2|@ zpGc#>2-aN)<1RE9^`bB0`65VSK2>5m>CHs^YZCC)NX*NfbeT1%)Cxpu2_(6cCbLvjLY`hf1%*q}QO*%V4SfOu5Nqg~`-+(-76= za<`RA&(qDB^S!nIS^od5|Nk$KPXD8(qSB!f`M*{E?A^&yOW$08V^iNPK!%UNJ-@xmz>`pG2_%4I3QWk4UdtwP!GH$C%mo2K|$Ap=_)Y!#O($1@ohsUtR1k%wI*) z4*X&g==oWh`j{uP=HFm;Ye>0>UbDdtSp^~MaQ!L9I#)Ga?q}{@T#|qec*FkMLDenm zj^sCgk!^O^3o|vG!~2$$$7`C#4Ry zdQ!tui+J1*HyavK+4{`r+zvYHj9IsRt~@uEBOreWS8~2rXAR3!|7aTdr+x4|>@$Az z)b1t$gSB~6USxpfLmy^|_J_eNt*PI=ScO1SVH895N#`ef%IOh&o-2GIjK1s-JzkyZ z@r7O%hChz}kMHCM@Wqi^R-9t&%Fh^#9dVB0%ej@$=OjXA%XZdzCXf}c>SW26_z-Te z5b{}XWg&rELM=N*%aimp)k04t2c+`WAS>ZFIPWKvtyOI))HzpRA!T!b{tv?4NzF1v zNlP%#{&p@lFFEKvcroMAsI)mq?&`!e%l+-y&j9ZqhN}oG&dB=Pw09r+Q%m0cMujS# zs$a7!9VH`CC7k{!bV(J`rm%Jpj6&nLtWhPcy$onn$8G#ZdD9hxO<9k67Ya>K_7W~3 z&KYf14fq<{qHA7u6;>AOcomhdg?ianjr9uINt}*7w?g%z9{Q`(qRo@hDwSpGmxz&h&>%G%T(URL~=c>C{>y$K?+wLFp zy*M1@FTUKYV>8DeDIAIKM+!T5c-k&C4?Y~y^E zQCIc-=9~DiPtfVZB=_c3`qH3h|NXd^BcOQG`funSe)i5!NoA_r{b6PwzSDIXG+!(F z9CqJgo&~#7^VZHWj{u23q+NDCHn}GeWDC*(SW%{f4WMtP3l2jsO7*M)EX)#NLlsNnU4q@#jn0r#rsWsf^ngE0&ambG1f;Rj zfOk#_>1|25Z%?iI{0Yv8)DQfk>m1td?~}m0N%^k^u%EuUCc#ItmlY|epQ3YLWehYw zRU0qpPb#X&WU*UOU8et(s8x~WyYWYsgJCF+;U6@*nICY8)dk}IG+(#_Bz8zURd3HZ6qPE68U1%S{wL0 z;K{PDw2iRFIGG?(UiE9kT9?siuv4O{ z`dX2-eiXU3N)H2nT4V=AO^~J}sw+gr{&~qx%$$wlMv_JCWAMfcjYl}*Cfcf!adOY8 z8oLmJ{%49e+nLiVo#H9}wRk?UCzDz^>9TDxreVHzl~R*)?YU>Uu;J2eQ27O5`&X^8 z`94{)YWJQa#l0Fbz0N6B>j&8J;<%VuG6OYM9&QIdtueWjI3X;*dEtGiF@1AcvN4U> zG5SXIEXxB>)!mtQOztJLyeF78S*kLiU-!>PtQ_s~OMl~&y(hVVe$A5 zwo}E-DJ6${QP75?LsQ}Wl@MXwXMT4d>|?rD!g?jE>J^N*y;X}5FLe%d0_ zZ>eIBK6l@jkfw{p_YiDP;MS{jww{%j#?rk2z1J!HqE;Vd!TrCl_7UPef8;edI}wD6 zT&12Bxj&q}d4%$GHq+$~UYtWv`wI9k`89oKkCEK_E;-+O)(rhThjOM|kXDn{!W1Lo z`_?yQv=lp=-w()R<=0&c5%RWHY_fw@qb}uwFuPAGkl~@Kis}eE%MY@~6ZyWcF+llM zGyK`)(vn1F%%z=W7-Y=1$`w0Mv+-|#d};%JjCmw)Y1hOxwA|{}P%6LS4X`jQCGh`mR@=hGrr|cXa^Ipj;Mh)6mTqd1s_HmP0IxXT!w7YhoIHT>Hm#!;c@|L9OjV zsTlHE{Z;HWeM9^tPm-`|&nnl$%DRtNG1~?npUvgKPwKlaccEe4q!7YU3zykJnu6Sr z()LMXs_)^~u-ds7+wMff)RAJF?2?1H`_wDnt%MssYeB5;q~ojgVm6OHA6B>FG2erv z8&`|6<`=!EPKR^8Qlp5MiKwfxy4D`mN> ze$RKh_6*YJd4y0nnUZvwN%iY&^9xk@cM|5g#pZkc#N*(PH?^w&?ilTDMXFcd0`5!E zvgHS`=Lc|~1aO=L@L~eE*aP{90lc7qXY7GOs)3JH14T{(`K1D%tpvUT1-?F^1d4_S zJ#7yXkP3Q37bJlRQfv=mV-J3B8O*m5B%L3uW)S>|Jwy`|s6iK`sv0Z-3NcU(0knrG z5ChFXA@A9PUSdLI+(VU!!J1Mbw!~0VP^jZci2X|Nx0BF!24ObrAr>b=QtlyN4TAhn z!mQncJm~^m4MIafVLt_ewDUtO+e5w*!`(6A&H^F7i9s4t5&uBpNvh$nlTZjqTM5krNRRQ zqP)VR!|9@H>7qN_!+-)&_9s!^;gOvy5s~iEB&qP8{77&2NJMzZcsnJgSt_bYDzYU% zxQ#uuk3D*e7_*d5^?HW(^(WxICGf-mcmM((VStzIz%zFsm0;ZI3h=5OciJ#a%7I(IeGbFv+PP^?^sKBPrRBl<+qK^o%3fi=L9`la>-l4~p|hzAl~W zf=%(|NHgF7r5dJD+Cf08q-c(m;Epsldaz4cqHzTHT>)4xEe(cE0i~tf{Y0xs_1~Kv z+BYQ-TpEOch13;5YC9nHYEXhSv{ew=LV~nQL%UBQEgaDL2m?9u~v zEQmOvM=aB)Z$+eE38rs%AZR_)4>@2raqwH#Fji#xoLc&PS_TU^W8W(M0GqLdO~1yF z{sfHZ_sC#FX58(}d>RSkKZCz8%D7{cC3Z$Zh@52{31&V*W-@s~Z<8~aBeNcNW?e&O zsR(7fHOf}B&fsRqdZ(WK1e~s*o^uD6{YX9QJvqyWAqQXt*E>r$V94YK=X@8+{1cg> z*_i`a%alCJvbD~lCg&Q1Gk=|BzY)sejf9EHJ{s7lu4?ExCWR3jgTiET;exy{sW!Mg zuj*_YOf0@ScN~X0$7V6&KpL172rf|rA8?K<2+GelXw)NUk#@b4aT5MO%1ip4*ym}B-JI__S1R?CK z<4eW~bH;@H@tR55x}&JNSw_NvEPk)6E>XDt7*)4sgWuw+_vNZzmaS(tsi(57zcjA9 z@~XcHtzYq~IX|z*Md9mh>W~`sk3<^s7;EmyH4wcTdAo5NkUA2ofeG69{Gx7#i_*lt zQ7;N@xEo#nNRj&SbDHNnP0w#OE0{DZ$~7ySG%IN~zwd5Vu4&dnH>*OMb>&*VL^tbA zG;7y1t9dsYU$p3pw0x6mwGe6fjBYWsZ8e3q8f~-~cefgHxBangajI$kv(c*W-DZGp zbM$UgnP{_MYPXYX|6$u^deIhE(-xuGX2RVXqS+o~(iSV%;ZW1=Zqkut(r&xak^pT> zsp*I@X|-eOd^gb+sM(%3(E$|c47Y91mTU99Xe;4vFOTl5gmwVB+fvc3n2pwK?~Xd# zwrY{?CUj@~Msr?wXU0WKv2A$hq z`$V^gNq4(<*C=;4e4}$*uIC$5&uUHkM08J~N$>VV*VpdmLCuc!?!J9=-)VH;fo9)| zNN4m#^Kb9|`RF!^ZAT-z=bC8$do8~Tjc^o-aQjyc2(TW*d50E1#NW0pKb^~tf&OUlS+W}>0!m@!~1 z&TdSLhm`0u99c-z=oxYL8IFaGCDoFwFUP!1iJ%xF1UC4hhv*VR2451Pc0+kQGC)39C5 za81oV=$+xzZNYhn=RB-CTZ>Bevj)A3mi9|OS(dcy=N#Zm=Dza|z4Jd<=3IQ2CB>FiwH7{4Ej#+oa>M67 z!56)Km&2xJ|H7B;%~rJDuJ{rbZQiaX*e^$DEt~T$#h9(y#jg6>uX?boq!N}Q;EQth zYo1rjc15dETPw~*Ymu=lreoE9g^wb)ZcRe1yp1(Eo(rmqUYZXOU$BC_| zX{{&qE?E06wXm#v#cpKwE)jaydSaI`TkCCClr_lKMzPkyFT!R%VRn&sZSrchKx&4e~pJQcfViQxxl=T=7}#gYz7Pvoh`T#Jbab%2A2m zxh?A<`}A?8_GumBEcL;$x%gQb@PZ(If%ZE~D?ax#Km4a~+GV~!;Bb~qxxh@HHc|H6 zr%$^c9Dw~UQFWJv+81rCXS1vqqLfQ~-BtO63xCArGVA4T-}xPXYGHqB5h^+n5%$24 z(BROpi13J@*qFfR$oRMHel`=(zy zovs-UKHD3VkJ?hVeq!aA+8Fh4+NIlFhcC~UrR{4I#}K*u&z%68+P1*=q0B1r*2MY> z!9gYs*vlTO5v#8S>c#3goFmp>3iVKdU)NkjNV(s7tO4Wq?2M}o5Cj-*7;S=fEshOA zR*4$dm{ROvUamG%xL_tSW6}U$Nl=@91T;nC11o-iIVyVrfkd) zTCp;^tOy|_kuOFV$Nn=$AQJO9;&sZ&eDs^!r*m;Hw!)vpO1vcfj2EV{dJ?7ap0tq6 z$SwUVM*Vt+MS_`;bas-svPV|3POQi8G~?f^KOx4hg1He+Wd*s3Hl1{TfJS-+zv6vc zPoKiwr?7wECbub(IdB)9f_!kmUjBR*KY_z4E8_QA9xSr#G&@i5y^H`jB^I{|akh>W z%Cn3luOVY|8P>u>e^~#{$kmgX&-q>k{#pFbm2({(rtG<%nb0UCQ0%{Cy`F&~7}*we z@Of>ND_)V&XwN_+n~KjVorUQWZ*B6cld7ymQl{;rwlHl34K#}2YWxE+4CX@P&u6AfCda`&ZT1MOY69e-L@gNcAvwx8%1Z7lB4zc=_Cpt~&s ze%?;){1DB(PSK!^za967qF?lIjB~&06}Lf`cgh2qUiI^|$-VCTNE=hp&Ij}^A9&|* zQQrSqo3gn#_=z9j(y6f@T|OkJYv(fjwpz}$*U$|nLH2F zPNMuTS4g8 z*^hOlRh6~Mk}58;d477R>F^~aLO$dOXmhA*6zwIaHK()t2zKjo?j^NOJbh_=+71xg zO{Mgp7x?Z-1MKzoQ<+V2g#|e}|JawOPJZBL{o~PYdtWDX?jl##!Aiq|w>)vGJLipp zBK1xGhcvgSsQ;rn>+`>UmxlID{<~}7{y>SO^cyktN^Fsz!Z|B4?p*RKQG*8}SYBt{ zuFO{vJ?jgL{gUzYsnv(io}c0vlCp#*1vE?}KL^UZ&VF^TK+D;40CxX%j);%dCt;Z{ zAeMXC9JPWvKGwsCxx4w2iv_wNGG8l16AVI93rmc^c1>r(P||YE zpXa+=-&k995hfykL^J5S&vJF^ljR&`FE#ppNMM3%Omc!F)Mn{{&Ip#)JegbEJxud2 zn`wDVB~DMii5|H%m~51YeU1juNG3!+&?*uC#q@)z8q~`4yEL5I8}PtyA1IZ=52P$x zX)KhZt z7czUXBsy-8d`GVQ`90`wIh(Xt7v5j7h0t&ET~2M!Tb~4rN-xtK@8@mB*c(6QTwOS- z%9445_WY|cfm4?$nX$72&{~^mu}an^x^Da%=UU6YI;ur3+9L6I>raW5!=-Nzy(F2Z zwZlg7aM3NN5b{K|FB>s4R}|&Lr32_Ys{wwkECxo|rV@;5aHB25iUs7(6@dDpjN{Y%?C~UGp>*Q}K?)KKk64 zAn;@-dER}QG0L${jQ1cR75eM3-~ZTltTQ8%sm9x4Y`ve@ekMuvpA#Rh51@s6;6^&Q z!&M7^b%cea7FlZkPV9}@!bPBBfB&~XvGlE2T7V?IpM~OBmuK;OSt{~N`rL5c_I^de z9n*=@p|l;d`b_YIn8Aem1t7pp0=2-MCTIcJHlY z6x+mNLgi{JpwP)y(yzAFL2A#>bI&EwZE`PGvd*FQ!rx~6bUN&+Ij3)L;=595L#G;m8*^e?ap1`J5w7-q)*iUT_W9w8 z&xS-`i++HpWzY-a-)CWd0(pLW$A85P{Dy9r-=uPekNpN^yA}pJ7yWTZ>3iw4d6+IK zF%1XXkGcJm{0*vhSG5R1ySW;jctk9O==1-Mk?=Bl<{HE1p_@tx1s^+GoczYxj#B=i=kwQvEPrOt`<4W*pJw zbNjEqpr7B|Llc%m{V*QssV)im;pb00LUob=yFaU4`P_}ywU zt*QZl-bUsmh@L&zQaX4uHL&7YD(BOb9hH;;y;O-b-_O$4EFi1vCrMlz`dN|u?}HNO^aFQV{UZg_yy%nf>IXpulip!cR8|vNu7P*; zQye@}Qmj%(TB6`5E=c~w=LITF266XJ6X5xA7!OM1SE=~N*o3EP5Qqx!W<_+EMSLGo zqkC18AQ=0AK9=hgGQtrTovYc5^?Z^RLX?hlO-j&e1MXTTbfm>MS^=}!p>C>icUKdZ zBcNOb(6IJ!kq*e7N8Fx!!kPyn+2B2^2hd00+W^PUA&+S63jFE)bP5Tv+L5l~n(pu? zbeO|+K{{?pEow3?j0+dGVu)a6(0r{1Uj7{3 zxSsZ|BdMk>1-S}-;+`pk{Q5>H=tLRx+YqeenaSRsEX@gtPzz>j1A9g!C9kGtspY(- z%YL>NkVDE2z@}*;Q{=&5)yS;NupAmmibGUE4qte7aY6PcnXJgw>}ad(SW;@HtNurF ziV0_yHz=;Di%Tki6DW^tjkL`t%Ktct(ay zvuAOYoCu!Pm~@P5CIjk$bp`_iv{^l*Au{fB8mJK1>Macv?GL)**8*+JNvySIH5Y7i#1;!%NT!efc z;Z0*AOM&1VpR+6wIQxBM{xf`8T1V@#e<#QL}=YRwMkWG8%1(Fgj{iX)N zup{Txko(DqJWf=#Oi?Z!nra-?C{);TP`w|4>L+EKx1&P3swX<*#_50F!lD_$nQyuK??!UwA-{y)^QmMxoK1xIJ~uML{u;5!Z5tQyEL>;KaUd!_9FP zl2$QOI6V1`QdF|8gkdZsSpUqCjSBu(1H)r*vL#PEy)@Px>5TIk7_9o#Bj zzD&<1_k(ejk%qO6ak=GMmG5b7LTAA^KKq-Ey#z8(2wy2;Ot^oZI(MG@)~iY$RAnJt zu`ioyvR?Vws_tuK9hDqmel+)bP0kyxJV{7t=&3{b(@Hs1fs$9n45aq)IKknZa2H*7 z^P-ZDyOMdMj&-9{(-?dqo5I3Gy=K$!L%q>3^0N~o^2i0^_@^2nQv>S4B&=5_8^a^V zaY!NjyA5QgO&r#^CJcp&=!))MZ*CC&hvLEzWU*!IO=aYo{_yG+53H$XOAIQWnG`uD zLuuwTY6e8N^m5^AHQa}Y5Z#SdbEY;+x{oW?g;ie4CNYomRyQd2mv^L}T!>a5<*wTh>@>Qtwp~nejn`~DcZJI+QC-xU zoxz=5z0k%1;jBrGI%Th~FQElrAPr?E-Fv9|o09dPk=?>f)jFKL8PK|;w(cVDq>YWP zEfL7RGBv|<>f4IccND3wCi*V8`>#a$FPZu&a{V`W`me+Kuf_CJ)%IV%?5ByL^#3Q{ z&uBM5|34IKI>0_Tz{5OngXe#6w*N6;;5PH%9n%56%RaWA{wJ4%515Apdj`a62bp<> zM12OuV+QZ^55ATkViO(UWgg}%9C}kb^r~=BiDyWIXZWM&kb>Q?dd$#W`4KU|2#4qh zz;sZ>ZqS5h#Kdk$&1c9AHmDUdtmHE)CqH0RIAZEE;t(^+RXF+*FlJyk;?6Vn{&MsO zZ0HwY)b4Va!F1#s^N5$-s9(&mPa*Lu4>4SxXm~l|3?PR2jB1J!Q|(4#0i$lFME^-r zA~Q(2O+PHOdcVN((R8zqi>%+yx4PA5u&+jI zZ?)Fm8m-+`n!Bnrx0PvZE7!Q)Z+NTE@K(R!nO40sZF(n~bq_b_9H`UYU#q>pPJ3UC z_UeU>J7qcy%%`ks9)BNcS^GDOn z?oKkjHNoWO1e2?M#vd12e^_AscAnLnc~-CISiYWX`D%{k^H~<37unpMYJYdSv=Om2vbAM@`Qp{{SI=yP zj6WN*eEt0G$9EPX6FU%)-ho>hWTW!yzXBIo73<0umM-=@eG&niY^` zlG(|vuCl_x(X^Fob@=i{8+M5vWf7Bz=#aHGTNA;fZQyfbfueI8Z^639n`(DI%w^-^ zl`=@!u)r~Xf920-xd$Ab+S&PJY%K0H8a_J8uN3^_!K1_NV$*e#*Y*6|)XpiW=9H`*`Xx7W%v@7{XDma1?v0a%(K6rI&1!a YpWXKgmku8Vj|K)Vje`mzEKCg608Q#dYybcN literal 0 HcmV?d00001 diff --git a/Javadoc/serialized-form.html b/Javadoc/serialized-form.html new file mode 100644 index 00000000..412178af --- /dev/null +++ b/Javadoc/serialized-form.html @@ -0,0 +1,171 @@ + + + + + +Serialized Form + + + + + + + +
+ + + + + +
+ + +
+

Serialized Form

+
+
+
    +
  • +

    Package com.comphenix.protocol.events

    +
      +
    • + + +

      Class com.comphenix.protocol.events.PacketEvent extends java.util.EventObject implements Serializable

      +
      +
      serialVersionUID:
      +
      -5360289379097430620L
      +
      +
        +
      • + + +

        Serialized Fields

        +
          +
        • +

          packet

          +
          PacketContainer packet
          +
        • +
        • +

          player

          +
          org.bukkit.entity.Player player
          +
        • +
        • +

          serverPacket

          +
          boolean serverPacket
          +
        • +
        • +

          cancel

          +
          boolean cancel
          +
        • +
        +
      • +
      +
    • +
    +
  • +
  • +

    Package com.comphenix.protocol.reflect

    + +
  • +
+
+ +
+ + + + + +
+ + + + diff --git a/Javadoc/stylesheet.css b/Javadoc/stylesheet.css new file mode 100644 index 00000000..0e0d70c1 --- /dev/null +++ b/Javadoc/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +}