net.minecraft.world.level.portal

public class PortalShape

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

Field summary

Modifier and TypeField
private static final int
c
MIN_WIDTH
field_31825
MIN_WIDTH
public static final int
a
MAX_WIDTH
field_31823
MAX_WIDTH
private static final int
d
MIN_HEIGHT
field_31826
MIN_HEIGHT
public static final int
b
MAX_HEIGHT
field_31824
MAX_HEIGHT
private static final BlockBehaviour$StatePredicate
e
FRAME
field_25883
IS_VALID_FRAME_BLOCK
private static final float
f
SAFE_TRAVEL_MAX_ENTITY_XY
field_41086
FALLBACK_THRESHOLD
private static final double
g
SAFE_TRAVEL_MAX_VERTICAL_DELTA
field_41087
HEIGHT_STRETCH
private final Direction$Axis
h
axis
field_11317
axis
private final Direction
i
rightDir
field_11314
negativeDir
private final int
j
numPortalBlocks
field_11313
foundPortalBlocks
private final BlockPos
k
bottomLeft
field_11316
lowerCorner
private final int
l
height
field_11312
height
private final int
m
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<PortalShape>
a(dhj arg0, jh arg1, jm$a arg2)
findEmptyPortalShape(LevelAccessor arg0, BlockPos arg1, Direction$Axis arg2)
method_30485(class_1936 arg0, class_2338 arg1, class_2350$class_2351 arg2)
getNewPortal(WorldAccess world, BlockPos pos, Direction$Axis firstCheckedAxis)
public static Optional<PortalShape>
a(dhj arg0, jh arg1, Predicate<euw> arg2, jm$a arg3)
findPortalShape(LevelAccessor arg0, BlockPos arg1, Predicate<PortalShape> arg2, Direction$Axis arg3)
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 PortalShape
a(dgn arg0, jh arg1, jm$a arg2)
findAnyShape(BlockGetter arg0, BlockPos arg1, Direction$Axis arg2)
method_64314(class_1922 arg0, class_2338 arg1, class_2350$class_2351 arg2)
getOnAxis(BlockView world, BlockPos pos, Direction$Axis axis)
private static BlockPos
a(dgn arg0, jm arg1, jh arg2)
calculateBottomLeft(BlockGetter arg0, Direction arg1, BlockPos arg2)
method_30492(class_1922 arg0, class_2350 arg1, class_2338 arg2)
getLowerCorner(BlockView world, Direction direction, BlockPos pow)
private static int
a(dgn arg0, jh arg1, jm arg2)
calculateWidth(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_30495(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getValidatedWidth(BlockView world, BlockPos lowerCorner, Direction negativeDir)
private static int
b(dgn arg0, jh arg1, jm arg2)
getDistanceUntilEdgeAboveFrame(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_30493(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getWidth(BlockView world, BlockPos lowerCorner, Direction negativeDir)
private static int
a(dgn arg0, jh arg1, jm arg2, int arg3, org.apache.commons.lang3.mutable.MutableInt arg4)
calculateHeight(BlockGetter arg0, BlockPos arg1, Direction arg2, int arg3, org.apache.commons.lang3.mutable.MutableInt arg4)
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
a(dgn arg0, jh arg1, jm arg2, jh$a arg3, int arg4, int arg5)
hasTopFrame(BlockGetter arg0, BlockPos arg1, Direction arg2, BlockPos$MutableBlockPos arg3, int arg4, int arg5)
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
a(dgn arg0, jh arg1, jm arg2, jh$a arg3, int arg4, org.apache.commons.lang3.mutable.MutableInt arg5)
getDistanceUntilTop(BlockGetter arg0, BlockPos arg1, Direction arg2, BlockPos$MutableBlockPos arg3, int arg4, org.apache.commons.lang3.mutable.MutableInt arg5)
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
a(dxv arg0)
isEmpty(BlockState arg0)
method_10359(class_2680 arg0)
validStateInsidePortal(BlockState state)
public boolean
a()
isValid()
method_10360()
isValid()
public void
a(dhj arg0)
createPortalBlocks(LevelAccessor arg0)
method_10363(class_1936 arg0)
createPortal(WorldAccess world)
public boolean
b()
isComplete()
method_10362()
wasAlreadyValid()
public static Vec3
a(l$a arg0, jm$a arg1, fby arg2, bvn arg3)
getRelativePosition(BlockUtil$FoundRectangle arg0, Direction$Axis arg1, Vec3 arg2, EntityDimensions arg3)
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 Vec3
a(fby arg0, ash arg1, bvk arg2, bvn arg3)
findCollisionFreePosition(Vec3 arg0, ServerLevel arg1, Entity arg2, EntityDimensions arg3)
method_47382(class_243 arg0, class_3218 arg1, class_1297 arg2, class_4048 arg3)
findOpenPosition(Vec3d fallback, ServerWorld world, Entity entity, EntityDimensions dimensions)