Package dev.sergiferry.playernpc.api
Enum Class NPC.Pose
- All Implemented Interfaces:
Serializable
,Comparable<NPC.Pose>
,Constable
- Enclosing class:
- NPC
Set the NPCPose of the NPC with
NPC.setPose(Pose)
After setting the NPCPose you will need to NPC.update()
- Since:
- 2021.2
- See Also:
NPC.getPose()
,NPC.setPose(Pose)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe NPC will be standing on the ground, but crouching (sneaking).Deprecated.The NPC will be gliding.Deprecated.The NPC will be lying on the ground, looking up, with the arms next to the body.Deprecated.The NPC will be standing on the ground.The NPC will be lying on the ground, looking down, with the arms separated from the body. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
STANDING
The NPC will be standing on the ground.- Since:
- 2021.2
- See Also:
NPC.setPose(Pose)
,NPC.resetPose()
-
GLIDING
The NPC will be gliding.- Since:
- 2022.1
-
SLEEPING
The NPC will be lying on the ground, looking up, with the arms next to the body.- Since:
- 2021.2
- See Also:
NPC.setPose(Pose)
,NPC.setSleeping(boolean)
-
SWIMMING
The NPC will be lying on the ground, looking down, with the arms separated from the body.- Since:
- 2021.2
- See Also:
NPC.setPose(Pose)
,NPC.setSwimming(boolean)
-
SPIN_ATTACK
Deprecated.Entity is riptiding with a trident.This NPCPose does not work
- Since:
- 2022.1
-
CROUCHING
The NPC will be standing on the ground, but crouching (sneaking).- Since:
- 2021.2
- See Also:
NPC.setPose(Pose)
,NPC.setCrouching(boolean)
-
LONG_JUMPING
Deprecated.Entity is long jumping.This NPCPose does not work
- Since:
- 2022.1
-
DYING
Deprecated.Entity is dead.This NPCPose does not work
- Since:
- 2022.1
-
-
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
-
isDeprecated
public boolean isDeprecated()
-