Interface IServerDimensionClaimsManagerAPI

All Superinterfaces:
IDimensionClaimsManagerAPI

public interface IServerDimensionClaimsManagerAPI extends IDimensionClaimsManagerAPI
API for a dimension claims manager on the server side
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the number of 512x512 regions that contain claims in this dimension.
    net.minecraft.resources.ResourceLocation
    Gets the dimension ID.
    getRegion(int x, int z)
    Gets region claims at a specified 512x512 region location in this dimension, or null if there are no claims stored for the specified location.
    Gets a Stream of all 512x512 regions that contain claims in this dimension.
  • Method Details

    • getDimension

      @Nonnull net.minecraft.resources.ResourceLocation getDimension()
      Description copied from interface: IDimensionClaimsManagerAPI
      Gets the dimension ID.
      Specified by:
      getDimension in interface IDimensionClaimsManagerAPI
      Returns:
      the dimension ID, not null
    • getCount

      int getCount()
      Description copied from interface: IDimensionClaimsManagerAPI
      Gets the number of 512x512 regions that contain claims in this dimension.
      Specified by:
      getCount in interface IDimensionClaimsManagerAPI
      Returns:
      the region count
    • getRegionStream

      @Nonnull Stream<IServerRegionClaimsAPI> getRegionStream()
      Gets a Stream of all 512x512 regions that contain claims in this dimension.
      Returns:
      a stream of all regions, not null
    • getRegion

      @Nullable IServerRegionClaimsAPI getRegion(int x, int z)
      Description copied from interface: IDimensionClaimsManagerAPI
      Gets region claims at a specified 512x512 region location in this dimension, or null if there are no claims stored for the specified location.
      Specified by:
      getRegion in interface IDimensionClaimsManagerAPI
      Parameters:
      x - the X coordinate of the 512x512 region
      z - the Z coordinate of the 512x512 region
      Returns:
      the read-only region claims manager, null if it doesn't exist