Record Class FirstPerson
java.lang.Object
java.lang.Record
net.ntrdeal.realapi.client.render.FirstPerson
- All Implemented Interfaces:
net.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty, net.minecraft.client.renderer.item.properties.conditional.ItemModelPropertyTest
public record FirstPerson()
extends Record
implements net.minecraft.client.renderer.item.properties.conditional.ConditionalItemModelProperty
-
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.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
-
FirstPerson
public FirstPerson()Creates an instance of aFirstPersonrecord class.
-
-
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
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.
-