Available Methods
- AIR
- GRASS
- get ( )
- SNOW_LAYER
- LEAVES
- getId ( )
- DIRT
- LEAVES2 ( )
- LOG
- canPassThrough ( )
- solid ( )
- isNormalBlock ( )
- TALL_GRASS
- isTransparent ( )
- collidesWithBB ( )
- getDamage ( )
- hasMeta ( )
- SAND
- EMERALD_BLOCK
- STILL_LAVA
- getSide ( )
- list ( )
- SAPLING
- getDrops ( )
- BREWING_STAND_BLOCK
- BEACON
- getBoundingBox ( )
- STONE
- STILL_WATER
- onUpdate ( )
- setDamage ( )
- getName ( )
- WATER
- getFullId ( )
- LAVA
- isSolid ( )
- FURNACE
- IRON_BLOCK
- SHULKER_BOX
- DIAMOND_BLOCK
- SUGARCANE_BLOCK
Related Classes
- java.util.Random
- java.util.concurrent.ThreadLocalRandom
- cn.nukkit.Player
- cn.nukkit.level.Level
- cn.nukkit.utils.TextFormat
- cn.nukkit.item.Item
- cn.nukkit.entity.Entity
- cn.nukkit.level.Position
- cn.nukkit.math.Vector3
- cn.nukkit.level.format.FullChunk
- cn.nukkit.math.NukkitMath
- cn.nukkit.nbt.tag.CompoundTag
- cn.nukkit.nbt.tag.ListTag
- cn.nukkit.nbt.tag.FloatTag
- cn.nukkit.blockentity.BlockEntity
- cn.nukkit.math.AxisAlignedBB
- cn.nukkit.event.player.PlayerInteractEvent
- cn.nukkit.block.BlockAir
- cn.nukkit.entity.item.EntityItem
- cn.nukkit.level.format.generic.BaseFullChunk
- cn.nukkit.potion.Effect
- cn.nukkit.inventory.InventoryHolder
- cn.nukkit.nbt.tag.DoubleTag
- cn.nukkit.event.player.PlayerInteractEvent.Action
- cn.nukkit.entity.weather.EntityLightning
Java Code Examples for cn.nukkit.block.Block#getDrops()
The following examples show how to use
cn.nukkit.block.Block#getDrops() .
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: BlockBreakEvent.java From Jupiter with GNU General Public License v3.0 | 5 votes |
public BlockBreakEvent(Player player, Block block, Item item, boolean instaBreak, boolean fastBreak, int dropExp) { super(block); this.item = item; this.player = player; this.instaBreak = instaBreak; this.blockDrops = player.isSurvival() ? block.getDrops(item) : new Item[0]; this.fastBreak = fastBreak; this.dropExp = dropExp; }
Example 2
Source File: BlockBreakEvent.java From Nukkit with GNU General Public License v3.0 | 5 votes |
public BlockBreakEvent(Player player, Block block, Item item, boolean instaBreak, boolean fastBreak) { super(block); this.item = item; this.player = player; this.instaBreak = instaBreak; this.blockDrops = player.isSurvival() ? block.getDrops(item) : new Item[0]; this.fastBreak = fastBreak; }