Record Class CoverModel.Band
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.handheld.CoverModel.Band
- Enclosing class:
CoverModel
public static record CoverModel.Band(net.minecraft.resources.Identifier texture, float y0, float y1, float out, float u0, float v0, float u1, float v1, int tint)
extends Record
A band round the spine: from
y0 to y1 up it (0 at the foot, 16 at the head), standing out
off it (in x's units), its face from that part of texture (0 to 1), tinted as a face's "tintindex" says.-
Constructor Summary
ConstructorsConstructorDescriptionBand(net.minecraft.resources.Identifier texture, float y0, float y1, float out, float u0, float v0, float u1, float v1, int tint) Creates an instance of aBandrecord 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.floatout()Returns the value of theoutrecord component.net.minecraft.resources.Identifiertexture()Returns the value of thetexturerecord component.inttint()Returns the value of thetintrecord 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.floaty0()Returns the value of they0record component.floaty1()Returns the value of they1record component.
-
Constructor Details
-
Band
public Band(net.minecraft.resources.Identifier texture, float y0, float y1, float out, float u0, float v0, float u1, float v1, int tint) Creates an instance of aBandrecord class.- Parameters:
texture- the value for thetexturerecord componenty0- the value for they0record componenty1- the value for they1record componentout- the value for theoutrecord componentu0- the value for theu0record componentv0- the value for thev0record componentu1- the value for theu1record componentv1- the value for thev1record componenttint- the value for thetintrecord 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. -
texture
public net.minecraft.resources.Identifier texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
y0
public float y0()Returns the value of they0record component.- Returns:
- the value of the
y0record component
-
y1
public float y1()Returns the value of they1record component.- Returns:
- the value of the
y1record component
-
out
public float out()Returns the value of theoutrecord component.- Returns:
- the value of the
outrecord 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
-
tint
public int tint()Returns the value of thetintrecord component.- Returns:
- the value of the
tintrecord component
-