Enum Class HumanoidModel.ArmPose
- All Implemented Interfaces:
Serializable, Comparable<HumanoidModel.ArmPose>, Constable, IExtensibleEnum
- Enclosing class:
HumanoidModel<T extends HumanoidRenderState>
public static enum HumanoidModel.ArmPose
extends Enum<HumanoidModel.ArmPose>
implements IExtensibleEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final @Nullable IArmPoseTransformerprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateArmPose(boolean twoHanded, boolean affectsOffhandPose) privateArmPose(boolean twoHanded, boolean affectsOffhandPose, IArmPoseTransformer forgeArmPose) -
Method Summary
Modifier and TypeMethodDescriptionboolean<S extends ArmedEntityRenderState>
voidanimateUseItem(S state, PoseStack poseStack, float ticksUsingItem, HumanoidArm arm, ItemStack actualItem) <T extends HumanoidRenderState>
voidapplyTransform(HumanoidModel<T> model, T entity, HumanoidArm arm) static ExtensionInfobooleanstatic HumanoidModel.ArmPoseReturns the enum constant of this class with the specified name.static HumanoidModel.ArmPose[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY
-
ITEM
-
BLOCK
-
BOW_AND_ARROW
-
THROW_TRIDENT
-
CROSSBOW_CHARGE
-
CROSSBOW_HOLD
-
SPYGLASS
-
TOOT_HORN
-
BRUSH
-
SPEAR
-
-
Field Details
-
twoHanded
private final boolean twoHanded -
affectsOffhandPose
private final boolean affectsOffhandPose -
forgeArmPose
-
-
Constructor Details
-
ArmPose
private ArmPose(boolean twoHanded, boolean affectsOffhandPose) -
ArmPose
-
-
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
-
isTwoHanded
public boolean isTwoHanded() -
affectsOffhandPose
public boolean affectsOffhandPose() -
applyTransform
public <T extends HumanoidRenderState> void applyTransform(HumanoidModel<T> model, T entity, HumanoidArm arm) -
getExtensionInfo
-
animateUseItem
public <S extends ArmedEntityRenderState> void animateUseItem(S state, PoseStack poseStack, float ticksUsingItem, HumanoidArm arm, ItemStack actualItem)
-