Package xaero.pac.client.claims.api
Interface IClientDimensionClaimsManagerAPI
- All Superinterfaces:
IDimensionClaimsManagerAPI
API for a dimension claims manager on the client side
-
Method Summary
Modifier and TypeMethodDescriptionintgetCount()Gets the number of 512x512 regions that contain claims in this dimension.net.minecraft.resources.ResourceLocationGets 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 aStreamof all 512x512 regions that contain claims in this dimension.
-
Method Details
-
getDimension
@Nonnull net.minecraft.resources.ResourceLocation getDimension()Description copied from interface:IDimensionClaimsManagerAPIGets the dimension ID.- Specified by:
getDimensionin interfaceIDimensionClaimsManagerAPI- Returns:
- the dimension ID, not null
-
getCount
int getCount()Description copied from interface:IDimensionClaimsManagerAPIGets the number of 512x512 regions that contain claims in this dimension.- Specified by:
getCountin interfaceIDimensionClaimsManagerAPI- Returns:
- the region count
-
getRegionStream
Gets aStreamof all 512x512 regions that contain claims in this dimension.- Returns:
- a stream of all regions, not null
-
getRegion
Description copied from interface:IDimensionClaimsManagerAPIGets 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:
getRegionin 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
-