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

public abstract class ActivateBlockMechanic<T extends org.bukkit.block.BlockState> extends Mechanic
  • Constructor Details

    • ActivateBlockMechanic

      public ActivateBlockMechanic(@NotNull @NotNull Class<T> blockClass)
      Default constructor for serializer.
  • Method Details

    • getBlockClass

      public Class<T> getBlockClass()
    • getSearchRadius

      public double getSearchRadius()
    • getMaxBlocks

      public int getMaxBlocks()
    • forEachBlock

      public void forEachBlock(@NotNull @NotNull org.bukkit.Location origin, @NotNull @NotNull Consumer<T> blockFunction)
    • applyParentArgs

      public Mechanic applyParentArgs(me.deecaad.core.file.SerializeData data, Mechanic mechanic) throws me.deecaad.core.file.SerializerException
      Overrides:
      applyParentArgs in class Mechanic
      Throws:
      me.deecaad.core.file.SerializerException