Package net.minecraft.client.render.item
Enum Class HeldItemRenderer.HandRenderType
java.lang.Object
java.lang.Enum<HeldItemRenderer.HandRenderType>
net.minecraft.client.render.item.HeldItemRenderer.HandRenderType
- All Implemented Interfaces:
Serializable
,Comparable<HeldItemRenderer.HandRenderType>
,Constable
- Enclosing class:
HeldItemRenderer
@Environment(CLIENT)
static enum HeldItemRenderer.HandRenderType
extends Enum<HeldItemRenderer.HandRenderType>
- Mappings:
Namespace Name official ezo$a
intermediary net/minecraft/class_759$class_5773
named net/minecraft/client/render/item/HeldItemRenderer$HandRenderType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean
(package private) final boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
HandRenderType
(boolean renderMainHand, boolean renderOffHand) -
Method Summary
Modifier and TypeMethodDescriptionshouldOnlyRender
(Hand hand) Returns the enum constant of this class with the specified name.static HeldItemRenderer.HandRenderType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RENDER_BOTH_HANDS
- Mappings:
Namespace Name Mixin selector official a
Lezo$a;a:Lezo$a;
intermediary field_28384
Lnet/minecraft/class_759$class_5773;field_28384:Lnet/minecraft/class_759$class_5773;
named RENDER_BOTH_HANDS
Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;RENDER_BOTH_HANDS:Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;
-
RENDER_MAIN_HAND_ONLY
- Mappings:
Namespace Name Mixin selector official b
Lezo$a;b:Lezo$a;
intermediary field_28385
Lnet/minecraft/class_759$class_5773;field_28385:Lnet/minecraft/class_759$class_5773;
named RENDER_MAIN_HAND_ONLY
Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;RENDER_MAIN_HAND_ONLY:Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;
-
RENDER_OFF_HAND_ONLY
- Mappings:
Namespace Name Mixin selector official c
Lezo$a;c:Lezo$a;
intermediary field_28386
Lnet/minecraft/class_759$class_5773;field_28386:Lnet/minecraft/class_759$class_5773;
named RENDER_OFF_HAND_ONLY
Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;RENDER_OFF_HAND_ONLY:Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;
-
-
Field Details
-
renderMainHand
final boolean renderMainHand- Mappings:
Namespace Name Mixin selector official d
Lezo$a;d:Z
intermediary field_28387
Lnet/minecraft/class_759$class_5773;field_28387:Z
named renderMainHand
Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;renderMainHand:Z
-
renderOffHand
final boolean renderOffHand- Mappings:
Namespace Name Mixin selector official e
Lezo$a;e:Z
intermediary field_28388
Lnet/minecraft/class_759$class_5773;field_28388:Z
named renderOffHand
Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;renderOffHand:Z
-
-
Constructor Details
-
HandRenderType
private HandRenderType(boolean renderMainHand, boolean renderOffHand) - Mappings:
Namespace Name Mixin selector official <init>
Lezo$a;<init>(Ljava/lang/String;IZZ)V
intermediary <init>
Lnet/minecraft/class_759$class_5773;<init>(Ljava/lang/String;IZZ)V
named <init>
Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;<init>(Ljava/lang/String;IZZ)V
-
-
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
-
shouldOnlyRender
- Mappings:
Namespace Name Mixin selector official a
Lezo$a;a(Lbai;)Lezo$a;
intermediary method_33305
Lnet/minecraft/class_759$class_5773;method_33305(Lnet/minecraft/class_1268;)Lnet/minecraft/class_759$class_5773;
named shouldOnlyRender
Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;shouldOnlyRender(Lnet/minecraft/util/Hand;)Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;
-