Enum Class O2ItemType
- All Implemented Interfaces:
Serializable,Comparable<O2ItemType>,Constable
All custom special items in Ollivanders2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionpotion ingredientpotion ingredientpotion ingredientunenchanted broomstickpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientenchanted broomstickpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientWand corepotion ingredientpotion ingredientdivination objectthe elder wandpotion ingredientpotion ingredientfloo powderpotion ingredientpotion ingredientpotion ingredientwizard moneypotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientlegacy wand corepotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientan invisibility cloakpotion ingredientwand corepotion ingredientwizard moneypotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientcauldron for making potionswand coredivination objectpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientwizard moneypotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientpotion ingredientdivination objectdivination objectpotion ingredient, wand corepotion ingredientpotion ingredientpotion ingredientwand coreunenchanted wandpotion ingredientpotion ingredient -
Method Summary
Modifier and TypeMethodDescription@Nullable org.bukkit.inventory.ItemStackgetItem(int amount) Get an ItemStack of this item type@Nullable ItemEnchantmentTypeget the enchantment on this item@NotNull StringgetLore()get the lore for this item@NotNull org.bukkit.Materialget the material for this item@NotNull StringgetName()get the name of this itemstatic @Nullable O2ItemTypegetTypeByName(@NotNull String itemName) Get the item type by namebooleanisItemThisType(@NotNull org.bukkit.entity.Item item) Is the specified ItemStack this item typebooleanisItemThisType(@NotNull org.bukkit.inventory.ItemStack itemStack) Is the specified ItemStack this item typevoidsetMaterial(@NotNull org.bukkit.Material m) Set the material for this itemstatic O2ItemTypeReturns the enum constant of this class with the specified name.static O2ItemType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACONITE
potion ingredient -
ARMADILLO_BILE
potion ingredient -
ASPHODEL
potion ingredient -
BASIC_BROOM
unenchanted broomstick -
BAT_SPLEEN
potion ingredient -
BEZOAR
potion ingredient -
BILLYWIG_STING_SLIME
potion ingredient -
BLOOD
potion ingredient -
BOOM_BERRY_JUICE
potion ingredient -
BOOMSLANG_SKIN
potion ingredient -
BONE
potion ingredient -
BROOMSTICK
enchanted broomstick -
BURSTING_MUSHROOM
potion ingredient -
CHIZPURFLE_FANGS
potion ingredient -
CHOPPED_MALLOW_LEAVES
potion ingredient -
CRUSHED_CATS_EYE_OPAL
potion ingredient -
CRUSHED_FIRE_SEEDS
potion ingredient -
CRUSHED_GURDYROOT
potion ingredient -
DAISY_ROOTS
potion ingredient -
DEATHS_HEAD_MOTH_CHRYSALIS
potion ingredient -
DEW_DROP
potion ingredient -
DITTANY
potion ingredient -
DOXY_VENOM
potion ingredient -
DRAGON_BLOOD
potion ingredient -
DRAGON_HEARTSTRING
Wand core -
DRAGONFLY_THORAXES
potion ingredient -
DRIED_NETTLES
potion ingredient -
EGG
divination object -
ELDER_WAND
the elder wand -
FAIRY_WING
potion ingredient -
FLOBBERWORM_MUCUS
potion ingredient -
FLUXWEED
potion ingredient -
FLOO_POWDER
floo powder -
FULGURITE
potion ingredient -
GALANTHUS_NIVALIS
potion ingredient -
GALLEON
wizard money -
GINGER_ROOT
potion ingredient -
GROUND_DRAGON_HORN
potion ingredient -
GROUND_PORCUPINE_QUILLS
potion ingredient -
GROUND_SCARAB_BEETLE
potion ingredient -
GROUND_SNAKE_FANGS
potion ingredient -
GUNPOWDER
legacy wand core -
HONEYWATER
potion ingredient -
HORKLUMP_JUICE
potion ingredient -
HORNED_SLUG_MUCUS
potion ingredient -
HORN_OF_BICORN
potion ingredient -
INFUSION_OF_COWBANE
potion ingredient -
INFUSION_OF_WORMWOOD
potion ingredient -
INVISIBILITY_CLOAK
an invisibility cloak -
JOBBERKNOLL_FEATHER
potion ingredient -
KELPIE_HAIR
wand core -
KNOTGRASS
potion ingredient -
KNUT
wizard money -
LACEWING_FLIES
potion ingredient -
LAVENDER_SPRIG
potion ingredient -
LEECH_JUICE
potion ingredient -
LEECHES
potion ingredient -
LETHE_RIVER_WATER
potion ingredient -
LIONFISH_SPINES
potion ingredient -
MANDRAKE_LEAF
potion ingredient -
MERCURY
potion ingredient -
MINT_SPRIG
potion ingredient -
MISTLETOE_BERRIES
potion ingredient -
MOONCALF_MILK
potion ingredient -
MOONDEW_DROP
potion ingredient -
PEWTER_CAULDRON
cauldron for making potions -
PHOENIX_FEATHER
wand core -
PLAYING_CARDS
divination object -
POISONOUS_POTATO
potion ingredient -
POWDERED_ASHPODEL_ROOT
potion ingredient -
POWDERED_GRIFFIN_CLAW
potion ingredient -
POWDERED_SAGE
potion ingredient -
PUFFERFISH_EYE
potion ingredient -
RAT_SPLEEN
potion ingredient -
ROTTEN_FLESH
potion ingredient -
RUNESPOOR_EGG
potion ingredient -
SALAMANDER_BLOOD
potion ingredient -
SALAMANDER_FIRE
potion ingredient -
SHRIVELIG
potion ingredient -
SICKLE
wizard money -
SLICED_CATERPILLARS
potion ingredient -
SLOTH_BRAIN
potion ingredient -
SLOTH_BRAIN_MUCUS
potion ingredient -
SOPOPHORUS_BEAN_JUICE
potion ingredient -
SPIDER_EYE
potion ingredient -
STANDARD_POTION_INGREDIENT
potion ingredient -
TAROT_CARDS
divination object -
TEA_LEAVES
divination object -
UNICORN_HAIR
potion ingredient, wand core -
UNICORN_HORN
potion ingredient -
VALERIAN_SPRIGS
potion ingredient -
VALERIAN_ROOT
potion ingredient -
VEELA_HAIR
wand core -
WAND
unenchanted wand -
WARTCAP_POWDER
potion ingredient -
WOLFSBANE
potion ingredient
-
-
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
-
getName
get the name of this item- Returns:
- the name of this item
-
getLore
get the lore for this item- Returns:
- the lore for this item or its name if there is no lore
-
getMaterial
@NotNull public @NotNull org.bukkit.Material getMaterial()get the material for this item- Returns:
- the material type for this item
-
getItemEnchantment
get the enchantment on this item- Returns:
- the enchantment for this item if there is one, null otherwise
-
setMaterial
public void setMaterial(@NotNull @NotNull org.bukkit.Material m) Set the material for this item- Parameters:
m- the material type
-
getTypeByName
Get the item type by name- Parameters:
itemName- the name of the item- Returns:
- the type if found, null otherwise
-
isItemThisType
public boolean isItemThisType(@NotNull @NotNull org.bukkit.entity.Item item) Is the specified ItemStack this item type- Parameters:
item- the item to check- Returns:
- true if it is this type, false otherwise
-
isItemThisType
public boolean isItemThisType(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) Is the specified ItemStack this item type- Parameters:
itemStack- the item stack to check- Returns:
- true if it is this type, false otherwise
-
getItem
@Nullable public @Nullable org.bukkit.inventory.ItemStack getItem(int amount) Get an ItemStack of this item type- Parameters:
amount- the amount of items in the stack- Returns:
- an ItemStack of this item
-