Class DefaultBottomFill

java.lang.Object
org.bukkit.scheduler.BukkitRunnable
com.ryandw11.structure.bottomfill.DefaultBottomFill
All Implemented Interfaces:
BottomFillImpl, Runnable

public class DefaultBottomFill extends org.bukkit.scheduler.BukkitRunnable implements BottomFillImpl
The default implementation for the bottom fill feature.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    performFill​(Structure structure, org.bukkit.Location spawnLocation, org.bukkit.Location minLoc, org.bukkit.Location maxLoc, com.sk89q.worldedit.math.transform.AffineTransform transform)
    Called by the plugin when a bottom fill should be performed.
    void
    run()
     

    Methods inherited from class org.bukkit.scheduler.BukkitRunnable

    cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultBottomFill

      public DefaultBottomFill()
  • Method Details

    • performFill

      public void performFill(Structure structure, org.bukkit.Location spawnLocation, org.bukkit.Location minLoc, org.bukkit.Location maxLoc, com.sk89q.worldedit.math.transform.AffineTransform transform)
      Description copied from interface: BottomFillImpl
      Called by the plugin when a bottom fill should be performed.

      This will only be called if the BottomFill option is enabled.

      Specified by:
      performFill in interface BottomFillImpl
      Parameters:
      structure - The structure that was spawned.
      spawnLocation - The spawn (paste) location of the structure.
      minLoc - The minimum location of the structure in the world to paste onto.
      maxLoc - The maximum location of the structure in the world to paste onto.
      transform - The affine transformation applied on this structure.
    • run

      public void run()
      Specified by:
      run in interface Runnable