public class Teleporter extends java.lang.Object implements ITeleporter
Modifier and Type | Field and Description |
---|---|
protected java.util.Random |
random |
protected ServerWorld |
world |
Constructor and Description |
---|
Teleporter(ServerWorld worldIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
makePortal(Entity entityIn) |
BlockPattern.PortalInfo |
placeInExistingPortal(BlockPos p_222272_1_,
Vec3d p_222272_2_,
Direction directionIn,
double p_222272_4_,
double p_222272_6_,
boolean p_222272_8_) |
boolean |
placeInPortal(Entity p_222268_1_,
float p_222268_2_) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
placeEntity
protected final ServerWorld world
protected final java.util.Random random
public Teleporter(ServerWorld worldIn)
public boolean placeInPortal(Entity p_222268_1_, float p_222268_2_)
@Nullable public BlockPattern.PortalInfo placeInExistingPortal(BlockPos p_222272_1_, Vec3d p_222272_2_, Direction directionIn, double p_222272_4_, double p_222272_6_, boolean p_222272_8_)
public boolean makePortal(Entity entityIn)