public static class BlockPortal.Size
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private EnumFacing.Axis |
axis |
private BlockPos |
bottomLeft |
private int |
height |
private EnumFacing |
leftDir |
private int |
portalBlockCount |
private EnumFacing |
rightDir |
private int |
width |
private World |
world |
Constructor and Description |
---|
Size(World worldIn,
BlockPos p_i45694_2_,
EnumFacing.Axis p_i45694_3_) |
Modifier and Type | Method and Description |
---|---|
protected int |
calculatePortalHeight() |
protected int |
getDistanceUntilEdge(BlockPos p_180120_1_,
EnumFacing p_180120_2_) |
int |
getHeight() |
int |
getWidth() |
protected boolean |
isEmptyBlock(Block blockIn) |
boolean |
isValid() |
void |
placePortalBlocks() |
private final World world
private final EnumFacing.Axis axis
private final EnumFacing rightDir
private final EnumFacing leftDir
private int portalBlockCount
private BlockPos bottomLeft
private int height
private int width
public Size(World worldIn, BlockPos p_i45694_2_, EnumFacing.Axis p_i45694_3_)
protected int getDistanceUntilEdge(BlockPos p_180120_1_, EnumFacing p_180120_2_)
public int getHeight()
public int getWidth()
protected int calculatePortalHeight()
protected boolean isEmptyBlock(Block blockIn)
public boolean isValid()
public void placePortalBlocks()