Package net.minecraft.world.item
Enum Class ItemDisplayContext
- All Implemented Interfaces:
- Serializable,- Comparable<ItemDisplayContext>,- Constable,- StringRepresentable,- IExtensibleEnum
public enum ItemDisplayContext
extends Enum<ItemDisplayContext>
implements StringRepresentable, IExtensibleEnum
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentableStringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescription
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final IForgeRegistry.AddCallback<ItemDisplayContext>static final IntFunction<ItemDisplayContext>static final com.mojang.serialization.Codec<ItemDisplayContext>private final ItemDisplayContextprivate byteprivate final booleanprivate final StringFields inherited from interface net.minecraft.util.StringRepresentablePRE_BUILT_MAP_THRESHOLD
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateItemDisplayContext(int p_270624_, String p_270851_) privateItemDisplayContext(ResourceLocation serializeName, ItemDisplayContext fallback) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic ItemDisplayContextcreate(String keyName, ResourceLocation serializedName, ItemDisplayContext fallback) fallback()booleanbytegetId()booleanisModded()static ItemDisplayContextReturns the enum constant of this class with the specified name.static ItemDisplayContext[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enumclone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface net.minecraftforge.common.IExtensibleEnuminit
- 
Enum Constant Details- 
NONE
- 
THIRD_PERSON_LEFT_HAND
- 
THIRD_PERSON_RIGHT_HAND
- 
FIRST_PERSON_LEFT_HAND
- 
FIRST_PERSON_RIGHT_HAND
- 
HEAD
- 
GUI
- 
GROUND
- 
FIXED
 
- 
- 
Field Details- 
CODEC
- 
BY_ID
- 
idprivate byte id
- 
name
- 
isModdedprivate final boolean isModded
- 
fallback
- 
ADD_CALLBACK
 
- 
- 
Constructor Details- 
ItemDisplayContext
- 
ItemDisplayContext
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getSerializedName- Specified by:
- getSerializedNamein interface- StringRepresentable
 
- 
getIdpublic byte getId()
- 
firstPersonpublic boolean firstPerson()
- 
isModdedpublic boolean isModded()
- 
fallback
- 
createpublic static ItemDisplayContext create(String keyName, ResourceLocation serializedName, @Nullable ItemDisplayContext fallback) 
 
-