Record Class CubeVertexData
java.lang.Object
java.lang.Record
team.lodestar.lodestone.systems.rendering.cube.CubeVertexData
public record CubeVertexData(CubeVertexData.CubeVertices bottomVertices, CubeVertexData.CubeVertices topVertices, List<CubeVertexData.CubeVertices> byHorizontalDirection)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCubeVertexData(org.joml.Vector3f[] bottomVertices, org.joml.Vector3f[] topVertices, List<org.joml.Vector3f[]> directionToVertex) CubeVertexData(CubeVertexData.CubeVertices bottomVertices, CubeVertexData.CubeVertices topVertices, List<CubeVertexData.CubeVertices> byHorizontalDirection) Creates an instance of aCubeVertexDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyVertexWobble(org.joml.Vector3f[] vertices, float sineOffset, float strength) static voidapplyVertexWobble(CubeVertexData.CubeVertices vertices, float sineOffset, float strength) applyWobble(float sineOffset, float strength) applyWobble(float bottomSineOffset, float topSineOffset, float strength) applyWobble(CubeVertexData.CubeVertices vertices, float sineOffset, float strength) Returns the value of thebottomVerticesrecord component.Returns the value of thebyHorizontalDirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.org.joml.Vector3f[]getVerticesByDirection(net.minecraft.core.Direction direction) getVerticesByIndex(int index) final inthashCode()Returns a hash code value for this object.static CubeVertexDatamakeCubePositions(float scale) static CubeVertexDatamakeCubePositions(float hScale, float vScale) static CubeVertexDatamakeCubePositions(float hStart, float hEnd, float vStart, float vEnd) static CubeVertexDatamakeCubePositions(float xStart, float xEnd, float yStart, float yEnd, float zStart, float zEnd) offset(float x, float y, float z) offset(Function<CubeVertexData, CubeVertexData.CubeVertices> vertices, float x, float y, float z) scale(float scale) scale(float width, float height) scale(float x, float y, float z) scale(Function<CubeVertexData, CubeVertexData.CubeVertices> vertices, float scale) scale(Function<CubeVertexData, CubeVertexData.CubeVertices> vertices, float width, float height) scale(Function<CubeVertexData, CubeVertexData.CubeVertices> vertices, float x, float y, float z) 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[]> directionToVertex) -
CubeVertexData
public CubeVertexData(CubeVertexData.CubeVertices bottomVertices, CubeVertexData.CubeVertices topVertices, List<CubeVertexData.CubeVertices> byHorizontalDirection) Creates an instance of aCubeVertexDatarecord class.- Parameters:
bottomVertices- the value for thebottomVerticesrecord componenttopVertices- the value for thetopVerticesrecord componentbyHorizontalDirection- the value for thebyHorizontalDirectionrecord component
-
-
Method Details
-
makeCubePositions
-
makeCubePositions
-
makeCubePositions
-
makeCubePositions
public static CubeVertexData makeCubePositions(float xStart, float xEnd, float yStart, float yEnd, float zStart, float zEnd) -
getVerticesByDirection
public org.joml.Vector3f[] getVerticesByDirection(net.minecraft.core.Direction direction) -
getVerticesByIndex
-
applyWobble
-
applyWobble
-
applyWobble
public CubeVertexData applyWobble(CubeVertexData.CubeVertices vertices, float sineOffset, float strength) -
applyVertexWobble
public static void applyVertexWobble(CubeVertexData.CubeVertices vertices, float sineOffset, float strength) -
applyVertexWobble
public static void applyVertexWobble(org.joml.Vector3f[] vertices, float sineOffset, float strength) -
scale
-
scale
-
scale
-
scale
public CubeVertexData scale(Function<CubeVertexData, CubeVertexData.CubeVertices> vertices, float scale) -
scale
public CubeVertexData scale(Function<CubeVertexData, CubeVertexData.CubeVertices> vertices, float width, float height) -
scale
public CubeVertexData scale(Function<CubeVertexData, CubeVertexData.CubeVertices> vertices, float x, float y, float z) -
offset
-
offset
public CubeVertexData offset(Function<CubeVertexData, CubeVertexData.CubeVertices> vertices, float x, float y, float z) -
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
Returns the value of thebottomVerticesrecord component.- Returns:
- the value of the
bottomVerticesrecord component
-
topVertices
Returns the value of thetopVerticesrecord component.- Returns:
- the value of the
topVerticesrecord component
-
byHorizontalDirection
Returns the value of thebyHorizontalDirectionrecord component.- Returns:
- the value of the
byHorizontalDirectionrecord component
-