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
ConstructorsConstructorDescriptionCornucopiaSchematicStatus(@NotNull String schematic, @NotNull String podiumBlock, boolean readable, boolean usable) Creates an instance of aCornucopiaSchematicStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull StringReturns the value of thepodiumBlockrecord component.booleanreadable()Returns the value of thereadablerecord component.@NotNull StringReturns the value of theschematicrecord component.final StringtoString()Returns a string representation of this record class.booleanusable()Returns the value of theusablerecord component.
-
Constructor Details
-
CornucopiaSchematicStatus
public CornucopiaSchematicStatus(@NotNull @NotNull String schematic, @NotNull @NotNull String podiumBlock, boolean readable, boolean usable) Creates an instance of aCornucopiaSchematicStatusrecord class.- Parameters:
schematic- the value for theschematicrecord componentpodiumBlock- the value for thepodiumBlockrecord componentreadable- the value for thereadablerecord componentusable- the value for theusablerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
schematic
Returns the value of theschematicrecord component.- Returns:
- the value of the
schematicrecord component
-
podiumBlock
Returns the value of thepodiumBlockrecord component.- Returns:
- the value of the
podiumBlockrecord component
-
readable
public boolean readable()Returns the value of thereadablerecord component.- Returns:
- the value of the
readablerecord component
-
usable
public boolean usable()Returns the value of theusablerecord component.- Returns:
- the value of the
usablerecord component
-