Record Class Broken
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.item.properties.conditional.Broken
- All Implemented Interfaces:
ConditionalItemModelProperty, ItemModelPropertyTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanget(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.com.mojang.serialization.MapCodec<Broken> type()
-
Field Details
-
MAP_CODEC
-
-
Constructor Details
-
Broken
public Broken()Creates an instance of aBrokenrecord class.
-
-
Method Details
-
get
public boolean get(ItemStack itemStack, @Nullable ClientLevel level, @Nullable LivingEntity owner, int seed, ItemDisplayContext displayContext) - Specified by:
getin interfaceItemModelPropertyTest
-
type
- Specified by:
typein interfaceConditionalItemModelProperty
-
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.
-