Package net.minecraft.entity.projectile
Enum PersistentProjectileEntity.PickupPermission
java.lang.Object
java.lang.Enum<PersistentProjectileEntity.PickupPermission>
net.minecraft.entity.projectile.PersistentProjectileEntity.PickupPermission
- All Implemented Interfaces:
Serializable
,Comparable<PersistentProjectileEntity.PickupPermission>
,java.lang.constant.Constable
- Enclosing class:
- PersistentProjectileEntity
public static enum PersistentProjectileEntity.PickupPermission extends Enum<PersistentProjectileEntity.PickupPermission>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOWED
CREATIVE_ONLY
DISALLOWED
-
Constructor Summary
Constructors Modifier Constructor Description private
PickupPermission()
-
Method Summary
Modifier and Type Method Description static PersistentProjectileEntity.PickupPermission
fromOrdinal(int ordinal)
static PersistentProjectileEntity.PickupPermission
valueOf(String name)
Returns the enum constant of this type with the specified name.static PersistentProjectileEntity.PickupPermission[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DISALLOWED
-
ALLOWED
-
CREATIVE_ONLY
-
-
Constructor Details
-
PickupPermission
private PickupPermission()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromOrdinal
-