Record Class PlayerRenderState.WaterOverlay
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.state.level.PlayerRenderState.WaterOverlay
- Enclosing class:
PlayerRenderState
public static record PlayerRenderState.WaterOverlay(int color, float uOffset, float vOffset)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWaterOverlay(int color, float uOffset, float vOffset) Creates an instance of aWaterOverlayrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.floatuOffset()Returns the value of theuOffsetrecord component.floatvOffset()Returns the value of thevOffsetrecord component.
-
Field Details
-
color
private final int colorThe field for thecolorrecord component. -
uOffset
private final float uOffsetThe field for theuOffsetrecord component. -
vOffset
private final float vOffsetThe field for thevOffsetrecord component.
-
-
Constructor Details
-
WaterOverlay
public WaterOverlay(int color, float uOffset, float vOffset) Creates an instance of aWaterOverlayrecord class.- Parameters:
color- the value for thecolorrecord componentuOffset- the value for theuOffsetrecord componentvOffset- the value for thevOffsetrecord 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 with thecomparemethod from their corresponding wrapper classes. -
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
uOffset
public float uOffset()Returns the value of theuOffsetrecord component.- Returns:
- the value of the
uOffsetrecord component
-
vOffset
public float vOffset()Returns the value of thevOffsetrecord component.- Returns:
- the value of the
vOffsetrecord component
-