public class BlockPattern
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BlockPattern.PatternHelper |
static class |
BlockPattern.PortalInfo |
Constructor and Description |
---|
BlockPattern(java.util.function.Predicate<CachedBlockInfo>[][][] predicates) |
Modifier and Type | Method and Description |
---|---|
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) |
protected static BlockPos |
translateOffset(BlockPos pos,
Direction finger,
Direction thumb,
int palmOffset,
int thumbOffset,
int fingerOffset) |
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)