Record Class CustomBlockCatalogue
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.block.CustomBlockCatalogue
public record CustomBlockCatalogue(UUID generation, List<CustomBlockDefinition> blocks)
extends Record
A generation is immutable; the host replaces it whenever its pack/allocation changes.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomBlockCatalogue(UUID generation, List<CustomBlockDefinition> blocks) Creates an instance of aCustomBlockCataloguerecord class. -
Method Summary
Modifier and TypeMethodDescriptionblocks()Returns the value of theblocksrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegenerationrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
CustomBlockCatalogue
Creates an instance of aCustomBlockCataloguerecord class.- Parameters:
generation- the value for thegenerationrecord componentblocks- the value for theblocksrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
generation
Returns the value of thegenerationrecord component.- Returns:
- the value of the
generationrecord component
-
blocks
Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-