Record Class BakedNormals.PerQuad
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.model.quad.BakedNormals.PerQuad
- All Implemented Interfaces:
BakedNormals
- Enclosing interface:
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 thenormalrecord component.Fields inherited from interface net.neoforged.neoforge.client.model.quad.BakedNormals
UNSPECIFIED -
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.intnormal()Returns the value of thenormalrecord component.intnormal(int vertex) Returns The packed normal of the given vertex.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
normal
private final int normalThe field for thenormalrecord component.
-
-
Constructor Details
-
PerQuad
public PerQuad(int normal) Creates an instance of aPerQuadrecord class.- Parameters:
normal- the value for thenormalrecord 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 '=='. -
normal
public int normal()Returns the value of thenormalrecord component.- Returns:
- the value of the
normalrecord component
-