Class RestrictionSetEvent

java.lang.Object
org.bukkit.event.Event
me.gamercoder215.mobchip.bukkit.events.BrainEvent
me.gamercoder215.mobchip.bukkit.events.RestrictionSetEvent

public class RestrictionSetEvent extends BrainEvent
Called before an Entity's Restriction Center Changes
  • Constructor Details

  • Method Details

    • getOldCenter

      @Nullable public @Nullable Location getOldCenter()
      Fetches the old restriction center.
      Returns:
      Old Center, may be null
    • getOldRadius

      public int getOldRadius()
      Fetches the old radius.
      Returns:
      Old Restriction Radius
    • getNewRadius

      public int getNewRadius()
      Fetches the new radius.
      Returns:
      New Restriction Radius
    • setNewRadius

      public void setNewRadius(int radius)
      Sets the new radius.
      Parameters:
      radius - New Restriction Radius
    • getNewCenter

      @Nullable public @Nullable Location getNewCenter()
      Fetches the new restriction center.
      Returns:
      New Center, may be null
    • setNewCenter

      public void setNewCenter(@Nullable @Nullable Location loc)
      Sets the new Location center.
      Parameters:
      loc - Location to set