类 DominionReSizeEvent

所有已实现的接口:
org.bukkit.event.Cancellable

@Experimental public class DominionReSizeEvent extends DominionModifyEvent
Event triggered when a Dominion's size is modified in the Dominion system.
  • 构造器详细资料

    • DominionReSizeEvent

      public DominionReSizeEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull DominionReSizeEvent.TYPE type, @NotNull @NotNull DominionReSizeEvent.DIRECTION direction, int size)
      Constructs a new DominionReSizeEvent.
      参数:
      operator - the command sender who initiated the event
      dominion - the dominion whose size is being changed
      type - the type of the size change
      direction - the direction of the size change
      size - the size of the size change
  • 方法详细资料

    • setSkipEconomy

      public void setSkipEconomy(boolean skipEconomy)
      Sets whether to skip the economy check.
      参数:
      skipEconomy - true to skip the economy check, false otherwise
    • isSkipEconomy

      public boolean isSkipEconomy()
      Checks if the economy check is skipped.
      返回:
      true if the economy check is skipped, false otherwise
    • getOldCuboid

      public CuboidDTO getOldCuboid()
      Gets the old cuboid representing the dominion's size before the change.
      返回:
      the old cuboid
    • getType

      public DominionReSizeEvent.TYPE getType()
      Gets the type of the size change.
      返回:
      the type of the size change
    • getDirection

      public DominionReSizeEvent.DIRECTION getDirection()
      Gets the direction of the size change.
      返回:
      the direction of the size change
    • getSize

      public int getSize()
      Gets the size of the size change.
      返回:
      the size of the size change
    • setDirection

      public void setDirection(DominionReSizeEvent.DIRECTION direction)
      Sets the direction of the size change.
      参数:
      direction - the direction of the size change
    • setSize

      public void setSize(int size)
      Sets the size of the size change.
      参数:
      size - the size of the size change
    • getNewCuboid

      public CuboidDTO getNewCuboid()
      Gets the new cuboid representing the dominion's size after the change.
      返回:
      the new cuboid