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, wait
isVanilla
private final BlockPos targetPos
private CommandTeleporter(BlockPos targetPos)
public void placeEntity(World world, Entity entity, float yaw)
ITeleporter
WorldProvider.getMovementFactor()
).
Note that the supplied entity has not yet been spawned
in the destination world at the time.placeEntity
in interface ITeleporter
world
- the entity's destinationentity
- the entity to be placedyaw
- the suggested yaw value to apply