public class BlockPattern
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
BlockPattern.CacheLoader |
static class |
BlockPattern.PatternHelper |
Modifier and Type | Field and Description |
---|---|
private com.google.common.base.Predicate<BlockWorldState>[][][] |
blockMatches |
private int |
fingerLength |
private int |
palmLength |
private int |
thumbLength |
Constructor and Description |
---|
BlockPattern(com.google.common.base.Predicate<BlockWorldState>[][][] predicatesIn) |
Modifier and Type | Method and Description |
---|---|
private BlockPattern.PatternHelper |
checkPatternAt(BlockPos pos,
EnumFacing finger,
EnumFacing thumb,
com.google.common.cache.LoadingCache<BlockPos,BlockWorldState> lcache) |
static com.google.common.cache.LoadingCache<BlockPos,BlockWorldState> |
createLoadingCache(World worldIn,
boolean forceLoadIn) |
int |
getFingerLength() |
int |
getPalmLength() |
int |
getThumbLength() |
BlockPattern.PatternHelper |
match(World worldIn,
BlockPos pos) |
protected static BlockPos |
translateOffset(BlockPos pos,
EnumFacing finger,
EnumFacing thumb,
int palmOffset,
int thumbOffset,
int fingerOffset) |
private final com.google.common.base.Predicate<BlockWorldState>[][][] blockMatches
private final int fingerLength
private final int thumbLength
private final int palmLength
public BlockPattern(com.google.common.base.Predicate<BlockWorldState>[][][] predicatesIn)
public int getFingerLength()
public int getThumbLength()
public int getPalmLength()
@Nullable private BlockPattern.PatternHelper checkPatternAt(BlockPos pos, EnumFacing finger, EnumFacing thumb, com.google.common.cache.LoadingCache<BlockPos,BlockWorldState> lcache)
@Nullable public BlockPattern.PatternHelper match(World worldIn, BlockPos pos)
public static com.google.common.cache.LoadingCache<BlockPos,BlockWorldState> createLoadingCache(World worldIn, boolean forceLoadIn)
protected static BlockPos translateOffset(BlockPos pos, EnumFacing finger, EnumFacing thumb, int palmOffset, int thumbOffset, int fingerOffset)