public class BlockPotato extends BlockCrops
ItemType.Context
ADJACENT, drops, placeSound, SIDES
Constructor and Description |
---|
BlockPotato() |
Modifier and Type | Method and Description |
---|---|
Collection<org.bukkit.inventory.ItemStack> |
getDrops(GlowBlock block,
org.bukkit.inventory.ItemStack tool)
Get the items that will be dropped by digging the block.
|
canGrowWithChance, canPlaceAt, canTickRandomly, getGrowthRateModifier, grow, isFertilizable, updateBlock
canAttachTo, dropMe, getAttachedFace, onNearBlockChanged, updatePhysicsAfterEvent
afterDestroy, afterPlace, blockDestroy, blockInteract, canAbsorb, canOverride, createBlockEntity, getMinedDrops, getOppositeBlockFace, getPlaceAs, getPlaceSound, getPulseTickSpeed, isPulseOnce, leftClickBlock, onBlockChanged, onEntityStep, onRedstoneUpdate, placeBlock, receivePulse, requestPulse, rightClickBlock, setDrops, setPlaceSound, updatePhysics, warnMaterialData
getContext, getId, getMaterial, getMaxStackSize, rightClickAir, setId, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toString
public Collection<org.bukkit.inventory.ItemStack> getDrops(GlowBlock block, org.bukkit.inventory.ItemStack tool)
BlockType
getDrops
in class BlockCrops
block
- The block being dug.tool
- The tool used or null
if fists or no tool was used.Copyright © 2021. All rights reserved.