net.minecraft.world.dimension

public class NetherPortal

net.minecraft.world.level.portal.PortalShape
net.minecraft.world.level.portal.PortalShape
net.minecraft.class_2424
net.minecraft.world.dimension.NetherPortal

Field summary

Modifier and TypeField
private static final int
MIN_WIDTH
MIN_WIDTH
field_31825
MIN_WIDTH
public static final int
MAX_WIDTH
MAX_WIDTH
field_31823
MAX_WIDTH
private static final int
MIN_HEIGHT
MIN_HEIGHT
field_31826
MIN_HEIGHT
public static final int
MAX_HEIGHT
MAX_HEIGHT
field_31824
MAX_HEIGHT
public static final Predicate<BlockState>
FRAME
FRAME
field_25883
IS_VALID_FRAME_BLOCK
private static final float
SAFE_TRAVEL_MAX_ENTITY_XY
SAFE_TRAVEL_MAX_ENTITY_XY
field_41086
FALLBACK_THRESHOLD
private static final double
SAFE_TRAVEL_MAX_VERTICAL_DELTA
SAFE_TRAVEL_MAX_VERTICAL_DELTA
field_41087
HEIGHT_STRETCH
private final Direction$Axis
axis
axis
field_11317
axis
private final Direction
rightDir
rightDir
field_11314
negativeDir
private final int
numPortalBlocks
numPortalBlocks
field_11313
foundPortalBlocks
private final BlockPos
bottomLeft
bottomLeft
field_11316
lowerCorner
private final int
height
height
field_11312
height
private final int
width
width
field_11311
width

Constructor summary

ModifierConstructor
private (Direction$Axis axis, int foundPortalBlocks, Direction negativeDir, BlockPos lowerCorner, int width, int height)

Method summary

