Record Class ExtendedView
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.item.properties.conditional.ExtendedView
- 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<ExtendedView> type()
-
Field Details
-
MAP_CODEC
-
-
Constructor Details
-
ExtendedView
public ExtendedView()Creates an instance of aExtendedViewrecord 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.
-