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> |
func_181627_a(World p_181627_0_,
boolean p_181627_1_) |
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 getThumbLength()
public int getPalmLength()
public BlockPattern.PatternHelper match(World worldIn, BlockPos pos)
public static <any> func_181627_a(World p_181627_0_, boolean p_181627_1_)
protected static BlockPos translateOffset(BlockPos pos, EnumFacing finger, EnumFacing thumb, int palmOffset, int thumbOffset, int fingerOffset)