Enum Class TippedArrowPotion
- All Implemented Interfaces:
Serializable
,Comparable<TippedArrowPotion>
,Constable
Potion identifiers and their respective Bedrock IDs used with arrows.
https://minecraft.gamepedia.com/Arrow#Item_Data
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionshort
static TippedArrowPotion
getByBedrockId(int bedrockId)
static TippedArrowPotion
getByJavaColor(int color)
static TippedArrowPotion
getByJavaIdentifier(String javaIdentifier)
int
The Java color associated with this ID.static TippedArrowPotion
Returns the enum constant of this class with the specified name.static TippedArrowPotion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MUNDANE
-
THICK
-
AWKWARD
-
NIGHT_VISION
-
LONG_NIGHT_VISION
-
INVISIBILITY
-
LONG_INVISIBILITY
-
LEAPING
-
LONG_LEAPING
-
STRONG_LEAPING
-
FIRE_RESISTANCE
-
LONG_FIRE_RESISTANCE
-
SWIFTNESS
-
LONG_SWIFTNESS
-
STRONG_SWIFTNESS
-
SLOWNESS
-
LONG_SLOWNESS
-
STRONG_SLOWNESS
-
WATER_BREATHING
-
LONG_WATER_BREATHING
-
HEALING
-
STRONG_HEALING
-
HARMING
-
STRONG_HARMING
-
POISON
-
LONG_POISON
-
STRONG_POISON
-
REGENERATION
-
LONG_REGENERATION
-
STRONG_REGENERATION
-
STRENGTH
-
LONG_STRENGTH
-
STRONG_STRENGTH
-
WEAKNESS
-
LONG_WEAKNESS
-
LUCK
-
TURTLE_MASTER
-
LONG_TURTLE_MASTER
-
STRONG_TURTLE_MASTER
-
SLOW_FALLING
-
LONG_SLOW_FALLING
-
-
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
-
getByJavaIdentifier
-
getByBedrockId
-
getByJavaColor
- Parameters:
color
- the potion color to look up- Returns:
- the tipped arrow potion that most closely resembles that color.
-
getJavaIdentifier
-
getBedrockId
public short getBedrockId() -
getJavaColor
public int getJavaColor()The Java color associated with this ID. Used for looking up Java arrow color entity metadata as Bedrock potion IDs, which is what is used for entities in Bedrock
-