Package net.minecraft.client.model
Enum Class HumanoidModel.ArmPose
- All Implemented Interfaces:
Serializable
,Comparable<HumanoidModel.ArmPose>
,Constable
,IExtensibleEnum
- Enclosing class:
- HumanoidModel<T extends LivingEntity>
public static enum HumanoidModel.ArmPose
extends Enum<HumanoidModel.ArmPose>
implements IExtensibleEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
ArmPose
(boolean p_102896_) private
ArmPose
(boolean twoHanded, IArmPoseTransformer forgeArmPose) -
Method Summary
Modifier and TypeMethodDescription<T extends LivingEntity>
voidapplyTransform
(HumanoidModel<T> model, T entity, HumanoidArm arm) static HumanoidModel.ArmPose
create
(String name, boolean twoHanded, IArmPoseTransformer forgeArmPose) boolean
static HumanoidModel.ArmPose
Returns 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.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.minecraftforge.common.IExtensibleEnum
init
-
Enum Constant Details
-
EMPTY
-
ITEM
-
BLOCK
-
BOW_AND_ARROW
-
THROW_SPEAR
-
CROSSBOW_CHARGE
-
CROSSBOW_HOLD
-
SPYGLASS
-
TOOT_HORN
-
BRUSH
-
-
Field Details
-
twoHanded
private final boolean twoHanded -
forgeArmPose
-
-
Constructor Details
-
ArmPose
private ArmPose(boolean p_102896_) -
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() -
create
public static HumanoidModel.ArmPose create(String name, boolean twoHanded, @Nonnull IArmPoseTransformer forgeArmPose) -
applyTransform
public <T extends LivingEntity> void applyTransform(HumanoidModel<T> model, T entity, HumanoidArm arm)
-