public class BlockTnt extends BlockType
ItemType.ContextADJACENT, drops, placeSound, SIDES| Constructor and Description |
|---|
BlockTnt() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPlace(GlowPlayer player,
GlowBlock block,
org.bukkit.inventory.ItemStack holding,
GlowBlockState oldState)
Called after a block has been placed by a player.
|
static void |
igniteBlock(org.bukkit.block.Block tntBlock,
boolean ignitedByExplosion)
Convert a TNT block into a primed TNT entity.
|
static void |
igniteBlock(org.bukkit.block.Block tntBlock,
boolean ignitedByExplosion,
GlowPlayer player)
Convert a TNT block into a primed TNT entity with the player who ignited the TNT.
|
void |
onNearBlockChanged(GlowBlock block,
org.bukkit.block.BlockFace face,
GlowBlock changedBlock,
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.
|
void |
updatePhysicsAfterEvent(GlowBlock me) |
afterDestroy, blockDestroy, blockInteract, canAbsorb, canOverride, canPlaceAt, canTickRandomly, createBlockEntity, getDrops, getMinedDrops, getOppositeBlockFace, getPlaceAs, getPlaceSound, getPulseTickSpeed, isPulseOnce, leftClickBlock, onBlockChanged, onEntityStep, onRedstoneUpdate, placeBlock, receivePulse, requestPulse, rightClickBlock, setDrops, setPlaceSound, updateBlock, updatePhysics, warnMaterialDatagetContext, getId, getMaterial, getMaxStackSize, rightClickAir, setId, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toStringpublic static void igniteBlock(org.bukkit.block.Block tntBlock,
boolean ignitedByExplosion,
GlowPlayer player)
tntBlock - The block to ignite.ignitedByExplosion - True if another explosion caused this ignition.player - The player who ignited the TNT.public static void igniteBlock(org.bukkit.block.Block tntBlock,
boolean ignitedByExplosion)
tntBlock - The block to ignite.ignitedByExplosion - True if another explosion caused this ignition.public void afterPlace(GlowPlayer player, GlowBlock block, org.bukkit.inventory.ItemStack holding, GlowBlockState oldState)
BlockTypeafterPlace in class BlockTypeplayer - 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.public void onNearBlockChanged(GlowBlock block, org.bukkit.block.BlockFace face, GlowBlock changedBlock, org.bukkit.Material oldType, byte oldData, org.bukkit.Material newType, byte newData)
BlockTypeonNearBlockChanged in class BlockTypeblock - The block to perform physics checks forface - The BlockFace to the changed block, or null if unavailablechangedBlock - 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 blockpublic void updatePhysicsAfterEvent(GlowBlock me)
updatePhysicsAfterEvent in class BlockTypeCopyright © 2021. All rights reserved.