Record Class GuiItemAtlas.SlotView
java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.GuiItemAtlas.SlotView
- Enclosing class:
GuiItemAtlas
public static record GuiItemAtlas.SlotView(GpuTextureView textureView, float u0, float v0, float u1, float v1)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GpuTextureViewThe field for thetextureViewrecord 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
ConstructorsConstructorDescriptionSlotView(GpuTextureView textureView, float u0, float v0, float u1, float v1) Creates an instance of aSlotViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetextureViewrecord component.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
-
textureView
The field for thetextureViewrecord 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
-
SlotView
Creates an instance of aSlotViewrecord class.- Parameters:
textureView- the value for thetextureViewrecord 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. -
textureView
Returns the value of thetextureViewrecord component.- Returns:
- the value of the
textureViewrecord 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
-