Enum Class TippedArrowPotion

java.lang.Object
java.lang.Enum<TippedArrowPotion>
org.geysermc.geyser.inventory.item.TippedArrowPotion
All Implemented Interfaces:
Serializable, Comparable<TippedArrowPotion>, Constable

public enum TippedArrowPotion extends Enum<TippedArrowPotion>
Potion identifiers and their respective Bedrock IDs used with arrows. https://minecraft.gamepedia.com/Arrow#Item_Data
  • Enum Constant Details

  • Method Details

    • values

      public static TippedArrowPotion[] 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

      public static TippedArrowPotion valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getByJavaIdentifier

      public static TippedArrowPotion getByJavaIdentifier(String javaIdentifier)
    • getByBedrockId

      public static TippedArrowPotion getByBedrockId(int bedrockId)
    • getByJavaColor

      public static TippedArrowPotion getByJavaColor(int color)
      Parameters:
      color - the potion color to look up
      Returns:
      the tipped arrow potion that most closely resembles that color.
    • getJavaIdentifier

      public String 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