Record Class ObjParser.ObjMesh
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.objimport.ObjParser.ObjMesh
- Enclosing class:
ObjParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thefaceMaterialsrecord component.private final List<int[]> The field for thefacesrecord component.private final List<int[]> The field for thefaceUvIndicesrecord component.private final StringThe field for themtlLibrecord component.private final List<float[]> The field for theuvCoordinatesrecord component.private final List<float[]> The field for theverticesrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefaceMaterialsrecord component.List<int[]> faces()Returns the value of thefacesrecord component.List<int[]> Returns the value of thefaceUvIndicesrecord component.float[]floatfinal inthashCode()Returns a hash code value for this object.booleanbooleanmtlLib()Returns the value of themtlLibrecord component.final StringtoString()Returns a string representation of this record class.voidvoidList<float[]> Returns the value of theuvCoordinatesrecord component.List<float[]> vertices()Returns the value of theverticesrecord component.
-
Field Details
-
vertices
The field for theverticesrecord component. -
uvCoordinates
The field for theuvCoordinatesrecord component. -
faces
The field for thefacesrecord component. -
faceUvIndices
The field for thefaceUvIndicesrecord component. -
faceMaterials
The field for thefaceMaterialsrecord component. -
mtlLib
The field for themtlLibrecord component.
-
-
Constructor Details
-
ObjMesh
public ObjMesh(List<float[]> vertices, List<float[]> uvCoordinates, List<int[]> faces, List<int[]> faceUvIndices, List<String> faceMaterials, @Nullable String mtlLib) Creates an instance of aObjMeshrecord class.- Parameters:
vertices- the value for theverticesrecord componentuvCoordinates- the value for theuvCoordinatesrecord componentfaces- the value for thefacesrecord componentfaceUvIndices- the value for thefaceUvIndicesrecord componentfaceMaterials- the value for thefaceMaterialsrecord componentmtlLib- the value for themtlLibrecord component
-
-
Method Details
-
getBounds
public float[] getBounds() -
getHeight
public float getHeight() -
hasMaterials
public boolean hasMaterials() -
hasUvCoordinates
public boolean hasUvCoordinates() -
transformZUpToYUp
public void transformZUpToYUp() -
transformXUpToYUp
public void transformXUpToYUp() -
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 withObjects::equals(Object,Object). -
vertices
Returns the value of theverticesrecord component.- Returns:
- the value of the
verticesrecord component
-
uvCoordinates
Returns the value of theuvCoordinatesrecord component.- Returns:
- the value of the
uvCoordinatesrecord component
-
faces
Returns the value of thefacesrecord component.- Returns:
- the value of the
facesrecord component
-
faceUvIndices
Returns the value of thefaceUvIndicesrecord component.- Returns:
- the value of the
faceUvIndicesrecord component
-
faceMaterials
Returns the value of thefaceMaterialsrecord component.- Returns:
- the value of the
faceMaterialsrecord component
-
mtlLib
Returns the value of themtlLibrecord component.- Returns:
- the value of the
mtlLibrecord component
-