Record Class BagOwnedModelCondition
java.lang.Object
java.lang.Record
codechicken.enderstorage.client.model.BagOwnedModelCondition
- All Implemented Interfaces:
net.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty,net.minecraft.client.renderer.item.properties.conditional.ItemModelPropertyTest
public record BagOwnedModelCondition()
extends Record
implements net.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty
Created by covers1624 on 11/1/25.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<BagOwnedModelCondition> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aBagOwnedModelConditionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanget(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable net.minecraft.world.entity.LivingEntity entity, int seed, net.minecraft.world.item.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<? extends net.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty> type()
-
Field Details
-
MAP_CODEC
-
-
Constructor Details
-
BagOwnedModelCondition
public BagOwnedModelCondition()Creates an instance of aBagOwnedModelConditionrecord class.
-
-
Method Details
-
type
public com.mojang.serialization.MapCodec<? extends net.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty> type()- Specified by:
typein interfacenet.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty
-
get
public boolean get(net.minecraft.world.item.ItemStack stack, @Nullable @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable @Nullable net.minecraft.world.entity.LivingEntity entity, int seed, net.minecraft.world.item.ItemDisplayContext displayContext) - Specified by:
getin interfacenet.minecraft.client.renderer.item.properties.conditional.ItemModelPropertyTest
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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.
-