Enum Class PlayerInjectHooks

java.lang.Object
java.lang.Enum<PlayerInjectHooks>
com.comphenix.protocol.injector.PlayerInjectHooks
All Implemented Interfaces:
Serializable, Comparable<PlayerInjectHooks>, java.lang.constant.Constable

public enum PlayerInjectHooks extends Enum<PlayerInjectHooks>
Sets the inject hook type. Different types allow for maximum compatibility.
Author:
Kristian
  • Enum Constant Details

    • NONE

      public static final PlayerInjectHooks NONE
      The injection hook that does nothing. Set when every other inject hook fails.
    • NETWORK_MANAGER_OBJECT

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

      Cannot intercept MapChunk packets.

    • NETWORK_HANDLER_FIELDS

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

      Cannot intercept MapChunk packets.

    • NETWORK_SERVER_OBJECT

      public static final PlayerInjectHooks NETWORK_SERVER_OBJECT
      Override the server handler object. Versatile, but a tad slower.
  • Method Details

    • values

      public static PlayerInjectHooks[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PlayerInjectHooks valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null