Package net.minecraft.block.pattern
Class BlockPattern
java.lang.Object
net.minecraft.block.pattern.BlockPattern
public class BlockPattern extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
BlockPattern.BlockStateCacheLoader
static class
BlockPattern.Result
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BlockPattern(Predicate<CachedBlockPosition>[][][] pattern)
-
Method Summary
Modifier and Type Method Description int
getDepth()
int
getHeight()
int
getWidth()
static LoadingCache<BlockPos,CachedBlockPosition>
makeCache(WorldView world, boolean forceLoad)
BlockPattern.Result
searchAround(WorldView world, BlockPos pos)
private BlockPattern.Result
testTransform(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos,CachedBlockPosition> cache)
protected static BlockPos
translate(BlockPos pos, Direction forwards, Direction up, int offsetLeft, int offsetDown, int offsetForwards)
-
Field Details
-
pattern
-
depth
private final int depth -
height
private final int height -
width
private final int width
-
-
Constructor Details
-
BlockPattern
-
-
Method Details
-
getDepth
public int getDepth() -
getHeight
public int getHeight() -
getWidth
public int getWidth() -
testTransform
@Nullable private BlockPattern.Result testTransform(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos,CachedBlockPosition> cache) -
searchAround
-
makeCache
public static LoadingCache<BlockPos,CachedBlockPosition> makeCache(WorldView world, boolean forceLoad) -
translate
-