Class ActivateBlockMechanic<T extends org.bukkit.block.BlockState>
java.lang.Object
me.deecaad.core.mechanics.defaultmechanics.Mechanic
me.deecaad.core.mechanics.defaultmechanics.ActivateBlockMechanic<T>
- All Implemented Interfaces:
InlineSerializer<Mechanic>,Serializer<Mechanic>,net.kyori.adventure.key.Keyed,org.bukkit.Keyed
- Direct Known Subclasses:
SculkBloomMechanic,SculkShriekMechanic
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.deecaad.core.file.InlineSerializer
InlineSerializer.FormatException -
Field Summary
Fields inherited from class me.deecaad.core.mechanics.defaultmechanics.Mechanic
conditions, targeterFields inherited from interface me.deecaad.core.file.InlineSerializer
NAME_FINDER, UNIQUE_IDENTIFIER -
Constructor Summary
ConstructorsConstructorDescriptionActivateBlockMechanic(@NotNull Class<T> blockClass) Default constructor for serializer. -
Method Summary
Modifier and TypeMethodDescriptionapplyParentArgs(me.deecaad.core.file.SerializeData data, Mechanic mechanic) voidforEachBlock(@NotNull org.bukkit.Location origin, @NotNull Consumer<T> blockFunction) intdoubleMethods inherited from class me.deecaad.core.mechanics.defaultmechanics.Mechanic
getChance, getConditions, getDelayBeforePlay, getRepeatAmount, getRepeatInterval, getTargeter, handleTargetersAndConditions, use, use0Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.file.InlineSerializer
getInlineKeyword, getKey, getKeyword, shouldSerializeMethods inherited from interface org.bukkit.Keyed
keyMethods inherited from interface me.deecaad.core.file.Serializer
canUsePathTo, getName, getParentKeywords, getWikiLink, letPassThrough, serialize, tryPathTo, useLater
-
Constructor Details
-
ActivateBlockMechanic
Default constructor for serializer.
-
-
Method Details
-
getBlockClass
-
getSearchRadius
public double getSearchRadius() -
getMaxBlocks
public int getMaxBlocks() -
forEachBlock
-
applyParentArgs
public Mechanic applyParentArgs(me.deecaad.core.file.SerializeData data, Mechanic mechanic) throws me.deecaad.core.file.SerializerException - Overrides:
applyParentArgsin classMechanic- Throws:
me.deecaad.core.file.SerializerException
-