Record Class MessageTextureItemProperty
java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.registry.items.MessageTextureItemProperty
- All Implemented Interfaces:
net.minecraft.client.renderer.item.properties.numeric.RangeSelectItemModelProperty
public record MessageTextureItemProperty()
extends Record
implements net.minecraft.client.renderer.item.properties.numeric.RangeSelectItemModelProperty
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<MessageTextureItemProperty> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aMessageTextureItemPropertyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.floatget(net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable net.minecraft.world.entity.ItemOwner owner, int seed) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<MessageTextureItemProperty> type()
-
Field Details
-
MAP_CODEC
-
-
Constructor Details
-
MessageTextureItemProperty
public MessageTextureItemProperty()Creates an instance of aMessageTextureItemPropertyrecord class.
-
-
Method Details
-
get
public float get(net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable net.minecraft.world.entity.ItemOwner owner, int seed) - Specified by:
getin interfacenet.minecraft.client.renderer.item.properties.numeric.RangeSelectItemModelProperty
-
type
- Specified by:
typein interfacenet.minecraft.client.renderer.item.properties.numeric.RangeSelectItemModelProperty
-
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.
-