Package net.minecraft.client.render
Record Class WeatherRendering.Piece
java.lang.Object
java.lang.Record
net.minecraft.client.render.WeatherRendering.Piece
- Record Components:
x
-z
-bottomY
-topY
-uOffset
-vOffset
-lightCoords
-
- Enclosing class:
WeatherRendering
@Environment(CLIENT)
private static record WeatherRendering.Piece(int x, int z, int bottomY, int topY, float uOffset, float vOffset, int lightCoords)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/WeatherRendering$Piece
intermediary net/minecraft/class_9976$class_9977
official gmk$a
named x
intermediary comp_3042
official a
named z
intermediary comp_3043
official b
named bottomY
intermediary comp_3044
official c
named topY
intermediary comp_3045
official d
named uOffset
intermediary comp_3046
official e
named vOffset
intermediary comp_3047
official f
named lightCoords
intermediary comp_3048
official g
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for thebottomY
record component.private final int
The field for thelightCoords
record component.private final int
The field for thetopY
record component.private final float
The field for theuOffset
record component.private final float
The field for thevOffset
record component.private final int
The field for thex
record component.private final int
The field for thez
record component. -
Constructor Summary
ConstructorDescriptionPiece
(int int2, int int3, int int4, int int5, float float2, float float3, int int6) -
Method Summary
Modifier and TypeMethodDescriptionint
bottomY()
Returns the value of thebottomY
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thelightCoords
record component.int
topY()
Returns the value of thetopY
record component.final String
toString()
Returns a string representation of this record class.float
uOffset()
Returns the value of theuOffset
record component.float
vOffset()
Returns the value of thevOffset
record component.int
x()
Returns the value of thex
record component.int
z()
Returns the value of thez
record component.
-
Field Details
-
x
private final int xThe field for thex
record component. -
z
private final int zThe field for thez
record component. -
bottomY
private final int bottomYThe field for thebottomY
record component. -
topY
private final int topYThe field for thetopY
record component. -
uOffset
private final float uOffsetThe field for theuOffset
record component. -
vOffset
private final float vOffsetThe field for thevOffset
record component. -
lightCoords
private final int lightCoordsThe field for thelightCoords
record component.
-
-
Constructor Details
-
Piece
Piece(int int2, int int3, int int4, int int5, float float2, float float3, int int6)
-
-
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. All components in this record class are compared with '=='. -
x
public int x()Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
z
public int z()Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-
bottomY
public int bottomY()Returns the value of thebottomY
record component.- Returns:
- the value of the
bottomY
record component
-
topY
public int topY()Returns the value of thetopY
record component.- Returns:
- the value of the
topY
record component
-
uOffset
public float uOffset()Returns the value of theuOffset
record component.- Returns:
- the value of the
uOffset
record component
-
vOffset
public float vOffset()Returns the value of thevOffset
record component.- Returns:
- the value of the
vOffset
record component
-
lightCoords
public int lightCoords()Returns the value of thelightCoords
record component.- Returns:
- the value of the
lightCoords
record component
-