Record Class UVQuad
java.lang.Object
java.lang.Record
com.wildfire.api.uvs.UVQuad
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUVQuad(int x1, int y1, int x2, int y2) Creates an instance of aUVQuadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddX1(int x1) addX2(int x2) addY1(int y1) addY2(int y2) final booleanIndicates whether some other object is "equal to" this one.static UVQuadfromIntList(List<Integer> list) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intx1()Returns the value of thex1record component.intx2()Returns the value of thex2record component.inty1()Returns the value of they1record component.inty2()Returns the value of they2record component.
-
Field Details
-
UNUSED
-
CODEC
-
OR_LEGACY
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, UVQuad> STREAM_CODEC
-
-
Constructor Details
-
UVQuad
public UVQuad(int x1, int y1, int x2, int y2) Creates an instance of aUVQuadrecord class.- Parameters:
x1- the value for thex1record componenty1- the value for they1record componentx2- the value for thex2record componenty2- the value for they2record component
-
-
Method Details
-
addX1
-
addY1
-
addX2
-
addY2
-
toIntList
-
fromIntList
-
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. -
x1
public int x1()Returns the value of thex1record component.- Returns:
- the value of the
x1record component
-
y1
public int y1()Returns the value of they1record component.- Returns:
- the value of the
y1record component
-
x2
public int x2()Returns the value of thex2record component.- Returns:
- the value of the
x2record component
-
y2
public int y2()Returns the value of they2record component.- Returns:
- the value of the
y2record component
-