Record Class PlayerRenderState.BlockOverlay
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.state.level.PlayerRenderState.BlockOverlay
- Enclosing class:
PlayerRenderState
public static record PlayerRenderState.BlockOverlay(Identifier atlasLocation, float u0, float v0, float u1, float v1)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theatlasLocationrecord component.private final floatThe field for theu0record component.private final floatThe field for theu1record component.private final floatThe field for thev0record component.private final floatThe field for thev1record component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockOverlay(Identifier atlasLocation, float u0, float v0, float u1, float v1) Creates an instance of aBlockOverlayrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theatlasLocationrecord 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.floatu0()Returns the value of theu0record component.floatu1()Returns the value of theu1record component.floatv0()Returns the value of thev0record component.floatv1()Returns the value of thev1record component.
-
Field Details
-
atlasLocation
The field for theatlasLocationrecord component. -
u0
private final float u0The field for theu0record component. -
v0
private final float v0The field for thev0record component. -
u1
private final float u1The field for theu1record component. -
v1
private final float v1The field for thev1record component.
-
-
Constructor Details
-
BlockOverlay
Creates an instance of aBlockOverlayrecord class.- Parameters:
atlasLocation- the value for theatlasLocationrecord componentu0- the value for theu0record componentv0- the value for thev0record componentu1- the value for theu1record componentv1- the value for thev1record 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
atlasLocation
Returns the value of theatlasLocationrecord component.- Returns:
- the value of the
atlasLocationrecord component
-
u0
public float u0()Returns the value of theu0record component.- Returns:
- the value of the
u0record component
-
v0
public float v0()Returns the value of thev0record component.- Returns:
- the value of the
v0record component
-
u1
public float u1()Returns the value of theu1record component.- Returns:
- the value of the
u1record component
-
v1
public float v1()Returns the value of thev1record component.- Returns:
- the value of the
v1record component
-