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 classBlockPattern.BlockStateCacheLoaderstatic classBlockPattern.Result -
Field Summary
-
Constructor Summary
Constructors Constructor Description BlockPattern(Predicate<CachedBlockPosition>[][][] pattern) -
Method Summary
Modifier and Type Method Description intgetDepth()intgetHeight()intgetWidth()static LoadingCache<BlockPos,CachedBlockPosition>makeCache(WorldView world, boolean forceLoad)BlockPattern.ResultsearchAround(WorldView world, BlockPos pos)private BlockPattern.ResulttestTransform(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos,CachedBlockPosition> cache)protected static BlockPostranslate(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
-