Package net.minecraft.world.level.portal
Class PortalForcer
java.lang.Object
net.minecraft.world.level.portal.PortalForcer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
protected final ServerLevel
private static final int
private static final int
private static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canHostFrame
(BlockPos p_77662_, BlockPos.MutableBlockPos p_77663_, Direction p_77664_, int p_77665_) private boolean
canPortalReplaceBlock
(BlockPos.MutableBlockPos p_248971_) createPortal
(BlockPos p_77667_, Direction.Axis p_77668_) findClosestPortalPosition
(BlockPos p_345495_, boolean p_345384_, WorldBorder p_344228_)
-
Field Details
-
TICKET_RADIUS
public static final int TICKET_RADIUS- See Also:
-
NETHER_PORTAL_RADIUS
private static final int NETHER_PORTAL_RADIUS- See Also:
-
OVERWORLD_PORTAL_RADIUS
private static final int OVERWORLD_PORTAL_RADIUS- See Also:
-
FRAME_HEIGHT
private static final int FRAME_HEIGHT- See Also:
-
FRAME_WIDTH
private static final int FRAME_WIDTH- See Also:
-
FRAME_BOX
private static final int FRAME_BOX- See Also:
-
FRAME_HEIGHT_START
private static final int FRAME_HEIGHT_START- See Also:
-
FRAME_HEIGHT_END
private static final int FRAME_HEIGHT_END- See Also:
-
FRAME_WIDTH_START
private static final int FRAME_WIDTH_START- See Also:
-
FRAME_WIDTH_END
private static final int FRAME_WIDTH_END- See Also:
-
FRAME_BOX_START
private static final int FRAME_BOX_START- See Also:
-
FRAME_BOX_END
private static final int FRAME_BOX_END- See Also:
-
NOTHING_FOUND
private static final int NOTHING_FOUND- See Also:
-
level
-
-
Constructor Details
-
PortalForcer
-
-
Method Details
-
findClosestPortalPosition
public Optional<BlockPos> findClosestPortalPosition(BlockPos p_345495_, boolean p_345384_, WorldBorder p_344228_) -
createPortal
-
canPortalReplaceBlock
-
canHostFrame
private boolean canHostFrame(BlockPos p_77662_, BlockPos.MutableBlockPos p_77663_, Direction p_77664_, int p_77665_)
-