Package net.minecraft.world.level.portal
Class PortalForcer
java.lang.Object
net.minecraft.world.level.portal.PortalForcer
- All Implemented Interfaces:
ITeleporter
-
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
private static final int
protected final ServerLevel
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_) findPortalAround
(BlockPos p_192986_, boolean p_192987_, WorldBorder p_192988_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.util.ITeleporter
getPortalInfo, isVanilla, placeEntity, playTeleportSound
-
Field Details
-
TICKET_RADIUS
public static final int TICKET_RADIUS- See Also:
-
SEARCH_RADIUS
private static final int SEARCH_RADIUS- See Also:
-
CREATE_RADIUS
private static final int CREATE_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
-
findPortalAround
public Optional<BlockUtil.FoundRectangle> findPortalAround(BlockPos p_192986_, boolean p_192987_, WorldBorder p_192988_) -
createPortal
-
canPortalReplaceBlock
-
canHostFrame
private boolean canHostFrame(BlockPos p_77662_, BlockPos.MutableBlockPos p_77663_, Direction p_77664_, int p_77665_)
-