public class BlockPattern
extends java.lang.Object
修飾子とタイプ | クラスと説明 |
---|---|
static class |
BlockPattern.PatternHelper |
static class |
BlockPattern.PortalInfo |
コンストラクタと説明 |
---|
BlockPattern(java.util.function.Predicate<CachedBlockInfo>[][][] predicates) |
修飾子とタイプ | メソッドと説明 |
---|---|
static com.google.common.cache.LoadingCache<BlockPos,CachedBlockInfo> |
createLoadingCache(IWorldReader worldIn,
boolean forceLoadIn) |
int |
getFingerLength() |
int |
getPalmLength() |
int |
getThumbLength() |
BlockPattern.PatternHelper |
match(IWorldReader worldIn,
BlockPos pos)
Calculates whether the given world position matches the pattern.
|
protected static BlockPos |
translateOffset(BlockPos pos,
Direction finger,
Direction thumb,
int palmOffset,
int thumbOffset,
int fingerOffset)
Offsets the position of pos in the direction of finger and thumb facing by offset amounts, follows the right-hand
rule for cross products (finger, thumb, palm) @return A new BlockPos offset in the facing directions
|
public BlockPattern(java.util.function.Predicate<CachedBlockInfo>[][][] predicates)
public int getFingerLength()
public int getThumbLength()
public int getPalmLength()
@Nullable public BlockPattern.PatternHelper match(IWorldReader worldIn, BlockPos pos)
public static com.google.common.cache.LoadingCache<BlockPos,CachedBlockInfo> createLoadingCache(IWorldReader worldIn, boolean forceLoadIn)
protected static BlockPos translateOffset(BlockPos pos, Direction finger, Direction thumb, int palmOffset, int thumbOffset, int fingerOffset)