java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.data.recipes.families.StoneFamilies

public record StoneFamilies(Supplier<? extends net.minecraft.world.level.block.Block> stone, Supplier<? extends net.minecraft.world.level.block.Block> bricks, boolean bricksHaveStonecutterRecipe, Supplier<? extends net.minecraft.world.level.block.Block> slab, Supplier<? extends net.minecraft.world.level.block.Block> stairs, Supplier<? extends net.minecraft.world.level.block.Block> wall, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> pillar, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> chiseled, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cut, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cutSlab, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smooth, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothSlab, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothStairs) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final StoneFamilies
     
    static final StoneFamilies
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    StoneFamilies(Supplier<? extends net.minecraft.world.level.block.Block> stone, Supplier<? extends net.minecraft.world.level.block.Block> bricks, boolean bricksHaveStonecutterRecipe, Supplier<? extends net.minecraft.world.level.block.Block> slab, Supplier<? extends net.minecraft.world.level.block.Block> stairs, Supplier<? extends net.minecraft.world.level.block.Block> wall, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> pillar, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> chiseled, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cut, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cutSlab, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smooth, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothSlab, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothStairs)
    Creates an instance of a StoneFamilies record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Supplier<? extends net.minecraft.world.level.block.Block>
    Returns the value of the bricks record component.
    boolean
    Returns the value of the bricksHaveStonecutterRecipe record component.
    @Nullable Supplier<? extends net.minecraft.world.level.block.Block>
    Returns the value of the chiseled record component.
    @Nullable Supplier<? extends net.minecraft.world.level.block.Block>
    cut()
    Returns the value of the cut record component.
    @Nullable Supplier<? extends net.minecraft.world.level.block.Block>
    Returns the value of the cutSlab record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @Nullable Supplier<? extends net.minecraft.world.level.block.Block>
    Returns the value of the pillar record component.
    Supplier<? extends net.minecraft.world.level.block.Block>
    Returns the value of the slab record component.
    @Nullable Supplier<? extends net.minecraft.world.level.block.Block>
    Returns the value of the smooth record component.
    @Nullable Supplier<? extends net.minecraft.world.level.block.Block>
    Returns the value of the smoothSlab record component.
    @Nullable Supplier<? extends net.minecraft.world.level.block.Block>
    Returns the value of the smoothStairs record component.
    Supplier<? extends net.minecraft.world.level.block.Block>
    Returns the value of the stairs record component.
    Supplier<? extends net.minecraft.world.level.block.Block>
    Returns the value of the stone record component.
    final String
    Returns a string representation of this record class.
    Supplier<? extends net.minecraft.world.level.block.Block>
    Returns the value of the wall record component.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • StoneFamilies

      public StoneFamilies(Supplier<? extends net.minecraft.world.level.block.Block> stone, Supplier<? extends net.minecraft.world.level.block.Block> bricks, boolean bricksHaveStonecutterRecipe, Supplier<? extends net.minecraft.world.level.block.Block> slab, Supplier<? extends net.minecraft.world.level.block.Block> stairs, Supplier<? extends net.minecraft.world.level.block.Block> wall, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> pillar, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> chiseled, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cut, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cutSlab, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smooth, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothSlab, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothStairs)
      Creates an instance of a StoneFamilies record class.
      Parameters:
      stone - the value for the stone record component
      bricks - the value for the bricks record component
      bricksHaveStonecutterRecipe - the value for the bricksHaveStonecutterRecipe record component
      slab - the value for the slab record component
      stairs - the value for the stairs record component
      wall - the value for the wall record component
      pillar - the value for the pillar record component
      chiseled - the value for the chiseled record component
      cut - the value for the cut record component
      cutSlab - the value for the cutSlab record component
      smooth - the value for the smooth record component
      smoothSlab - the value for the smoothSlab record component
      smoothStairs - the value for the smoothStairs 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. 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.
    • stone

      public Supplier<? extends net.minecraft.world.level.block.Block> stone()
      Returns the value of the stone record component.
      Returns:
      the value of the stone record component
    • bricks

      public Supplier<? extends net.minecraft.world.level.block.Block> bricks()
      Returns the value of the bricks record component.
      Returns:
      the value of the bricks record component
    • bricksHaveStonecutterRecipe

      public boolean bricksHaveStonecutterRecipe()
      Returns the value of the bricksHaveStonecutterRecipe record component.
      Returns:
      the value of the bricksHaveStonecutterRecipe record component
    • slab

      public Supplier<? extends net.minecraft.world.level.block.Block> slab()
      Returns the value of the slab record component.
      Returns:
      the value of the slab record component
    • stairs

      public Supplier<? extends net.minecraft.world.level.block.Block> stairs()
      Returns the value of the stairs record component.
      Returns:
      the value of the stairs record component
    • wall

      public Supplier<? extends net.minecraft.world.level.block.Block> wall()
      Returns the value of the wall record component.
      Returns:
      the value of the wall record component
    • pillar

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.block.Block> pillar()
      Returns the value of the pillar record component.
      Returns:
      the value of the pillar record component
    • chiseled

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.block.Block> chiseled()
      Returns the value of the chiseled record component.
      Returns:
      the value of the chiseled record component
    • cut

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cut()
      Returns the value of the cut record component.
      Returns:
      the value of the cut record component
    • cutSlab

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cutSlab()
      Returns the value of the cutSlab record component.
      Returns:
      the value of the cutSlab record component
    • smooth

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smooth()
      Returns the value of the smooth record component.
      Returns:
      the value of the smooth record component
    • smoothSlab

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothSlab()
      Returns the value of the smoothSlab record component.
      Returns:
      the value of the smoothSlab record component
    • smoothStairs

      @Nullable public @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothStairs()
      Returns the value of the smoothStairs record component.
      Returns:
      the value of the smoothStairs record component