Record Class DynamicFluidContainerModel.Unbaked

java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.model.item.DynamicFluidContainerModel.Unbaked
All Implemented Interfaces:
ItemModel.Unbaked, ResolvableModel
Enclosing class:
DynamicFluidContainerModel

public static record DynamicFluidContainerModel.Unbaked(DynamicFluidContainerModel.Textures textures, Fluid fluid, boolean flipGas, boolean coverIsMask, boolean applyFluidLuminosity) extends Record implements ItemModel.Unbaked
  • Field Details

    • textures

      private final DynamicFluidContainerModel.Textures textures
      The field for the textures record component.
    • fluid

      private final Fluid fluid
      The field for the fluid record component.
    • flipGas

      private final boolean flipGas
      The field for the flipGas record component.
    • coverIsMask

      private final boolean coverIsMask
      The field for the coverIsMask record component.
    • applyFluidLuminosity

      private final boolean applyFluidLuminosity
      The field for the applyFluidLuminosity record component.
    • MAP_CODEC

      public static final com.mojang.serialization.MapCodec<DynamicFluidContainerModel.Unbaked> MAP_CODEC
  • Constructor Details

    • Unbaked

      public Unbaked(DynamicFluidContainerModel.Textures textures, Fluid fluid, boolean flipGas, boolean coverIsMask, boolean applyFluidLuminosity)
      Creates an instance of a Unbaked record class.
      Parameters:
      textures - the value for the textures record component
      fluid - the value for the fluid record component
      flipGas - the value for the flipGas record component
      coverIsMask - the value for the coverIsMask record component
      applyFluidLuminosity - the value for the applyFluidLuminosity record component
  • Method Details

    • type

      public com.mojang.serialization.MapCodec<? extends ItemModel.Unbaked> type()
      Specified by:
      type in interface ItemModel.Unbaked
    • bake

      public ItemModel bake(ItemModel.BakingContext bakingContext)
      Specified by:
      bake in interface ItemModel.Unbaked
    • resolveDependencies

      public void resolveDependencies(ResolvableModel.Resolver resolver)
      Specified by:
      resolveDependencies in interface ResolvableModel
    • 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.
    • textures

      Returns the value of the textures record component.
      Returns:
      the value of the textures record component
    • fluid

      public Fluid fluid()
      Returns the value of the fluid record component.
      Returns:
      the value of the fluid record component
    • flipGas

      public boolean flipGas()
      Returns the value of the flipGas record component.
      Returns:
      the value of the flipGas record component
    • coverIsMask

      public boolean coverIsMask()
      Returns the value of the coverIsMask record component.
      Returns:
      the value of the coverIsMask record component
    • applyFluidLuminosity

      public boolean applyFluidLuminosity()
      Returns the value of the applyFluidLuminosity record component.
      Returns:
      the value of the applyFluidLuminosity record component