Record Class BundleLikeHasIndexed
java.lang.Object
java.lang.Record
net.ntrdeal.realapi.client.item.stack_holder.BundleLikeHasIndexed
- All Implemented Interfaces:
net.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty, net.minecraft.client.renderer.item.properties.conditional.ItemModelPropertyTest
@Environment(CLIENT)
public record BundleLikeHasIndexed()
extends Record
implements net.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<BundleLikeHasIndexed> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aBundleLikeHasIndexedrecord 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 owner, int seed, net.minecraft.world.item.ItemDisplayContext context) 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
-
BundleLikeHasIndexed
public BundleLikeHasIndexed()Creates an instance of aBundleLikeHasIndexedrecord class.
-
-
Method Details
-
get
public boolean get(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable net.minecraft.world.entity.LivingEntity owner, int seed, net.minecraft.world.item.ItemDisplayContext context) - Specified by:
getin interfacenet.minecraft.client.renderer.item.properties.conditional.ItemModelPropertyTest
-
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
-
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.
-