Package net.glowstone.block.blocktype
Class BlockDropper
java.lang.Object
net.glowstone.block.itemtype.ItemType
net.glowstone.block.blocktype.BlockType
net.glowstone.block.blocktype.BlockContainer
net.glowstone.block.blocktype.BlockDispenser
net.glowstone.block.blocktype.BlockDropper
-
Nested Class Summary
Nested classes/interfaces inherited from class net.glowstone.block.itemtype.ItemType
ItemType.Context -
Field Summary
Fields inherited from class net.glowstone.block.blocktype.BlockType
ADJACENT, drops, placeSound, SIDES, soundGroup -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBlockEntity(GlowChunk chunk, int cx, int cy, int cz) Create a new block entity at the given location.protected MaterialMatchergetNeededMiningTool(GlowBlock block) Methods inherited from class net.glowstone.block.blocktype.BlockDispenser
afterPlace, getDispensePosition, getFacing, onNearBlockChanged, placeBlock, trigger, updatePhysicsAfterEventMethods inherited from class net.glowstone.block.blocktype.BlockContainer
blockInteract, getBlockDrops, getContentDrops, getDrops, getMinedDropsMethods inherited from class net.glowstone.block.blocktype.BlockType
afterDestroy, blockDestroy, canAbsorb, canOverride, canPlaceAt, canTickRandomly, getCastedBlockData, getOppositeBlockFace, getPlaceAs, getPlaceSound, getPulseTickSpeed, getSoundGroup, isPulseOnce, leftClickBlock, onBlockChanged, onEntityStep, onRedstoneUpdate, receivePulse, requestPulse, rightClickBlock, setDrops, setPlaceSound, updateBlock, updatePhysics, warnMaterialDataMethods inherited from class net.glowstone.block.itemtype.ItemType
getContext, getMaterial, getMaterials, getMaxStackSize, rightClickAir, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toString
-
Constructor Details
-
BlockDropper
public BlockDropper()
-
-
Method Details
-
createBlockEntity
Description copied from class:BlockTypeCreate a new block entity at the given location.- Overrides:
createBlockEntityin classBlockDispenser- Parameters:
chunk- The chunk to create the block entity at.cx- The x coordinate in the chunk.cy- The y coordinate in the chunk.cz- The z coordinate in the chunk.- Returns:
- The new BlockEntity, or null if no block entity is used.
-
getNeededMiningTool
- Overrides:
getNeededMiningToolin classBlockDispenser
-