Record Class FluidMesh.FluidStreamMesh
java.lang.Object
java.lang.Record
com.simibubi.create.content.fluids.FluidMesh.FluidStreamMesh
- All Implemented Interfaces:
dev.engine_room.flywheel.api.model.Mesh,dev.engine_room.flywheel.lib.model.QuadMesh
- Enclosing class:
FluidMesh
public static record FluidMesh.FluidStreamMesh(net.minecraft.client.renderer.texture.TextureAtlasSprite texture)
extends Record
implements dev.engine_room.flywheel.lib.model.QuadMesh
-
Constructor Summary
ConstructorsConstructorDescriptionFluidStreamMesh(net.minecraft.client.renderer.texture.TextureAtlasSprite texture) Creates an instance of aFluidStreamMeshrecord 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.intvoidwrite(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
-
FluidStreamMesh
public FluidStreamMesh(net.minecraft.client.renderer.texture.TextureAtlasSprite texture) Creates an instance of aFluidStreamMeshrecord class.- Parameters:
texture- the value for thetexturerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
texture
public net.minecraft.client.renderer.texture.TextureAtlasSprite texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-