Record Class RedstoneSectionSpigot.Result
java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.spigot.core.config.RedstoneSectionSpigot.Result
- Record Components:
allowRedstone- Whether structures should respond to redstone signals.powerblockTypes- The types of blocks that can be used as power blocks for structures.
- All Implemented Interfaces:
IConfigSectionResult
- Enclosing class:
RedstoneSectionSpigot
public static record RedstoneSectionSpigot.Result(boolean allowRedstone, Set<org.bukkit.Material> powerblockTypes)
extends Record
implements IConfigSectionResult
Represents the result of the General section configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RedstoneSectionSpigot.ResultThe default result used when no data is available. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowRedstonerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Set<org.bukkit.Material> Returns the value of thepowerblockTypesrecord 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
Creates an instance of aResultrecord class.- Parameters:
allowRedstone- the value for theallowRedstonerecord componentpowerblockTypes- the value for thepowerblockTypesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
allowRedstone
public boolean allowRedstone()Returns the value of theallowRedstonerecord component.- Returns:
- the value of the
allowRedstonerecord component
-
powerblockTypes
Returns the value of thepowerblockTypesrecord component.- Returns:
- the value of the
powerblockTypesrecord component
-