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

    Constructors
    Constructor
    Description
    FluidSurfaceMesh(net.minecraft.client.renderer.texture.TextureAtlasSprite texture, float width)
    Creates an instance of a FluidSurfaceMesh record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.joml.Vector4fc
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    net.minecraft.client.renderer.texture.TextureAtlasSprite
    Returns the value of the texture record component.
    final String
    Returns a string representation of this record class.
    int
     
    float
    Returns the value of the width record component.
    void
    write(dev.engine_room.flywheel.api.vertex.MutableVertexList vertexList)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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 a FluidSurfaceMesh record class.
      Parameters:
      texture - the value for the texture record component
      width - the value for the width record component
  • Method Details

    • vertexCount

      public int vertexCount()
      Specified by:
      vertexCount in interface dev.engine_room.flywheel.api.model.Mesh
    • write

      public void write(dev.engine_room.flywheel.api.vertex.MutableVertexList vertexList)
      Specified by:
      write in interface dev.engine_room.flywheel.api.model.Mesh
    • boundingSphere

      public org.joml.Vector4fc boundingSphere()
      Specified by:
      boundingSphere in interface dev.engine_room.flywheel.api.model.Mesh
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • texture

      public net.minecraft.client.renderer.texture.TextureAtlasSprite texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component
    • width

      public float width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component