Record Class DynamicFluidContainerModel.Unbaked

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

public static record DynamicFluidContainerModel.Unbaked(DynamicFluidContainerModel.Textures textures, net.minecraft.world.level.material.Fluid fluid, boolean flipGas, boolean coverIsMask, boolean applyFluidLuminosity) extends Record implements net.minecraft.client.renderer.item.ItemModel.Unbaked
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel

    net.minecraft.client.resources.model.ResolvableModel.Resolver
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the applyFluidLuminosity record component.
    private final boolean
    The field for the coverIsMask record component.
    private final boolean
    The field for the flipGas record component.
    private final net.minecraft.world.level.material.Fluid
    The field for the fluid record component.
    static final com.mojang.serialization.MapCodec<DynamicFluidContainerModel.Unbaked>
     
    The field for the textures record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Unbaked(DynamicFluidContainerModel.Textures textures, net.minecraft.world.level.material.Fluid fluid, boolean flipGas, boolean coverIsMask, boolean applyFluidLuminosity)
    Creates an instance of a Unbaked record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the applyFluidLuminosity record component.
    net.minecraft.client.renderer.item.ItemModel
    bake(net.minecraft.client.renderer.item.ItemModel.BakingContext bakingContext)
     
    boolean
    Returns the value of the coverIsMask record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the flipGas record component.
    net.minecraft.world.level.material.Fluid
    Returns the value of the fluid record component.
    final int
    Returns a hash code value for this object.
    void
    resolveDependencies(net.minecraft.client.resources.model.ResolvableModel.Resolver resolver)
     
    Returns the value of the textures record component.
    final String
    Returns a string representation of this record class.
    com.mojang.serialization.MapCodec<? extends net.minecraft.client.renderer.item.ItemModel.Unbaked>
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • textures

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

      private final net.minecraft.world.level.material.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, net.minecraft.world.level.material.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 net.minecraft.client.renderer.item.ItemModel.Unbaked> type()
      Specified by:
      type in interface net.minecraft.client.renderer.item.ItemModel.Unbaked
    • bake

      public net.minecraft.client.renderer.item.ItemModel bake(net.minecraft.client.renderer.item.ItemModel.BakingContext bakingContext)
      Specified by:
      bake in interface net.minecraft.client.renderer.item.ItemModel.Unbaked
    • resolveDependencies

      public void resolveDependencies(net.minecraft.client.resources.model.ResolvableModel.Resolver resolver)
      Specified by:
      resolveDependencies in interface net.minecraft.client.resources.model.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 net.minecraft.world.level.material.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