Record Class TrimMaterialProperty
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.item.properties.select.TrimMaterialProperty
- All Implemented Interfaces:
SelectItemModelProperty<ResourceKey<TrimMaterial>>
public record TrimMaterialProperty()
extends Record
implements SelectItemModelProperty<ResourceKey<TrimMaterial>>
-
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
<TrimMaterialProperty, ResourceKey<TrimMaterial>> static final com.mojang.serialization.Codec
<ResourceKey<TrimMaterial>> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aTrimMaterialProperty
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.get
(ItemStack p_387701_, ClientLevel p_388261_, LivingEntity p_387373_, int p_388817_, ItemDisplayContext p_386970_) 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<TrimMaterial>>
-
Field Details
-
VALUE_CODEC
-
TYPE
public static final SelectItemModelProperty.Type<TrimMaterialProperty,ResourceKey<TrimMaterial>> TYPE
-
-
Constructor Details
-
TrimMaterialProperty
public TrimMaterialProperty()Creates an instance of aTrimMaterialProperty
record class.
-
-
Method Details
-
get
@Nullable public ResourceKey<TrimMaterial> get(ItemStack p_387701_, @Nullable ClientLevel p_388261_, @Nullable LivingEntity p_387373_, int p_388817_, ItemDisplayContext p_386970_) - Specified by:
get
in interfaceSelectItemModelProperty<ResourceKey<TrimMaterial>>
-
type
- Specified by:
type
in interfaceSelectItemModelProperty<ResourceKey<TrimMaterial>>
-
valueCodec
- Specified by:
valueCodec
in interfaceSelectItemModelProperty<ResourceKey<TrimMaterial>>
-
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.
-