| Modifier and Type | Field and Description |
|---|---|
static int |
AWKWARD |
static int |
DECAY |
static int |
FIRE_RESISTANCE |
static int |
FIRE_RESISTANCE_LONG |
static int |
HARMING |
static int |
HARMING_II |
static int |
INSTANT_HEALTH |
static int |
INSTANT_HEALTH_II |
static int |
INVISIBLE |
static int |
INVISIBLE_LONG |
static int |
LEAPING |
static int |
LEAPING_II |
static int |
LEAPING_LONG |
static int |
MUNDANE |
static int |
MUNDANE_II |
static int |
NIGHT_VISION |
static int |
NIGHT_VISION_LONG |
static int |
NO_EFFECTS |
static int |
POISON |
static int |
POISON_II |
static int |
POISON_LONG |
static int |
REGENERATION |
static int |
REGENERATION_II |
static int |
REGENERATION_LONG |
static int |
SLOWNESS |
static int |
SLOWNESS_LONG |
static int |
SPEED |
static int |
SPEED_II |
static int |
SPEED_LONG |
static int |
STRENGTH |
static int |
STRENGTH_II |
static int |
STRENGTH_LONG |
static int |
THICK |
static int |
WATER_BREATHING |
static int |
WATER_BREATHING_LONG |
static int |
WEAKNESS |
static int |
WEAKNESS_LONG |
| Constructor and Description |
|---|
ItemPotion(Identifier id) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxStackSize() |
boolean |
onClickAir(Player player,
com.nukkitx.math.vector.Vector3f directionVector)
Called when a player uses the item on air, for example throwing a projectile.
|
boolean |
onUse(Player player,
int ticksUsed) |
addCreativeItem, addEnchantment, addTag, canBeActivated, canBePlaced, canDestroy, canPlaceOn, clearCreativeItems, clearCustomName, clone, createTag, decrementCount, decrementCount, deepEquals, deepEquals, deepEquals, equals, equals, equals, equalsExact, fromJson, fromNetwork, fromString, fromStringMultiple, get, get, get, get, get, get, get, get, get, get, getArmorPoints, getAttackDamage, getBlock, getCount, getCreativeItem, getCreativeItemIndex, getCreativeItems, getCustomName, getDestroySpeed, getEnchantAbility, getEnchantment, getEnchantment, getEnchantments, getFuelTime, getId, getLore, getMaxDurability, getMeta, getName, getNetworkId, getTag, getTier, getToughness, hasCustomName, hasEnchantments, hasMeta, hasNbtMap, incrementCount, incrementCount, initCreativeItems, isArmor, isAxe, isBoots, isChestplate, isCreativeItem, isHelmet, isHoe, isLeggings, isNull, isPickaxe, isShears, isShovel, isSword, isTool, isUnbreakable, loadAdditionalData, onActivate, onMetaChange, onRelease, removeCreativeItem, saveAdditionalData, setCount, setCustomName, setLore, setLore, setMeta, setTag, toNetwork, toNetwork, toNetwork, toString, useOn, useOnpublic static final int NO_EFFECTS
public static final int MUNDANE
public static final int MUNDANE_II
public static final int THICK
public static final int AWKWARD
public static final int NIGHT_VISION
public static final int NIGHT_VISION_LONG
public static final int INVISIBLE
public static final int INVISIBLE_LONG
public static final int LEAPING
public static final int LEAPING_LONG
public static final int LEAPING_II
public static final int FIRE_RESISTANCE
public static final int FIRE_RESISTANCE_LONG
public static final int SPEED
public static final int SPEED_LONG
public static final int SPEED_II
public static final int SLOWNESS
public static final int SLOWNESS_LONG
public static final int WATER_BREATHING
public static final int WATER_BREATHING_LONG
public static final int INSTANT_HEALTH
public static final int INSTANT_HEALTH_II
public static final int HARMING
public static final int HARMING_II
public static final int POISON
public static final int POISON_LONG
public static final int POISON_II
public static final int REGENERATION
public static final int REGENERATION_LONG
public static final int REGENERATION_II
public static final int STRENGTH
public static final int STRENGTH_LONG
public static final int STRENGTH_II
public static final int WEAKNESS
public static final int WEAKNESS_LONG
public static final int DECAY
public ItemPotion(Identifier id)
public int getMaxStackSize()
getMaxStackSize in class Itempublic boolean onClickAir(Player player, com.nukkitx.math.vector.Vector3f directionVector)
ItemonClickAir in class Itemplayer - playerdirectionVector - directionCopyright © 2020. All rights reserved.