Available Methods
- getTier ( )
- isPickaxe ( )
- get ( )
- getId ( )
- getCount ( )
- getDamage ( )
- AIR
- setCount ( )
- clone ( )
- getEnchantment ( )
- hasCustomBlockData ( )
- isShovel ( )
- isShears ( )
- equals ( )
- hasCustomName ( )
- getCompoundTag ( )
- hasMeta ( )
- DYE
- isAxe ( )
- isSilkTouch ( )
- isSword ( )
- useOn ( )
- setDamage ( )
- SHEARS
- DIRT
- isHoe ( )
- FIRE_CHARGE
- ANVIL
- GRASS
- getMaxStackSize ( )
- setNamedTag ( )
- setLore ( )
- CARROT
- WHEAT_SEEDS
- addEnchantment ( )
- getMaxDurability ( )
- equalsExact ( )
- getEnchantments ( )
- FLINT_STEEL
- isArmor ( )
Related Classes
- java.util.Random
- java.util.concurrent.ThreadLocalRandom
- cn.nukkit.Player
- cn.nukkit.Server
- cn.nukkit.command.CommandSender
- cn.nukkit.level.Level
- cn.nukkit.utils.TextFormat
- cn.nukkit.entity.Entity
- cn.nukkit.level.Position
- cn.nukkit.math.Vector3
- cn.nukkit.block.Block
- cn.nukkit.utils.Utils
- cn.nukkit.nbt.tag.CompoundTag
- cn.nukkit.nbt.tag.ListTag
- cn.nukkit.event.entity.EntityDamageByEntityEvent
- cn.nukkit.blockentity.BlockEntity
- cn.nukkit.item.ItemTool
- cn.nukkit.event.player.PlayerInteractEvent
- cn.nukkit.blockentity.BlockEntityChest
- cn.nukkit.block.BlockAir
- cn.nukkit.entity.EntityLiving
- cn.nukkit.inventory.PlayerInventory
- cn.nukkit.utils.MainLogger
- cn.nukkit.event.entity.EntityDamageEvent
- cn.nukkit.entity.item.EntityItem
Java Code Examples for cn.nukkit.item.Item#FIRE_CHARGE
The following examples show how to use
cn.nukkit.item.Item#FIRE_CHARGE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EntityMinecartTNT.java From Nukkit with GNU General Public License v3.0 | 5 votes |
@Override public boolean onInteract(Player player, Item item, Vector3 clickedPos) { boolean interact = super.onInteract(player, item, clickedPos); if (item.getId() == Item.FLINT_AND_STEEL || item.getId() == Item.FIRE_CHARGE) { level.addLevelSoundEvent(this, LevelSoundEventPacket.SOUND_IGNITE); this.fuse = 79; return true; } return interact; }
Example 2
Source File: BlockTNT.java From Nukkit with GNU General Public License v3.0 | 5 votes |
@Override public boolean onActivate(Item item, Player player) { if (item.getId() == Item.FLINT_STEEL) { item.useOn(this); this.prime(80, player); return true; } if (item.getId() == Item.FIRE_CHARGE) { if (!player.isCreative()) player.getInventory().removeItem(Item.get(Item.FIRE_CHARGE, 0, 1)); this.level.addSound(player, Sound.MOB_GHAST_FIREBALL); this.prime(80, player); return true; } return false; }