Interface TeleportFlag

All Known Implementing Classes:
TeleportFlag.EntityState, TeleportFlag.Relative

public sealed interface TeleportFlag permits TeleportFlag.EntityState, TeleportFlag.Relative
Represents a flag that can be set on teleportation that may slightly modify the behavior.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Deprecated, for removal: This API element is subject to removal in a future version.
    As of 1.21.10, the default behavior for teleportation is now aligned with vanilla behavior.
    static enum 
    Relative flags enable an entity to not lose their velocity in the flag-specific axis/context when teleporting.