Package com.comphenix.protocol.injector
Enum Class PlayerInjectHooks
- All Implemented Interfaces:
Serializable,Comparable<PlayerInjectHooks>,java.lang.constant.Constable
Sets the inject hook type. Different types allow for maximum compatibility.
- Author:
- Kristian
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOverride the packet queue lists in NetworkHandler.Override the network handler object itself.Override the server handler object.The injection hook that does nothing. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerInjectHooksReturns the enum constant of this class with the specified name.static PlayerInjectHooks[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The injection hook that does nothing. Set when every other inject hook fails. -
NETWORK_MANAGER_OBJECT
Override the network handler object itself. Only works in 1.3.Cannot intercept MapChunk packets.
-
NETWORK_HANDLER_FIELDS
Override the packet queue lists in NetworkHandler.Cannot intercept MapChunk packets.
-
NETWORK_SERVER_OBJECT
Override the server handler object. Versatile, but a tad slower.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-