Record Class FluidModel.Unbaked

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.FluidModel.Unbaked
Enclosing class:
FluidModel

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

    • stillMaterial

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

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

      private final @Nullable Material 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
    • bake

      public FluidModel bake(MaterialBaker materials, ModelDebugName modelName)
    • getTransparency

      private static Transparency getTransparency(Material.Baked material)
    • 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.
    • stillMaterial

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

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

      public @Nullable Material 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