Record Class ItemTranslocatorPartRenderer.MovingItemSnapshot
java.lang.Object
java.lang.Record
codechicken.translocators.client.render.ItemTranslocatorPartRenderer.MovingItemSnapshot
- Enclosing class:
ItemTranslocatorPartRenderer
public static record ItemTranslocatorPartRenderer.MovingItemSnapshot(net.minecraft.client.renderer.item.ItemStackRenderState itemRenderState, int dst, double progress)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMovingItemSnapshot(net.minecraft.client.renderer.item.ItemStackRenderState itemRenderState, int dst, double progress) Creates an instance of aMovingItemSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdst()Returns the value of thedstrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.renderer.item.ItemStackRenderStateReturns the value of theitemRenderStaterecord component.doubleprogress()Returns the value of theprogressrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MovingItemSnapshot
public MovingItemSnapshot(net.minecraft.client.renderer.item.ItemStackRenderState itemRenderState, int dst, double progress) Creates an instance of aMovingItemSnapshotrecord class.- Parameters:
itemRenderState- the value for theitemRenderStaterecord componentdst- the value for thedstrecord componentprogress- the value for theprogressrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
itemRenderState
public net.minecraft.client.renderer.item.ItemStackRenderState itemRenderState()Returns the value of theitemRenderStaterecord component.- Returns:
- the value of the
itemRenderStaterecord component
-
dst
public int dst()Returns the value of thedstrecord component.- Returns:
- the value of the
dstrecord component
-
progress
public double progress()Returns the value of theprogressrecord component.- Returns:
- the value of the
progressrecord component
-