Interface IServerDimensionClaimsManagerAPI
- All Superinterfaces:
IDimensionClaimsManagerAPI
API for a dimension claims manager on the server side
-
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
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 aStream
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 interfaceIDimensionClaimsManagerAPI
- 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 interfaceIDimensionClaimsManagerAPI
- Returns:
- the region count
-
getRegionStream
Gets aStream
of all 512x512 regions that contain claims in this dimension.- Returns:
- a stream of all regions, not null
-
getRegion
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 interfaceIDimensionClaimsManagerAPI
- Parameters:
x
- the X coordinate of the 512x512 regionz
- the Z coordinate of the 512x512 region- Returns:
- the read-only region claims manager, null if it doesn't exist
-