Record Class HeldFishLayer.HeldFishRenderData
java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.fishentity.HeldFishLayer.HeldFishRenderData
- Enclosing class:
HeldFishLayer
public static record HeldFishLayer.HeldFishRenderData(net.minecraft.world.item.ItemStack right, net.minecraft.world.item.ItemStack left)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.util.context.ContextKey<HeldFishLayer.HeldFishRenderData> -
Constructor Summary
ConstructorsConstructorDescriptionHeldFishRenderData(net.minecraft.world.item.ItemStack right, net.minecraft.world.item.ItemStack left) Creates an instance of aHeldFishRenderDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.item.ItemStackleft()Returns the value of theleftrecord component.net.minecraft.world.item.ItemStackright()Returns the value of therightrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
KEY
-
-
Constructor Details
-
HeldFishRenderData
public HeldFishRenderData(net.minecraft.world.item.ItemStack right, net.minecraft.world.item.ItemStack left) Creates an instance of aHeldFishRenderDatarecord class.- Parameters:
right- the value for therightrecord componentleft- the value for theleftrecord component
-
-
Method Details
-
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). -
right
public net.minecraft.world.item.ItemStack right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
left
public net.minecraft.world.item.ItemStack left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-