Record Class NativeUiImageRegions.Region
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiImageRegions.Region
- Enclosing class:
NativeUiImageRegions
public static record NativeUiImageRegions.Region(float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRegion(float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1) Creates an instance of aRegionrecord 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.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.floatx0()Returns the value of thex0record component.floatx1()Returns the value of thex1record component.floaty0()Returns the value of they0record component.floaty1()Returns the value of they1record component.
-
Constructor Details
-
Region
public Region(float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1) Creates an instance of aRegionrecord class.- Parameters:
x0- the value for thex0record componenty0- the value for they0record componentx1- the value for thex1record componenty1- the value for they1record 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
x0
public float x0()Returns the value of thex0record component.- Returns:
- the value of the
x0record component
-
y0
public float y0()Returns the value of they0record component.- Returns:
- the value of the
y0record component
-
x1
public float x1()Returns the value of thex1record component.- Returns:
- the value of the
x1record component
-
y1
public float y1()Returns the value of they1record component.- Returns:
- the value of the
y1record 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
-