Record Class LimitsSectionSpigot.Result
java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.spigot.core.config.LimitsSectionSpigot.Result
- Record Components:
maxStructureCount- The maximum number of structures a player can have.maxBlocksToMove- The maximum number of blocks that can be moved in a single animation.maxStructureSize- The maximum size of a structure in terms of blocks.maxPowerblockDistance- The maximum distance between power blocks in a structure.maxBlockSpeed- The maximum speed at which blocks can move in an animation.
- All Implemented Interfaces:
IConfigSectionResult
- Enclosing class:
LimitsSectionSpigot
public static record LimitsSectionSpigot.Result(OptionalInt maxStructureCount, OptionalInt maxBlocksToMove, OptionalInt maxStructureSize, OptionalInt maxPowerblockDistance, OptionalDouble maxBlockSpeed)
extends Record
implements IConfigSectionResult
Represents the result of the LimitsSectionSpigot configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LimitsSectionSpigot.ResultThe default result used when no data is available. -
Constructor Summary
ConstructorsConstructorDescriptionResult(int maxStructureCount, int maxBlocksToMove, int maxStructureSize, int maxPowerblockDistance, double maxBlockSpeed) Result(OptionalInt maxStructureCount, OptionalInt maxBlocksToMove, OptionalInt maxStructureSize, OptionalInt maxPowerblockDistance, OptionalDouble maxBlockSpeed) Creates an instance of aResultrecord 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.Returns the value of themaxBlockSpeedrecord component.Returns the value of themaxBlocksToMoverecord component.Returns the value of themaxPowerblockDistancerecord component.Returns the value of themaxStructureCountrecord component.Returns the value of themaxStructureSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
The default result used when no data is available.
-
-
Constructor Details
-
Result
public Result(int maxStructureCount, int maxBlocksToMove, int maxStructureSize, int maxPowerblockDistance, double maxBlockSpeed) -
Result
public Result(OptionalInt maxStructureCount, OptionalInt maxBlocksToMove, OptionalInt maxStructureSize, OptionalInt maxPowerblockDistance, OptionalDouble maxBlockSpeed) Creates an instance of aResultrecord class.- Parameters:
maxStructureCount- the value for themaxStructureCountrecord componentmaxBlocksToMove- the value for themaxBlocksToMoverecord componentmaxStructureSize- the value for themaxStructureSizerecord componentmaxPowerblockDistance- the value for themaxPowerblockDistancerecord componentmaxBlockSpeed- the value for themaxBlockSpeedrecord 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). -
maxStructureCount
Returns the value of themaxStructureCountrecord component.- Returns:
- the value of the
maxStructureCountrecord component
-
maxBlocksToMove
Returns the value of themaxBlocksToMoverecord component.- Returns:
- the value of the
maxBlocksToMoverecord component
-
maxStructureSize
Returns the value of themaxStructureSizerecord component.- Returns:
- the value of the
maxStructureSizerecord component
-
maxPowerblockDistance
Returns the value of themaxPowerblockDistancerecord component.- Returns:
- the value of the
maxPowerblockDistancerecord component
-
maxBlockSpeed
Returns the value of themaxBlockSpeedrecord component.- Returns:
- the value of the
maxBlockSpeedrecord component
-