Class WorldBorderBoundsChangeFinishEvent


@NullMarked public class WorldBorderBoundsChangeFinishEvent extends WorldBorderEvent
Called when a moving world border has finished its move.
  • Constructor Details

    • WorldBorderBoundsChangeFinishEvent

      @Internal public WorldBorderBoundsChangeFinishEvent(World world, WorldBorder worldBorder, double oldSize, double newSize, double duration)
  • Method Details

    • getOldSize

      public double getOldSize()
      Gets the old size of the worldborder.
      Returns:
      the old size
    • getNewSize

      public double getNewSize()
      Gets the new size of the worldborder.
      Returns:
      the new size
    • getDuration

      public double getDuration()
      Gets the duration this worldborder took to make the change.

      Can be 0 if handlers for WorldBorderCenterChangeEvent set the duration to 0.

      Returns:
      the duration of the transition
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()