Record Class ContextDimension
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.item.properties.select.ContextDimension
- All Implemented Interfaces:
SelectItemModelProperty<ResourceKey<Level>>
public record ContextDimension()
extends Record
implements SelectItemModelProperty<ResourceKey<Level>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.renderer.item.properties.select.SelectItemModelProperty
SelectItemModelProperty.Type<P extends SelectItemModelProperty<T>,
T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SelectItemModelProperty.Type
<ContextDimension, ResourceKey<Level>> static final com.mojang.serialization.Codec
<ResourceKey<Level>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.get
(ItemStack p_390388_, ClientLevel p_390477_, LivingEntity p_390423_, int p_390520_, ItemDisplayContext p_390452_) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.type()
com.mojang.serialization.Codec
<ResourceKey<Level>>
-
Field Details
-
VALUE_CODEC
-
TYPE
-
-
Constructor Details
-
ContextDimension
public ContextDimension()Creates an instance of aContextDimension
record class.
-
-
Method Details
-
get
@Nullable public ResourceKey<Level> get(ItemStack p_390388_, @Nullable ClientLevel p_390477_, @Nullable LivingEntity p_390423_, int p_390520_, ItemDisplayContext p_390452_) - Specified by:
get
in interfaceSelectItemModelProperty<ResourceKey<Level>>
-
type
- Specified by:
type
in interfaceSelectItemModelProperty<ResourceKey<Level>>
-
valueCodec
- Specified by:
valueCodec
in interfaceSelectItemModelProperty<ResourceKey<Level>>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal.
-