Package io.papermc.paper.entity
Enum Class TeleportFlag.EntityState
- All Implemented Interfaces:
TeleportFlag
,Serializable
,Comparable<TeleportFlag.EntityState>
,Constable
- Enclosing interface:
- TeleportFlag
public static enum TeleportFlag.EntityState
extends Enum<TeleportFlag.EntityState>
implements TeleportFlag
Represents flags that effect the entity's state on
teleportation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface io.papermc.paper.entity.TeleportFlag
TeleportFlag.EntityState, TeleportFlag.Relative
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that a player should not have their current open inventory closed when teleporting.If all passengers should not be required to be removed prior to teleportation.If the entity should not be dismounted if they are riding another entity. -
Method Summary
Modifier and TypeMethodDescriptionstatic TeleportFlag.EntityState
Returns the enum constant of this class with the specified name.static TeleportFlag.EntityState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RETAIN_PASSENGERS
If all passengers should not be required to be removed prior to teleportation.Note: Teleporting to a different world with this flag present while the entity has entities riding it will cause this teleportation to return false and not occur.
-
RETAIN_VEHICLE
If the entity should not be dismounted if they are riding another entity.Note: Teleporting to a different world with this flag present while this entity is riding another entity will cause this teleportation to return false and not occur.
-
RETAIN_OPEN_INVENTORY
Indicates that a player should not have their current open inventory closed when teleporting.Note: This option will be ignored when teleported to a different world.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-