Package net.minecraft.block
Class NetherPortalBlock.AreaHelper
java.lang.Object
net.minecraft.block.NetherPortalBlock.AreaHelper
- Enclosing class:
- NetherPortalBlock
public static class NetherPortalBlock.AreaHelper extends Object
-
Field Summary
Fields Modifier and Type Field Description private Direction.Axisaxisprivate intfoundPortalBlocksprivate intheightprivate BlockPoslowerCornerprivate DirectionnegativeDirprivate DirectionpositiveDirprivate intwidthprivate WorldAccessworld -
Constructor Summary
Constructors Constructor Description AreaHelper(WorldAccess world, BlockPos pos, Direction.Axis axis) -
Method Summary
Modifier and Type Method Description voidcreatePortal()protected intdistanceToPortalEdge(BlockPos pos, Direction dir)protected intfindHeight()intgetHeight()intgetWidth()booleanisValid()private booleanportalAlreadyExisted()protected booleanvalidStateInsidePortal(BlockState state)booleanwasAlreadyValid()
-
Field Details
-
world
-
axis
-
negativeDir
-
positiveDir
-
foundPortalBlocks
private int foundPortalBlocks -
lowerCorner
-
height
private int height -
width
private int width
-
-
Constructor Details
-
Method Details
-
distanceToPortalEdge
-
getHeight
public int getHeight() -
getWidth
public int getWidth() -
findHeight
protected int findHeight() -
validStateInsidePortal
-
isValid
public boolean isValid() -
createPortal
public void createPortal() -
portalAlreadyExisted
private boolean portalAlreadyExisted() -
wasAlreadyValid
public boolean wasAlreadyValid()
-