Record Class CubeVertexData
java.lang.Object
java.lang.Record
team.lodestar.lodestone.systems.rendering.cube.CubeVertexData
-
Constructor Summary
ConstructorsConstructorDescriptionCubeVertexData(org.joml.Vector3f[] bottomVertices, org.joml.Vector3f[] topVertices, List<org.joml.Vector3f[]> offsetMap) Creates an instance of aCubeVertexDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionapplyWobble(float sineOffset, float strength) applyWobble(float bottomSineOffset, float topSineOffset, float strength) applyWobble(org.joml.Vector3f[] offsets, float sineOffset, float strength) org.joml.Vector3f[]Returns the value of thebottomVerticesrecord component.final booleanIndicates whether some other object is "equal to" this one.org.joml.Vector3f[]getVerticesByDirection(net.minecraft.core.Direction direction) org.joml.Vector3f[]getVerticesByIndex(int index) final inthashCode()Returns a hash code value for this object.static CubeVertexDatamakeCubePositions(float scale) static CubeVertexDatamakeCubePositions(float xScale, float yScale) static CubeVertexDatamakeCubePositions(float xStart, float xEnd, float yStart, float yEnd) offset(float x, float y, float z) List<org.joml.Vector3f[]> Returns the value of theoffsetMaprecord component.scale(float scale) scale(float width, float height) scale(float x, float y, float z) org.joml.Vector3f[]Returns the value of thetopVerticesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CubeVertexData
public CubeVertexData(org.joml.Vector3f[] bottomVertices, org.joml.Vector3f[] topVertices, List<org.joml.Vector3f[]> offsetMap) Creates an instance of aCubeVertexDatarecord class.- Parameters:
bottomVertices- the value for thebottomVerticesrecord componenttopVertices- the value for thetopVerticesrecord componentoffsetMap- the value for theoffsetMaprecord component
-
-
Method Details
-
makeCubePositions
-
makeCubePositions
-
makeCubePositions
-
getVerticesByDirection
public org.joml.Vector3f[] getVerticesByDirection(net.minecraft.core.Direction direction) -
getVerticesByIndex
public org.joml.Vector3f[] getVerticesByIndex(int index) -
applyWobble
-
applyWobble
-
applyWobble
-
scale
-
scale
-
scale
-
offset
-
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). -
bottomVertices
public org.joml.Vector3f[] bottomVertices()Returns the value of thebottomVerticesrecord component.- Returns:
- the value of the
bottomVerticesrecord component
-
topVertices
public org.joml.Vector3f[] topVertices()Returns the value of thetopVerticesrecord component.- Returns:
- the value of the
topVerticesrecord component
-
offsetMap
Returns the value of theoffsetMaprecord component.- Returns:
- the value of the
offsetMaprecord component
-