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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface io.papermc.paper.entity.TeleportFlagTeleportFlag.EntityState, TeleportFlag.Relative
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionstatic TeleportFlag.EntityStateReturns 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_PASSENGERSIf 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_VEHICLEIf 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_INVENTORYIndicates 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- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-