Record Class BakedNormals.PerVertex
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.model.quad.BakedNormals.PerVertex
- All Implemented Interfaces:
BakedNormals
- Enclosing interface:
BakedNormals
public static record BakedNormals.PerVertex(int normal0, int normal1, int normal2, int normal3)
extends Record
implements BakedNormals
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.neoforged.neoforge.client.model.quad.BakedNormals
BakedNormals.PerQuad, BakedNormals.PerVertex -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thenormal0record component.private final intThe field for thenormal1record component.private final intThe field for thenormal2record component.private final intThe field for thenormal3record component.Fields inherited from interface net.neoforged.neoforge.client.model.quad.BakedNormals
UNSPECIFIED -
Constructor Summary
ConstructorsConstructorDescriptionPerVertex(int normal0, int normal1, int normal2, int normal3) Creates an instance of aPerVertexrecord 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.intnormal(int vertex) Returns The packed normal of the given vertex.intnormal0()Returns the value of thenormal0record component.intnormal1()Returns the value of thenormal1record component.intnormal2()Returns the value of thenormal2record component.intnormal3()Returns the value of thenormal3record component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
normal0
private final int normal0The field for thenormal0record component. -
normal1
private final int normal1The field for thenormal1record component. -
normal2
private final int normal2The field for thenormal2record component. -
normal3
private final int normal3The field for thenormal3record component.
-
-
Constructor Details
-
PerVertex
public PerVertex(int normal0, int normal1, int normal2, int normal3) Creates an instance of aPerVertexrecord class.- Parameters:
normal0- the value for thenormal0record componentnormal1- the value for thenormal1record componentnormal2- the value for thenormal2record componentnormal3- the value for thenormal3record component
-
-
Method Details
-
normal
public int normal(int vertex) Description copied from interface:BakedNormalsReturns The packed normal of the given vertex. It can also be unspecified.- Specified by:
normalin interfaceBakedNormals- Returns:
- The packed normal of the given vertex
- See Also:
-
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. -
hashCode
public final 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 '=='. -
normal0
public int normal0()Returns the value of thenormal0record component.- Returns:
- the value of the
normal0record component
-
normal1
public int normal1()Returns the value of thenormal1record component.- Returns:
- the value of the
normal1record component
-
normal2
public int normal2()Returns the value of thenormal2record component.- Returns:
- the value of the
normal2record component
-
normal3
public int normal3()Returns the value of thenormal3record component.- Returns:
- the value of the
normal3record component
-