Record Class CloudRenderer.TextureData
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.CloudRenderer.TextureData
- Enclosing class:
CloudRenderer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextureData(long[] cells, int width, int height) Creates an instance of aTextureDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionlong[]cells()Returns the value of thecellsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
cells
private final long[] cellsThe field for thecellsrecord component. -
width
private final int widthThe field for thewidthrecord component. -
height
private final int heightThe field for theheightrecord component.
-
-
Constructor Details
-
TextureData
public TextureData(long[] cells, int width, int height) Creates an instance of aTextureDatarecord class.- Parameters:
cells- the value for thecellsrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord 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. -
cells
public long[] cells()Returns the value of thecellsrecord component.- Returns:
- the value of the
cellsrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-