public interface IWorldScanner
Modifier and Type | Method and Description |
---|---|
int |
repack(IPlayerContext ctx)
|
int |
repack(IPlayerContext ctx,
int range)
Queues the chunks in a square formation around the specified player, using the specified
range, which represents 1/2 the square's dimensions, where the player is in the center.
|
java.util.List<net.minecraft.util.math.BlockPos> |
scanChunk(IPlayerContext ctx,
BlockOptionalMetaLookup filter,
net.minecraft.util.math.ChunkPos pos,
int max,
int yLevelThreshold)
Scans a single chunk for the specified blocks.
|
default java.util.List<net.minecraft.util.math.BlockPos> |
scanChunk(IPlayerContext ctx,
java.util.List<net.minecraft.block.Block> blocks,
net.minecraft.util.math.ChunkPos pos,
int max,
int yLevelThreshold)
Scans a single chunk for the specified blocks.
|
java.util.List<net.minecraft.util.math.BlockPos> |
scanChunkRadius(IPlayerContext ctx,
BlockOptionalMetaLookup filter,
int max,
int yLevelThreshold,
int maxSearchRadius)
Scans the world, up to the specified max chunk radius, for the specified blocks.
|
default java.util.List<net.minecraft.util.math.BlockPos> |
scanChunkRadius(IPlayerContext ctx,
java.util.List<net.minecraft.block.Block> filter,
int max,
int yLevelThreshold,
int maxSearchRadius) |
java.util.List<net.minecraft.util.math.BlockPos> scanChunkRadius(IPlayerContext ctx, BlockOptionalMetaLookup filter, int max, int yLevelThreshold, int maxSearchRadius)
ctx
- The IPlayerContext
containing player and world info that the scan is based uponfilter
- The blocks to scan formax
- The maximum number of blocks to scan before cutoffyLevelThreshold
- If a block is found within this Y level, the current result will be returned, if the value
is negative, then this condition doesn't apply.maxSearchRadius
- The maximum chunk search radiusdefault java.util.List<net.minecraft.util.math.BlockPos> scanChunkRadius(IPlayerContext ctx, java.util.List<net.minecraft.block.Block> filter, int max, int yLevelThreshold, int maxSearchRadius)
java.util.List<net.minecraft.util.math.BlockPos> scanChunk(IPlayerContext ctx, BlockOptionalMetaLookup filter, net.minecraft.util.math.ChunkPos pos, int max, int yLevelThreshold)
ctx
- The IPlayerContext
containing player and world info that the scan is based uponfilter
- The blocks to scan forpos
- The position of the target chunkmax
- The maximum number of blocks to scan before cutoffyLevelThreshold
- If a block is found within this Y level, the current result will be returned, if the value
is negative, then this condition doesn't apply.default java.util.List<net.minecraft.util.math.BlockPos> scanChunk(IPlayerContext ctx, java.util.List<net.minecraft.block.Block> blocks, net.minecraft.util.math.ChunkPos pos, int max, int yLevelThreshold)
ctx
- The IPlayerContext
containing player and world info that the scan is based uponblocks
- The blocks to scan forpos
- The position of the target chunkmax
- The maximum number of blocks to scan before cutoffyLevelThreshold
- If a block is found within this Y level, the current result will be returned, if the value
is negative, then this condition doesn't apply.int repack(IPlayerContext ctx)
ctx
- The player, describing the originint repack(IPlayerContext ctx, int range)
ctx
- The player, describing the originrange
- The range to repack