public class BlockPattern
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BlockPattern.PatternHelper |
Constructor and Description |
---|
BlockPattern(<any>[][][] predicatesIn) |
Modifier and Type | Method and Description |
---|---|
static <any> |
createLoadingCache(World worldIn,
boolean forceLoadIn) |
int |
getFingerLength() |
int |
getPalmLength() |
int |
getThumbLength() |
BlockPattern.PatternHelper |
match(World worldIn,
BlockPos pos)
Calculates whether the given world position matches the pattern.
|
protected static BlockPos |
translateOffset(BlockPos pos,
EnumFacing finger,
EnumFacing 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 int getFingerLength()
public int getThumbLength()
public int getPalmLength()
public BlockPattern.PatternHelper match(World worldIn, BlockPos pos)
public static <any> createLoadingCache(World worldIn, boolean forceLoadIn)
protected static BlockPos translateOffset(BlockPos pos, EnumFacing finger, EnumFacing thumb, int palmOffset, int thumbOffset, int fingerOffset)