public interface RespawnPlayerEvent extends TargetPlayerEvent, CauseTracked
Modifier and Type | Method and Description |
---|---|
Transform<World> |
getFromTransform()
Gets a copy of the transform that the entity came from.
|
Transform<World> |
getToTransform()
Gets the new transform that the
Player will change to. |
boolean |
isBedSpawn()
Gets whether the transform was set by a bed or not.
|
void |
setToTransform(Transform<World> respawnTransform)
Sets the new transform that the entity will change to.
|
getTargetEntity
getCause
Transform<World> getFromTransform()
Transform<World> getToTransform()
Player
will change to.void setToTransform(Transform<World> respawnTransform)
respawnTransform
- The new transformboolean isBedSpawn()