Class KingdomBlock

All Implemented Interfaces:
Keyed<SimpleLocation>, SmartObject, org.kingdoms.constants.group.model.logs.Loggable, org.kingdoms.locale.provider.CascadingMessageContextProvider, org.kingdoms.locale.provider.MessageContextProvider
Direct Known Subclasses:
KingdomBuilding, ProtectionSign

public abstract class KingdomBlock extends KeyedKingdomsObject<SimpleLocation>
Any block that Kingdoms has information linked to it. Currently, no kingdom block can span over multiple chunks, they must all be contained in one chunk.
  • Field Details

  • Constructor Details

  • Method Details

    • getOrigin

      public SimpleLocation getOrigin()
      See Also:
      • Building.getOrigin()
    • getKingdomBlockHandler

      public abstract org.kingdoms.constants.land.KingdomBuildingHandler<?> getKingdomBlockHandler()
    • modifyData

      protected abstract void modifyData(Land land, boolean adding)
    • getLand

      @NotNull public final @NotNull Land getLand()