Interface IServerRegionClaimsAPI

All Superinterfaces:
IRegionClaimsAPI

public interface IServerRegionClaimsAPI extends IRegionClaimsAPI
API for region claims on the server side
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int x, int z)
    Gets the claim state at a specified chunk location inside the 512x512 region.
    int
    Gets the X coordinate of the 512x512 region.
    int
    Gets the Z coordinate of the 512x512 region.
  • Method Details

    • get

      @Nullable IPlayerChunkClaimAPI get(int x, int z)
      Description copied from interface: IRegionClaimsAPI
      Gets the claim state at a specified chunk location inside the 512x512 region.

      The coordinate values must be within 0 - 31 (inclusive).

      Specified by:
      get in interface IRegionClaimsAPI
      Parameters:
      x - the X coordinate of the chunk inside the region, 0 - 31 (inclusive)
      z - the Z coordinate of the chunk inside the region, 0 - 31 (inclusive)
      Returns:
      the claim state, null if the chunk is not claimed
    • getX

      int getX()
      Description copied from interface: IRegionClaimsAPI
      Gets the X coordinate of the 512x512 region.
      Specified by:
      getX in interface IRegionClaimsAPI
      Returns:
      the X coordinate value
    • getZ

      int getZ()
      Description copied from interface: IRegionClaimsAPI
      Gets the Z coordinate of the 512x512 region.
      Specified by:
      getZ in interface IRegionClaimsAPI
      Returns:
      the Z coordinate value