Record Class UV
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.texture.UV
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.booleanisFull()toString()Returns a string representation of this record class.floatu(float delta) floatu0()Returns the value of theu0record component.floatu1()Returns the value of theu1record component.floatv(float delta) floatv0()Returns the value of thev0record component.floatv1()Returns the value of thev1record component.
-
Field Details
-
FULL
-
ZERO
-
ONE
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, UV> STREAM_CODEC
-
-
Constructor Details
-
UV
public UV(float all) -
UV
public UV(float u0, float v0, float u1, float v1) Creates an instance of aUVrecord class.- Parameters:
u0- the value for theu0record componentv0- the value for thev0record componentu1- the value for theu1record componentv1- the value for thev1record component
-
-
Method Details
-
uvsByFace
-
mul
-
u
public float u(float delta) -
v
public float v(float delta) -
isFull
public boolean isFull() -
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. -
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
-