Interface IDimensionClaimsManagerAPI

All Known Subinterfaces:
IClientDimensionClaimsManagerAPI, IServerDimensionClaimsManagerAPI

public interface IDimensionClaimsManagerAPI
API for a dimension claims manager
  • 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.
  • Method Details

    • getDimension

      @Nonnull net.minecraft.resources.ResourceLocation getDimension()
      Gets the dimension ID.
      Returns:
      the dimension ID, not null
    • getCount

      int getCount()
      Gets the number of 512x512 regions that contain claims in this dimension.
      Returns:
      the region count
    • getRegion

      @Nullable IRegionClaimsAPI 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.
      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