Package net.minecraft.block
Class PortalSize
java.lang.Object
net.minecraft.block.PortalSize
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Direction.Axis
private BlockPos
private static final AbstractBlock.IPositionPredicate
private int
private final IWorld
private int
private final Direction
private int
-
Constructor Summary
ConstructorDescriptionPortalSize
(IWorld p_i48740_1_, BlockPos p_i48740_2_, Direction.Axis p_i48740_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate BlockPos
calculateBottomLeft
(BlockPos p_242971_1_) private int
private int
void
static PortalInfo
createPortalInfo
(ServerWorld p_242963_0_, TeleportationRepositioner.Result p_242963_1_, Direction.Axis p_242963_2_, Vector3d p_242963_3_, EntitySize p_242963_4_, Vector3d p_242963_5_, float p_242963_6_, float p_242963_7_) static Optional<PortalSize>
findEmptyPortalShape
(IWorld p_242964_0_, BlockPos p_242964_1_, Direction.Axis p_242964_2_) static Optional<PortalSize>
findPortalShape
(IWorld p_242965_0_, BlockPos p_242965_1_, Predicate<PortalSize> p_242965_2_, Direction.Axis p_242965_3_) private int
getDistanceUntilEdgeAboveFrame
(BlockPos p_242972_1_, Direction p_242972_2_) private int
getDistanceUntilTop
(BlockPos.Mutable p_242969_1_) static Vector3d
getRelativePosition
(TeleportationRepositioner.Result p_242973_0_, Direction.Axis p_242973_1_, Vector3d p_242973_2_, EntitySize p_242973_3_) private boolean
hasTopFrame
(BlockPos.Mutable p_242970_1_, int p_242970_2_) boolean
private static boolean
isEmpty
(BlockState p_196900_0_) boolean
isValid()
-
Field Details
-
FRAME
-
level
-
axis
-
rightDir
-
numPortalBlocks
private int numPortalBlocks -
bottomLeft
-
height
private int height -
width
private int width
-
-
Constructor Details
-
PortalSize
-
-
Method Details
-
findEmptyPortalShape
public static Optional<PortalSize> findEmptyPortalShape(IWorld p_242964_0_, BlockPos p_242964_1_, Direction.Axis p_242964_2_) -
findPortalShape
public static Optional<PortalSize> findPortalShape(IWorld p_242965_0_, BlockPos p_242965_1_, Predicate<PortalSize> p_242965_2_, Direction.Axis p_242965_3_) -
calculateBottomLeft
-
calculateWidth
private int calculateWidth() -
getDistanceUntilEdgeAboveFrame
-
calculateHeight
private int calculateHeight() -
hasTopFrame
-
getDistanceUntilTop
-
isEmpty
-
isValid
public boolean isValid() -
createPortalBlocks
public void createPortalBlocks() -
isComplete
public boolean isComplete() -
getRelativePosition
public static Vector3d getRelativePosition(TeleportationRepositioner.Result p_242973_0_, Direction.Axis p_242973_1_, Vector3d p_242973_2_, EntitySize p_242973_3_) -
createPortalInfo
public static PortalInfo createPortalInfo(ServerWorld p_242963_0_, TeleportationRepositioner.Result p_242963_1_, Direction.Axis p_242963_2_, Vector3d p_242963_3_, EntitySize p_242963_4_, Vector3d p_242963_5_, float p_242963_6_, float p_242963_7_)
-