Package net.minecraft.world
Class Teleporter
- java.lang.Object
-
- net.minecraft.world.Teleporter
-
- All Implemented Interfaces:
ITeleporter
public class Teleporter extends java.lang.Object implements ITeleporter
-
-
Field Summary
Fields Modifier and Type Field Description protected ServerWorld
level
-
Constructor Summary
Constructors Constructor Description Teleporter(ServerWorld p_i1963_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
canHostFrame(BlockPos p_242955_1_, BlockPos.Mutable p_242955_2_, Direction p_242955_3_, int p_242955_4_)
java.util.Optional<TeleportationRepositioner.Result>
createPortal(BlockPos p_242956_1_, Direction.Axis p_242956_2_)
java.util.Optional<TeleportationRepositioner.Result>
findPortalAround(BlockPos p_242957_1_, boolean p_242957_2_)
-
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 Detail
-
level
protected final ServerWorld level
-
-
Constructor Detail
-
Teleporter
public Teleporter(ServerWorld p_i1963_1_)
-
-
Method Detail
-
findPortalAround
public java.util.Optional<TeleportationRepositioner.Result> findPortalAround(BlockPos p_242957_1_, boolean p_242957_2_)
-
createPortal
public java.util.Optional<TeleportationRepositioner.Result> createPortal(BlockPos p_242956_1_, Direction.Axis p_242956_2_)
-
canHostFrame
private boolean canHostFrame(BlockPos p_242955_1_, BlockPos.Mutable p_242955_2_, Direction p_242955_3_, int p_242955_4_)
-
-