Record Class CornucopiaSchematicStatus

java.lang.Object
java.lang.Record
dev.itsharshxd.zentrix.api.cornucopia.CornucopiaSchematicStatus

public record CornucopiaSchematicStatus(@NotNull String schematic, @NotNull String podiumBlock, boolean readable, boolean usable) extends Record
Result of validating both the configured schematic and its podium marker.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CornucopiaSchematicStatus(@NotNull String schematic, @NotNull String podiumBlock, boolean readable, boolean usable)
    Creates an instance of a CornucopiaSchematicStatus record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotNull String
    Returns the value of the podiumBlock record component.
    boolean
    Returns the value of the readable record component.
    @NotNull String
    Returns the value of the schematic record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the usable record component.

    Methods inherited from class java.lang.Object

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

    • CornucopiaSchematicStatus

      public CornucopiaSchematicStatus(@NotNull @NotNull String schematic, @NotNull @NotNull String podiumBlock, boolean readable, boolean usable)
      Creates an instance of a CornucopiaSchematicStatus record class.
      Parameters:
      schematic - the value for the schematic record component
      podiumBlock - the value for the podiumBlock record component
      readable - the value for the readable record component
      usable - the value for the usable 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.
    • schematic

      @NotNull public @NotNull String schematic()
      Returns the value of the schematic record component.
      Returns:
      the value of the schematic record component
    • podiumBlock

      @NotNull public @NotNull String podiumBlock()
      Returns the value of the podiumBlock record component.
      Returns:
      the value of the podiumBlock record component
    • readable

      public boolean readable()
      Returns the value of the readable record component.
      Returns:
      the value of the readable record component
    • usable

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