Record Class UniversalBucketModel.Unbaked.Textures

java.lang.Object
java.lang.Record
de.cech12.bucketlib.client.model.UniversalBucketModel.Unbaked.Textures
Enclosing class:
UniversalBucketModel.Unbaked

public static record UniversalBucketModel.Unbaked.Textures(Optional<net.minecraft.resources.ResourceLocation> particle, Optional<net.minecraft.resources.ResourceLocation> base, Optional<net.minecraft.resources.ResourceLocation> lowerBase, Optional<net.minecraft.resources.ResourceLocation> fluidMask, Optional<net.minecraft.resources.ResourceLocation> crackedBase, Optional<net.minecraft.resources.ResourceLocation> crackedLowerBase, Optional<net.minecraft.resources.ResourceLocation> crackedFluidMask) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<UniversalBucketModel.Unbaked.Textures>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Textures(Optional<net.minecraft.resources.ResourceLocation> particle, Optional<net.minecraft.resources.ResourceLocation> base, Optional<net.minecraft.resources.ResourceLocation> lowerBase, Optional<net.minecraft.resources.ResourceLocation> fluidMask, Optional<net.minecraft.resources.ResourceLocation> crackedBase, Optional<net.minecraft.resources.ResourceLocation> crackedLowerBase, Optional<net.minecraft.resources.ResourceLocation> crackedFluidMask)
    Creates an instance of a Textures record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<net.minecraft.resources.ResourceLocation>
    Returns the value of the base record component.
    Optional<net.minecraft.resources.ResourceLocation>
    Returns the value of the crackedBase record component.
    Optional<net.minecraft.resources.ResourceLocation>
    Returns the value of the crackedFluidMask record component.
    Optional<net.minecraft.resources.ResourceLocation>
    Returns the value of the crackedLowerBase record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Optional<net.minecraft.resources.ResourceLocation>
    Returns the value of the fluidMask record component.
    final int
    Returns a hash code value for this object.
    Optional<net.minecraft.resources.ResourceLocation>
    Returns the value of the lowerBase record component.
    Optional<net.minecraft.resources.ResourceLocation>
    Returns the value of the particle record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • Textures

      public Textures(Optional<net.minecraft.resources.ResourceLocation> particle, Optional<net.minecraft.resources.ResourceLocation> base, Optional<net.minecraft.resources.ResourceLocation> lowerBase, Optional<net.minecraft.resources.ResourceLocation> fluidMask, Optional<net.minecraft.resources.ResourceLocation> crackedBase, Optional<net.minecraft.resources.ResourceLocation> crackedLowerBase, Optional<net.minecraft.resources.ResourceLocation> crackedFluidMask)
      Creates an instance of a Textures record class.
      Parameters:
      particle - the value for the particle record component
      base - the value for the base record component
      lowerBase - the value for the lowerBase record component
      fluidMask - the value for the fluidMask record component
      crackedBase - the value for the crackedBase record component
      crackedLowerBase - the value for the crackedLowerBase record component
      crackedFluidMask - the value for the crackedFluidMask record component
  • Method Details

    • 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.
    • particle

      public Optional<net.minecraft.resources.ResourceLocation> particle()
      Returns the value of the particle record component.
      Returns:
      the value of the particle record component
    • base

      public Optional<net.minecraft.resources.ResourceLocation> base()
      Returns the value of the base record component.
      Returns:
      the value of the base record component
    • lowerBase

      public Optional<net.minecraft.resources.ResourceLocation> lowerBase()
      Returns the value of the lowerBase record component.
      Returns:
      the value of the lowerBase record component
    • fluidMask

      public Optional<net.minecraft.resources.ResourceLocation> fluidMask()
      Returns the value of the fluidMask record component.
      Returns:
      the value of the fluidMask record component
    • crackedBase

      public Optional<net.minecraft.resources.ResourceLocation> crackedBase()
      Returns the value of the crackedBase record component.
      Returns:
      the value of the crackedBase record component
    • crackedLowerBase

      public Optional<net.minecraft.resources.ResourceLocation> crackedLowerBase()
      Returns the value of the crackedLowerBase record component.
      Returns:
      the value of the crackedLowerBase record component
    • crackedFluidMask

      public Optional<net.minecraft.resources.ResourceLocation> crackedFluidMask()
      Returns the value of the crackedFluidMask record component.
      Returns:
      the value of the crackedFluidMask record component