Enum Class NonLegacyMethod
- All Implemented Interfaces:
Serializable
,Comparable<NonLegacyMethod>
,Constable
An enum containing various new features that might be available
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe powered minecart getFuel methodThe world get getMaxHeight() methodThe world get getMinHeight() methodThe powered minecart pushX methodThe powered minecart pushZ method -
Method Summary
Modifier and TypeMethodDescriptionInvokes this non-legacy methodboolean
Checks whether this non-legacy method is availablestatic NonLegacyMethod
Returns the enum constant of this class with the specified name.static NonLegacyMethod[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PUSH_X
The powered minecart pushX methodThis was added to Paper to change a powered minecart's x-push
-
PUSH_Z
The powered minecart pushZ methodThis was added to Paper to change a powered minecart's z-push
-
GET_WORLD_MIN
The world get getMinHeight() methodThis was added as a cause of the cave update
-
GET_WORLD_MAX
The world get getMaxHeight() methodThis was added as a cause of the cave update
-
GET_FUEL
The powered minecart getFuel methodThis was added to Paper to change a powered minecart's z-push
-
-
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
-
isImplemented
public boolean isImplemented()Checks whether this non-legacy method is available- Returns:
Whether this non-legacy method is available
-
invoke
Invokes this non-legacy method- Parameters:
object
-The object to invoke the method on
parameters
-The parameters required for the method
- Returns:
The return value of the invocation
-