Class BlockPattern
java.lang.Object
net.minecraft.world.level.block.state.pattern.BlockPattern
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static classstatic class
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic com.google.common.cache.LoadingCache<BlockPos,BlockInWorld> createLevelCache(LevelReader p_61188_, boolean p_61189_) find(LevelReader p_61185_, BlockPos p_61186_) intgetDepth()intPredicate<BlockInWorld>[][][]intgetWidth()private BlockPattern.BlockPatternMatchmatches(BlockPos p_61198_, Direction p_61199_, Direction p_61200_, com.google.common.cache.LoadingCache<BlockPos, BlockInWorld> p_61201_) matches(LevelReader p_155965_, BlockPos p_155966_, Direction p_155967_, Direction p_155968_) protected static BlockPostranslateAndRotate(BlockPos p_61191_, Direction p_61192_, Direction p_61193_, int p_61194_, int p_61195_, int p_61196_) 
- 
Field Details- 
pattern
- 
depthprivate final int depth
- 
heightprivate final int height
- 
widthprivate final int width
 
- 
- 
Constructor Details- 
BlockPattern
 
- 
- 
Method Details- 
getDepthpublic int getDepth()
- 
getHeightpublic int getHeight()
- 
getWidthpublic int getWidth()
- 
getPattern
- 
matches@Nullable public BlockPattern.BlockPatternMatch matches(LevelReader p_155965_, BlockPos p_155966_, Direction p_155967_, Direction p_155968_) 
- 
matches@Nullable private BlockPattern.BlockPatternMatch matches(BlockPos p_61198_, Direction p_61199_, Direction p_61200_, com.google.common.cache.LoadingCache<BlockPos, BlockInWorld> p_61201_) 
- 
find
- 
createLevelCachepublic static com.google.common.cache.LoadingCache<BlockPos,BlockInWorld> createLevelCache(LevelReader p_61188_, boolean p_61189_) 
- 
translateAndRotate
 
-