Record Class FluidMesh.FluidSurfaceMesh
java.lang.Object
java.lang.Record
com.simibubi.create.content.fluids.FluidMesh.FluidSurfaceMesh
- All Implemented Interfaces:
dev.engine_room.flywheel.api.model.Mesh,dev.engine_room.flywheel.lib.model.QuadMesh
- Enclosing class:
FluidMesh
public static record FluidMesh.FluidSurfaceMesh(net.minecraft.client.renderer.texture.TextureAtlasSprite texture, float width)
extends Record
implements dev.engine_room.flywheel.lib.model.QuadMesh
-
Constructor Summary
ConstructorsConstructorDescriptionFluidSurfaceMesh(net.minecraft.client.renderer.texture.TextureAtlasSprite texture, float width) Creates an instance of aFluidSurfaceMeshrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector4fcfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.renderer.texture.TextureAtlasSpritetexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.intfloatwidth()Returns the value of thewidthrecord component.voidwrite(dev.engine_room.flywheel.api.vertex.MutableVertexList vertexList) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.engine_room.flywheel.lib.model.QuadMesh
indexCount, indexSequence
-
Constructor Details
-
FluidSurfaceMesh
public FluidSurfaceMesh(net.minecraft.client.renderer.texture.TextureAtlasSprite texture, float width) Creates an instance of aFluidSurfaceMeshrecord class.- Parameters:
texture- the value for thetexturerecord componentwidth- the value for thewidthrecord component
-
-
Method Details
-
vertexCount
public int vertexCount()- Specified by:
vertexCountin interfacedev.engine_room.flywheel.api.model.Mesh
-
write
public void write(dev.engine_room.flywheel.api.vertex.MutableVertexList vertexList) - Specified by:
writein interfacedev.engine_room.flywheel.api.model.Mesh
-
boundingSphere
public org.joml.Vector4fc boundingSphere()- Specified by:
boundingSpherein interfacedev.engine_room.flywheel.api.model.Mesh
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
texture
public net.minecraft.client.renderer.texture.TextureAtlasSprite texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
width
public float width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-