Package net.minecraft.block.pattern
Class BlockPattern
- java.lang.Object
-
- net.minecraft.block.pattern.BlockPattern
-
public class BlockPattern extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
BlockPattern.CacheLoader
static class
BlockPattern.PatternHelper
-
Field Summary
Fields Modifier and Type Field Description private int
depth
private int
height
private java.util.function.Predicate<CachedBlockInfo>[][][]
pattern
private int
width
-
Constructor Summary
Constructors Constructor Description BlockPattern(java.util.function.Predicate<CachedBlockInfo>[][][] p_i48279_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.google.common.cache.LoadingCache<BlockPos,CachedBlockInfo>
createLevelCache(IWorldReader p_181627_0_, boolean p_181627_1_)
BlockPattern.PatternHelper
find(IWorldReader p_177681_1_, BlockPos p_177681_2_)
int
getDepth()
int
getHeight()
int
getWidth()
private BlockPattern.PatternHelper
matches(BlockPos p_177682_1_, Direction p_177682_2_, Direction p_177682_3_, com.google.common.cache.LoadingCache<BlockPos,CachedBlockInfo> p_177682_4_)
protected static BlockPos
translateAndRotate(BlockPos p_177683_0_, Direction p_177683_1_, Direction p_177683_2_, int p_177683_3_, int p_177683_4_, int p_177683_5_)
-
-
-
Field Detail
-
pattern
private final java.util.function.Predicate<CachedBlockInfo>[][][] pattern
-
depth
private final int depth
-
height
private final int height
-
width
private final int width
-
-
Constructor Detail
-
BlockPattern
public BlockPattern(java.util.function.Predicate<CachedBlockInfo>[][][] p_i48279_1_)
-
-
Method Detail
-
getDepth
public int getDepth()
-
getHeight
public int getHeight()
-
getWidth
public int getWidth()
-
matches
@Nullable private BlockPattern.PatternHelper matches(BlockPos p_177682_1_, Direction p_177682_2_, Direction p_177682_3_, com.google.common.cache.LoadingCache<BlockPos,CachedBlockInfo> p_177682_4_)
-
find
@Nullable public BlockPattern.PatternHelper find(IWorldReader p_177681_1_, BlockPos p_177681_2_)
-
createLevelCache
public static com.google.common.cache.LoadingCache<BlockPos,CachedBlockInfo> createLevelCache(IWorldReader p_181627_0_, boolean p_181627_1_)
-
-