Record Class StructuresSectionSpigot.StructureResult
java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.spigot.core.config.StructuresSectionSpigot.StructureResult
- Record Components:
enabled- Whether the structure is enabled or not.animationSpeedMultiplier- The speed multiplier for the structure.priceFormula- The priceFormula formula for the structure, as a string.guiMaterial- The material used in the GUI for this structure.
- Enclosing class:
StructuresSectionSpigot
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructuresSectionSpigot.StructureResultThe default structure result, used when no specific configuration is provided. -
Constructor Summary
ConstructorsConstructorDescriptionStructureResult(boolean enabled, double animationSpeedMultiplier, String priceFormula, org.bukkit.Material guiMaterial) Creates an instance of aStructureResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theanimationSpeedMultiplierrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.org.bukkit.MaterialReturns the value of theguiMaterialrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepriceFormularecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
The default structure result, used when no specific configuration is provided.
-
-
Constructor Details
-
StructureResult
public StructureResult(boolean enabled, double animationSpeedMultiplier, String priceFormula, org.bukkit.Material guiMaterial) Creates an instance of aStructureResultrecord class.- Parameters:
enabled- the value for theenabledrecord componentanimationSpeedMultiplier- the value for theanimationSpeedMultiplierrecord componentpriceFormula- the value for thepriceFormularecord componentguiMaterial- the value for theguiMaterialrecord 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. -
enabled
-
animationSpeedMultiplier
public double animationSpeedMultiplier()Returns the value of theanimationSpeedMultiplierrecord component.- Returns:
- the value of the
animationSpeedMultiplierrecord component
-
priceFormula
Returns the value of thepriceFormularecord component.- Returns:
- the value of the
priceFormularecord component
-
guiMaterial
public org.bukkit.Material guiMaterial()Returns the value of theguiMaterialrecord component.- Returns:
- the value of the
guiMaterialrecord component
-