Record Class AnimationsSectionSpigot.Result
java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.spigot.core.config.AnimationsSectionSpigot.Result
- Record Components:
loadChunksForToggle- Whether to load chunks when toggling a structure.skipAnimationsByDefault- Whether to skip animations by default.This can be overridden by
StructureAnimationRequestBuilder.IBuilder.skipAnimation(boolean).
- All Implemented Interfaces:
IConfigSectionResult
- Enclosing class:
AnimationsSectionSpigot
public static record AnimationsSectionSpigot.Result(boolean loadChunksForToggle, boolean skipAnimationsByDefault)
extends Record
implements IConfigSectionResult
Represents the result of this section after it was parsed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AnimationsSectionSpigot.ResultThe default result used when no data is available. -
Constructor Summary
ConstructorsConstructorDescriptionResult(boolean loadChunksForToggle, boolean skipAnimationsByDefault) 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.booleanReturns the value of theloadChunksForTogglerecord component.booleanReturns the value of theskipAnimationsByDefaultrecord 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(boolean loadChunksForToggle, boolean skipAnimationsByDefault) Creates an instance of aResultrecord class.- Parameters:
loadChunksForToggle- the value for theloadChunksForTogglerecord componentskipAnimationsByDefault- the value for theskipAnimationsByDefaultrecord 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 with thecomparemethod from their corresponding wrapper classes. -
loadChunksForToggle
public boolean loadChunksForToggle()Returns the value of theloadChunksForTogglerecord component.- Returns:
- the value of the
loadChunksForTogglerecord component
-
skipAnimationsByDefault
public boolean skipAnimationsByDefault()Returns the value of theskipAnimationsByDefaultrecord component.- Returns:
- the value of the
skipAnimationsByDefaultrecord component
-