Record Class FluidModel

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.FluidModel

public record FluidModel(ChunkSectionLayer layer, Material.Baked stillMaterial, Material.Baked flowingMaterial, @Nullable Material.Baked overlayMaterial, @Nullable FluidTintSource fluidTintSource, @Nullable CustomFluidRenderer customRenderer) extends Record
  • Field Details

    • layer

      private final ChunkSectionLayer layer
      The field for the layer record component.
    • stillMaterial

      private final Material.Baked stillMaterial
      The field for the stillMaterial record component.
    • flowingMaterial

      private final Material.Baked flowingMaterial
      The field for the flowingMaterial record component.
    • overlayMaterial

      private final @Nullable Material.Baked overlayMaterial
      The field for the overlayMaterial record component.
    • fluidTintSource

      private final @Nullable FluidTintSource fluidTintSource
      The field for the fluidTintSource record component.
    • customRenderer

      private final @Nullable CustomFluidRenderer customRenderer
      The field for the customRenderer record component.
  • Constructor Details

  • Method Details

    • tintSource

      @Deprecated public @Nullable BlockTintSource tintSource()
      Deprecated.
      Neo: use fluidTintSource() instead
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • layer

      public ChunkSectionLayer layer()
      Returns the value of the layer record component.
      Returns:
      the value of the layer record component
    • stillMaterial

      public Material.Baked stillMaterial()
      Returns the value of the stillMaterial record component.
      Returns:
      the value of the stillMaterial record component
    • flowingMaterial

      public Material.Baked flowingMaterial()
      Returns the value of the flowingMaterial record component.
      Returns:
      the value of the flowingMaterial record component
    • overlayMaterial

      public @Nullable Material.Baked overlayMaterial()
      Returns the value of the overlayMaterial record component.
      Returns:
      the value of the overlayMaterial record component
    • fluidTintSource

      public @Nullable FluidTintSource fluidTintSource()
      Returns the value of the fluidTintSource record component.
      Returns:
      the value of the fluidTintSource record component
    • customRenderer

      public @Nullable CustomFluidRenderer customRenderer()
      Returns the value of the customRenderer record component.
      Returns:
      the value of the customRenderer record component