Package net.glowstone.block.blocktype
Class BlockConcretePowder
java.lang.Object
net.glowstone.block.itemtype.ItemType
net.glowstone.block.blocktype.BlockType
net.glowstone.block.blocktype.BlockFalling
net.glowstone.block.blocktype.BlockConcretePowder
-
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 TypeMethodDescriptionvoid
onBlockChanged
(GlowBlock block, org.bukkit.Material oldType, byte oldData, org.bukkit.Material newType, byte data) Called when this block has just changed to some other type.void
onNearBlockChanged
(GlowBlock me, org.bukkit.block.BlockFace face, GlowBlock other, org.bukkit.Material oldType, byte oldData, org.bukkit.Material newType, byte newData) Called when a neighboring block (within a 3x3x3 cube) has changed its type or data and physics checks should occur.Methods inherited from class net.glowstone.block.blocktype.BlockFalling
afterPlace, transformToFallingEntity, updatePhysicsAfterEvent
Methods inherited from class net.glowstone.block.blocktype.BlockType
afterDestroy, blockDestroy, blockInteract, canAbsorb, canOverride, canPlaceAt, canTickRandomly, createBlockEntity, getCastedBlockData, getDrops, getMinedDrops, getOppositeBlockFace, getPlaceAs, getPlaceSound, getPulseTickSpeed, getSoundGroup, isPulseOnce, leftClickBlock, onEntityStep, onRedstoneUpdate, placeBlock, 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
-
BlockConcretePowder
public BlockConcretePowder()
-
-
Method Details
-
onNearBlockChanged
public void onNearBlockChanged(GlowBlock me, org.bukkit.block.BlockFace face, GlowBlock other, org.bukkit.Material oldType, byte oldData, org.bukkit.Material newType, byte newData) Description copied from class:BlockType
Called when a neighboring block (within a 3x3x3 cube) has changed its type or data and physics checks should occur.- Overrides:
onNearBlockChanged
in classBlockFalling
- Parameters:
me
- The block to perform physics checks forface
- The BlockFace to the changed block, or null if unavailableother
- The neighboring block that has changedoldType
- The old type of the changed blockoldData
- The old data of the changed blocknewType
- The new type of the changed blocknewData
- The new data of the changed block
-
onBlockChanged
public void onBlockChanged(GlowBlock block, org.bukkit.Material oldType, byte oldData, org.bukkit.Material newType, byte data) Description copied from class:BlockType
Called when this block has just changed to some other type.This is called whenever
GlowBlock.setTypeIdAndData(int, byte, boolean)
,GlowBlock.setType(org.bukkit.Material)
orGlowBlock.setData(byte)
is called with physics enabled, and might be called from plugins or other means of changing the block.- Overrides:
onBlockChanged
in classBlockType
- Parameters:
block
- The block that was changedoldType
- The old MaterialoldData
- The old datanewType
- The new Materialdata
- The new data
-