public class BlockDirectDrops extends BlockNeedsTool
ItemType.ContextADJACENT, drops, placeSound, SIDES| Constructor and Description |
|---|
BlockDirectDrops(org.bukkit.Material dropType)
Creates a block type that directly drops 1 copy of an item with damage or block data 0 when
broken, and can be broken without a tool.
|
BlockDirectDrops(org.bukkit.Material dropType,
int amount)
Creates a block type that directly drops an item with damage or block data 0 when broken, and
can be broken without a tool.
|
BlockDirectDrops(org.bukkit.Material dropType,
int data,
int amount)
Creates a block type that drops an item directly when broken, and can be broken without a
tool.
|
BlockDirectDrops(org.bukkit.Material dropType,
int data,
int amount,
MaterialMatcher neededTool)
Creates a block type that drops an item directly when broken.
|
BlockDirectDrops(MaterialMatcher neededTool)
Creates a block type that drops nothing when broken.
|
BlockDirectDrops(org.bukkit.Material dropType,
MaterialMatcher neededTool)
Creates a block type that directly drops 1 copy of an item with damage or block data 0 when
broken.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.bukkit.inventory.ItemStack |
getDrops(GlowBlock block) |
Collection<org.bukkit.inventory.ItemStack> |
getMinedDrops(GlowBlock block)
Get the items that would be dropped if the block was successfully mined.
|
protected MaterialMatcher |
getNeededMiningTool(GlowBlock block) |
getDropsafterDestroy, afterPlace, blockDestroy, blockInteract, canAbsorb, canOverride, canPlaceAt, canTickRandomly, createBlockEntity, getOppositeBlockFace, getPlaceAs, getPlaceSound, getPulseTickSpeed, isPulseOnce, leftClickBlock, onBlockChanged, onEntityStep, onNearBlockChanged, onRedstoneUpdate, placeBlock, receivePulse, requestPulse, rightClickBlock, setDrops, setPlaceSound, updateBlock, updatePhysics, updatePhysicsAfterEvent, warnMaterialDatagetContext, getId, getMaterial, getMaxStackSize, rightClickAir, setId, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toStringpublic BlockDirectDrops(org.bukkit.Material dropType,
int data,
int amount,
MaterialMatcher neededTool)
dropType - the type of item to drop when broken, or null to drop nothingdata - the damage or block-data value of the dropped itemamount - the amount to dropneededTool - the tool(s) that can break this block, or null if breakable without a toolpublic BlockDirectDrops(MaterialMatcher neededTool)
neededTool - the tool(s) that can break this blockpublic BlockDirectDrops(org.bukkit.Material dropType,
int data,
int amount)
dropType - the type of item to drop when brokendata - the damage or block-data value of the dropped itemamount - the amount to droppublic BlockDirectDrops(org.bukkit.Material dropType,
MaterialMatcher neededTool)
dropType - the type of item to drop when brokenneededTool - the tool(s) that can break this blockpublic BlockDirectDrops(org.bukkit.Material dropType,
int amount)
dropType - the type of item to drop when brokenamount - the amount to droppublic BlockDirectDrops(org.bukkit.Material dropType)
dropType - the type of item to drop when brokenpublic Collection<org.bukkit.inventory.ItemStack> getMinedDrops(GlowBlock block)
BlockTypegetMinedDrops in class BlockTypeblock - The block.protected MaterialMatcher getNeededMiningTool(GlowBlock block)
getNeededMiningTool in class BlockNeedsToolprotected org.bukkit.inventory.ItemStack getDrops(GlowBlock block)
Copyright © 2021. All rights reserved.