public class BlockPattern
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BlockPattern.PatternHelper |
Constructor and Description |
---|
BlockPattern(com.google.common.base.Predicate<BlockWorldState>[][][] predicatesIn) |
Modifier and Type | Method and Description |
---|---|
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) |
public BlockPattern(com.google.common.base.Predicate<BlockWorldState>[][][] predicatesIn)
public int getFingerLength()
public int getThumbLength()
public int getPalmLength()
@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)