public static class NetherPortalBlock.AreaHelper extends Object
Modifier and Type | Field and Description |
---|---|
private Direction.Axis |
axis |
private int |
foundPortalBlocks |
private int |
height |
private BlockPos |
lowerCorner |
private Direction |
negativeDir |
private Direction |
positiveDir |
private int |
width |
private IWorld |
world |
Constructor and Description |
---|
AreaHelper(IWorld world,
BlockPos pos,
Direction.Axis axis) |
Modifier and Type | Method and Description |
---|---|
void |
createPortal() |
protected int |
distanceToPortalEdge(BlockPos pos,
Direction dir) |
protected int |
findHeight() |
int |
getHeight() |
int |
getWidth() |
boolean |
isValid() |
private boolean |
portalAlreadyExisted() |
protected boolean |
validStateInsidePortal(BlockState state) |
boolean |
wasAlreadyValid() |
private final IWorld world
private final Direction.Axis axis
private final Direction negativeDir
private final Direction positiveDir
private int foundPortalBlocks
private int height
private int width
public AreaHelper(IWorld world, BlockPos pos, Direction.Axis axis)
public int getHeight()
public int getWidth()
protected int findHeight()
protected boolean validStateInsidePortal(BlockState state)
public boolean isValid()
public void createPortal()
private boolean portalAlreadyExisted()
public boolean wasAlreadyValid()