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 SelectItemModelProperty
SelectItemModelProperty.Type<P,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 aTrimMaterialPropertyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable ResourceKey<TrimMaterial> 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<TrimMaterial>>
-
Field Details
-
VALUE_CODEC
-
TYPE
public static final SelectItemModelProperty.Type<TrimMaterialProperty, ResourceKey<TrimMaterial>> TYPE
-
-
Constructor Details
-
TrimMaterialProperty
public TrimMaterialProperty()Creates an instance of aTrimMaterialPropertyrecord class.
-
-
Method Details
-
get
public @Nullable ResourceKey<TrimMaterial> get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) - Specified by:
getin interfaceSelectItemModelProperty<ResourceKey<TrimMaterial>>
-
type
- Specified by:
typein interfaceSelectItemModelProperty<ResourceKey<TrimMaterial>>
-
valueCodec
- Specified by:
valueCodecin interfaceSelectItemModelProperty<ResourceKey<TrimMaterial>>
-
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.
-