Modifier and TypeMethod
public static Optional<NetherPortal>
findEmptyPortalShape(LevelAccessor level, BlockPos pos, Direction$Axis preferredAxis)
findEmptyPortalShape(LevelAccessor level, BlockPos pos, Direction$Axis preferredAxis)
method_30485(class_1936 arg0, class_2338 arg1, class_2350$class_2351 arg2)
getNewPortal(WorldAccess world, BlockPos pos, Direction$Axis firstCheckedAxis)
public static Optional<NetherPortal>
findPortalShape(LevelAccessor level, BlockPos pos, Predicate<PortalShape> isValid, Direction$Axis preferredAxis)
findPortalShape(LevelAccessor level, BlockPos pos, Predicate<PortalShape> isValid, Direction$Axis preferredAxis)
method_30486(class_1936 arg0, class_2338 arg1, Predicate<class_2424> arg2, class_2350$class_2351 arg3)
getOrEmpty(WorldAccess world, BlockPos pos, Predicate<NetherPortal> validator, Direction$Axis firstCheckedAxis)
public static NetherPortal
findAnyShape(BlockGetter level, BlockPos pos, Direction$Axis axis)
findAnyShape(BlockGetter level, BlockPos pos, Direction$Axis axis)
method_64314(class_1922 arg0, class_2338 arg1, class_2350$class_2351 arg2)
getOnAxis(BlockView world, BlockPos pos, Direction$Axis axis)
private static BlockPos
calculateBottomLeft(BlockGetter level, Direction rightDir, BlockPos pos)
calculateBottomLeft(BlockGetter level, Direction rightDir, BlockPos pos)
method_30492(class_1922 arg0, class_2350 arg1, class_2338 arg2)
getLowerCorner(BlockView world, Direction direction, BlockPos pow)
private static int
calculateWidth(BlockGetter level, BlockPos bottomLeft, Direction rightDir)
calculateWidth(BlockGetter level, BlockPos bottomLeft, Direction rightDir)
method_30495(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getValidatedWidth(BlockView world, BlockPos lowerCorner, Direction negativeDir)
private static int
getDistanceUntilEdgeAboveFrame(BlockGetter level, BlockPos pos, Direction direction)
getDistanceUntilEdgeAboveFrame(BlockGetter level, BlockPos pos, Direction direction)
method_30493(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getWidth(BlockView world, BlockPos lowerCorner, Direction negativeDir)
private static int
calculateHeight(BlockGetter level, BlockPos bottomLeft, Direction rightDir, int width, org.apache.commons.lang3.mutable.MutableInt portalBlockCount)
calculateHeight(BlockGetter level, BlockPos bottomLeft, Direction rightDir, int width, org.apache.commons.lang3.mutable.MutableInt portalBlockCount)
method_30496(class_1922 arg0, class_2338 arg1, class_2350 arg2, int arg3, org.apache.commons.lang3.mutable.MutableInt arg4)
getHeight(BlockView world, BlockPos lowerCorner, Direction negativeDir, int width, org.apache.commons.lang3.mutable.MutableInt foundPortalBlocks)
private static boolean
hasTopFrame(BlockGetter level, BlockPos bottomLeft, Direction rightDir, BlockPos$MutableBlockPos pos, int width, int height)
hasTopFrame(BlockGetter level, BlockPos bottomLeft, Direction rightDir, BlockPos$MutableBlockPos pos, int width, int height)
method_30491(class_1922 arg0, class_2338 arg1, class_2350 arg2, class_2338$class_2339 arg3, int arg4, int arg5)
isHorizontalFrameValid(BlockView world, BlockPos lowerCorner, Direction direction, BlockPos$Mutable pos, int width, int height)
private static int
getDistanceUntilTop(BlockGetter level, BlockPos bottomLeft, Direction rightDir, BlockPos$MutableBlockPos pos, int width, org.apache.commons.lang3.mutable.MutableInt portalBlockCount)
getDistanceUntilTop(BlockGetter level, BlockPos bottomLeft, Direction rightDir, BlockPos$MutableBlockPos pos, int width, org.apache.commons.lang3.mutable.MutableInt portalBlockCount)
method_30490(class_1922 arg0, class_2338 arg1, class_2350 arg2, class_2338$class_2339 arg3, int arg4, org.apache.commons.lang3.mutable.MutableInt arg5)
getPotentialHeight(BlockView world, BlockPos lowerCorner, Direction negativeDir, BlockPos$Mutable pos, int width, org.apache.commons.lang3.mutable.MutableInt foundPortalBlocks)
private static boolean
isEmpty(BlockState state)
isEmpty(BlockState state)
method_10359(class_2680 arg0)
validStateInsidePortal(BlockState state)
public boolean
isValid()
isValid()
method_10360()
isValid()
public void
createPortalBlocks(LevelAccessor level)
createPortalBlocks(LevelAccessor level)
method_10363(class_1936 arg0)
createPortal(WorldAccess world)
public boolean
isComplete()
isComplete()
method_10362()
wasAlreadyValid()
public static Vec3d
getRelativePosition(BlockUtil$FoundRectangle largestRectangleAround, Direction$Axis axis, Vec3 position, EntityDimensions dimensions)
getRelativePosition(BlockUtil$FoundRectangle largestRectangleAround, Direction$Axis axis, Vec3 position, EntityDimensions dimensions)
method_30494(class_5459$class_5460 arg0, class_2350$class_2351 arg1, class_243 arg2, class_4048 arg3)
entityPosInPortal(BlockLocating$Rectangle portalRect, Direction$Axis portalAxis, Vec3d entityPos, EntityDimensions entityDimensions)
public static Vec3d
findCollisionFreePosition(Vec3 bottomCenter, ServerLevel serverLevel, Entity entity, EntityDimensions dimensions)
findCollisionFreePosition(Vec3 bottomCenter, ServerLevel serverLevel, Entity entity, EntityDimensions dimensions)
method_47382(class_243 arg0, class_3218 arg1, class_1297 arg2, class_4048 arg3)
findOpenPosition(Vec3d fallback, ServerWorld world, Entity entity, EntityDimensions dimensions)