Record Class BundleHasSelectedItem
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.item.properties.conditional.BundleHasSelectedItem
- All Implemented Interfaces:
ConditionalItemModelProperty, ItemModelPropertyTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<BundleHasSelectedItem> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aBundleHasSelectedItemrecord class. -
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<BundleHasSelectedItem> type()
-
Field Details
-
MAP_CODEC
-
-
Constructor Details
-
BundleHasSelectedItem
public BundleHasSelectedItem()Creates an instance of aBundleHasSelectedItemrecord 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.
-