Package net.glowstone.block.blocktype
Class BlockTorch
java.lang.Object
net.glowstone.block.itemtype.ItemType
net.glowstone.block.blocktype.BlockType
net.glowstone.block.blocktype.BlockNeedsAttached
net.glowstone.block.blocktype.BlockTorch
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterPlace
(GlowPlayer player, GlowBlock block, org.bukkit.inventory.ItemStack holding, GlowBlockState oldState) Called after a block has been placed by a player.protected org.bukkit.block.BlockFace
void
placeBlock
(GlowPlayer player, GlowBlockState state, org.bukkit.block.BlockFace face, org.bukkit.inventory.ItemStack holding, org.bukkit.util.Vector clickedLoc) Called when a block is placed to calculate what the block will become.Methods inherited from class net.glowstone.block.blocktype.BlockNeedsAttached
canAttachTo, canPlaceAt, dropMe, onNearBlockChanged, updatePhysicsAfterEvent
Methods inherited from class net.glowstone.block.blocktype.BlockType
afterDestroy, blockDestroy, blockInteract, canAbsorb, canOverride, canTickRandomly, createBlockEntity, getCastedBlockData, getDrops, getMinedDrops, getOppositeBlockFace, getPlaceAs, getPlaceSound, getPulseTickSpeed, getSoundGroup, isPulseOnce, leftClickBlock, onBlockChanged, onEntityStep, onRedstoneUpdate, receivePulse, requestPulse, rightClickBlock, setDrops, setPlaceSound, updateBlock, updatePhysics, warnMaterialData
Methods inherited from class net.glowstone.block.itemtype.ItemType
getContext, getMaterial, getMaterials, getMaxStackSize, rightClickAir, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toString
-
Constructor Details
-
BlockTorch
public BlockTorch()
-
-
Method Details
-
placeBlock
public void placeBlock(GlowPlayer player, GlowBlockState state, org.bukkit.block.BlockFace face, org.bukkit.inventory.ItemStack holding, org.bukkit.util.Vector clickedLoc) Description copied from class:BlockType
Called when a block is placed to calculate what the block will become.- Overrides:
placeBlock
in classBlockType
- Parameters:
player
- the player who placed the blockstate
- the BlockState to editface
- the face off which the block is being placedholding
- the ItemStack that was being heldclickedLoc
- where in the block the click occurred
-
afterPlace
public void afterPlace(GlowPlayer player, GlowBlock block, org.bukkit.inventory.ItemStack holding, GlowBlockState oldState) Description copied from class:BlockType
Called after a block has been placed by a player.- Overrides:
afterPlace
in classBlockType
- Parameters:
player
- the player who placed the blockblock
- the block that was placedholding
- the the ItemStack that was being heldoldState
- The old block state before the block was placed.
-
getAttachedFace
- Overrides:
getAttachedFace
in classBlockNeedsAttached
-