类 BlockPattern
java.lang.Object
net.minecraft.world.level.block.state.pattern.BlockPattern
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static class
static class
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static com.google.common.cache.LoadingCache<BlockPos,
BlockInWorld> createLevelCache
(LevelReader pLevel, boolean pForceLoad) find
(LevelReader pLevel, BlockPos pPos) int
getDepth()
int
Predicate<BlockInWorld>[][][]
int
getWidth()
private BlockPattern.BlockPatternMatch
matches
(BlockPos pPos, Direction pFinger, Direction pThumb, com.google.common.cache.LoadingCache<BlockPos, BlockInWorld> pCache) matches
(LevelReader pLevel, BlockPos pPos, Direction pFinger, Direction pThumb) protected static BlockPos
translateAndRotate
(BlockPos pPos, Direction pFinger, Direction pThumb, int pPalmOffset, int pThumbOffset, int pFingerOffset)
-
字段详细资料
-
pattern
-
depth
private final int depth -
height
private final int height -
width
private final int width
-
-
构造器详细资料
-
BlockPattern
-
-
方法详细资料
-
getDepth
public int getDepth() -
getHeight
public int getHeight() -
getWidth
public int getWidth() -
getPattern
-
matches
@Nullable public BlockPattern.BlockPatternMatch matches(LevelReader pLevel, BlockPos pPos, Direction pFinger, Direction pThumb) -
matches
@Nullable private BlockPattern.BlockPatternMatch matches(BlockPos pPos, Direction pFinger, Direction pThumb, com.google.common.cache.LoadingCache<BlockPos, BlockInWorld> pCache) -
find
-
createLevelCache
public static com.google.common.cache.LoadingCache<BlockPos,BlockInWorld> createLevelCache(LevelReader pLevel, boolean pForceLoad) -
translateAndRotate
-