Package dev.latvian.mods.klib.texture
Record Class LightUV
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.texture.LightUV
- All Implemented Interfaces:
PackedUV
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.intpacked()Returns the value of thepackedrecord component.final StringtoString()Returns a string representation of this record class.intu()Returns the value of theurecord component.intv()Returns the value of thevrecord component.
-
Field Details
-
NONE
-
FULLBRIGHT
-
FULL_SKY
-
FULL_BLOCK
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,LightUV> STREAM_CODEC
-
-
Constructor Details
-
LightUV
public LightUV(int packed) -
LightUV
public LightUV(int u, int v) -
LightUV
public LightUV(int packed, int u, int v) Creates an instance of aLightUVrecord class.- Parameters:
packed- the value for thepackedrecord componentu- the value for theurecord componentv- the value for thevrecord component
-
-
Method Details
-
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
packed
public int packed()Returns the value of thepackedrecord component. -
u
public int u()Returns the value of theurecord component. -
v
public int v()Returns the value of thevrecord component.
-