Record Class Any
java.lang.Object
java.lang.Record
net.ntrdeal.realapi.client.render.model.condition.Any
- All Implemented Interfaces:
net.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty, net.minecraft.client.renderer.item.properties.conditional.ItemModelPropertyTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanget(net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable net.minecraft.world.entity.LivingEntity owner, int seed, net.minecraft.world.item.ItemDisplayContext displayContext) final inthashCode()Returns a hash code value for this object.List<net.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty> Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<Any> type()
-
Field Details
-
MAP_CODEC
-
-
Constructor Details
-
Any
public Any(List<net.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty> properties) Creates an instance of aAnyrecord class.- Parameters:
properties- the value for thepropertiesrecord component
-
-
Method Details
-
get
public boolean get(net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable net.minecraft.world.entity.LivingEntity owner, int seed, net.minecraft.world.item.ItemDisplayContext displayContext) - Specified by:
getin interfacenet.minecraft.client.renderer.item.properties.conditional.ItemModelPropertyTest
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
properties
public List<net.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty> properties()Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-