Class DistrictCreatedEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class DistrictCreatedEvent extends DistrictAddEvent
Called when a district is created.
  • Constructor Details

    • DistrictCreatedEvent

      public DistrictCreatedEvent(District district, TownBlock townBlock, org.bukkit.entity.Player player)
  • Method Details

    • getTownBlock

      @NotNull public @NotNull TownBlock getTownBlock()
      Overrides:
      getTownBlock in class DistrictAddEvent
      Returns:
      The initial townblock that this district is being created with.