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 SelectItemModelProperty
SelectItemModelProperty.Type<P,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 booleanIndicates whether some other object is "equal to" this one.@Nullable ResourceKey<Level> get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) final inthashCode()Returns a hash code value for this object.final StringtoString()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 aContextDimensionrecord class.
-
-
Method Details
-
get
public @Nullable ResourceKey<Level> get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) - Specified by:
getin interfaceSelectItemModelProperty<ResourceKey<Level>>
-
type
- Specified by:
typein interfaceSelectItemModelProperty<ResourceKey<Level>>
-
valueCodec
- Specified by:
valueCodecin interfaceSelectItemModelProperty<ResourceKey<Level>>
-
toString
-
hashCode
-
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.
-