private static class CommandSetDimension.CommandTeleporter extends java.lang.Object implements ITeleporter
| Modifier | Constructor and Description |
|---|---|
private |
CommandTeleporter(BlockPos targetPos) |
| Modifier and Type | Method and Description |
|---|---|
void |
placeEntity(World world,
Entity entity,
float yaw)
Called to handle placing the entity in the new world.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisVanillaprivate final BlockPos targetPos
private CommandTeleporter(BlockPos targetPos)
public void placeEntity(World world, Entity entity, float yaw)
ITeleporterWorldProvider.getMovementFactor()).
Note that the supplied entity has not yet been spawned
in the destination world at the time.placeEntity in interface ITeleporterworld - the entity's destinationentity - the entity to be placedyaw - the suggested yaw value to apply