Record Class WoodSet.PrecedingCreativeEntries

java.lang.Object
java.lang.Record
net.rebel459.unified.api.data.set.WoodSet.PrecedingCreativeEntries
Enclosing class:
WoodSet

public static record WoodSet.PrecedingCreativeEntries(Supplier<? extends net.minecraft.world.level.ItemLike> building, Supplier<? extends net.minecraft.world.level.ItemLike> natural, Supplier<? extends net.minecraft.world.level.ItemLike> functionalShelf, Supplier<? extends net.minecraft.world.level.ItemLike> functionalSign, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> utilities) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    PrecedingCreativeEntries(Supplier<? extends net.minecraft.world.level.ItemLike> building, Supplier<? extends net.minecraft.world.level.ItemLike> natural, Supplier<? extends net.minecraft.world.level.ItemLike> functionalShelf, Supplier<? extends net.minecraft.world.level.ItemLike> functionalSign, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> utilities)
    Creates an instance of a PrecedingCreativeEntries record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the building record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the functionalShelf record component.
    Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the functionalSign record component.
    final int
    Returns a hash code value for this object.
    Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the natural record component.
    final String
    Returns a string representation of this record class.
    @Nullable Supplier<? extends net.minecraft.world.level.ItemLike>
    Returns the value of the utilities record component.

    Methods inherited from class Object

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

    • PrecedingCreativeEntries

      public PrecedingCreativeEntries(Supplier<? extends net.minecraft.world.level.ItemLike> building, Supplier<? extends net.minecraft.world.level.ItemLike> natural, Supplier<? extends net.minecraft.world.level.ItemLike> functionalShelf, Supplier<? extends net.minecraft.world.level.ItemLike> functionalSign, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> utilities)
      Creates an instance of a PrecedingCreativeEntries record class.
      Parameters:
      building - the value for the building record component
      natural - the value for the natural record component
      functionalShelf - the value for the functionalShelf record component
      functionalSign - the value for the functionalSign record component
      utilities - the value for the utilities 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.
    • building

      public Supplier<? extends net.minecraft.world.level.ItemLike> building()
      Returns the value of the building record component.
      Returns:
      the value of the building record component
    • natural

      public Supplier<? extends net.minecraft.world.level.ItemLike> natural()
      Returns the value of the natural record component.
      Returns:
      the value of the natural record component
    • functionalShelf

      public Supplier<? extends net.minecraft.world.level.ItemLike> functionalShelf()
      Returns the value of the functionalShelf record component.
      Returns:
      the value of the functionalShelf record component
    • functionalSign

      public Supplier<? extends net.minecraft.world.level.ItemLike> functionalSign()
      Returns the value of the functionalSign record component.
      Returns:
      the value of the functionalSign record component
    • utilities

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