|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Block in <Unnamed> |
---|
Modifier and Type | Method and Description |
---|---|
Block |
BaseContainerBlock.getBlock()
|
Block |
ComplexBlock.getBlock()
Returns the Block associated with this ComplexBlock |
Block |
DoubleChest.getBlock()
|
Block |
MobSpawner.getBlock()
|
Block |
Sign.getBlock()
|
Block |
Server.getBlockAt(int x,
int y,
int z)
Returns the block at the specified location |
Block |
ay.getChestBlock()
|
Block |
HitBlox.getCurBlock()
Returns the current block along the line of vision |
Block |
Block.getFace(Block.Face face)
Returns the block at the given Face |
Block |
HitBlox.getFaceBlock()
Returns the block attached to the face at the cursor, or null if out of range |
Block |
HitBlox.getLastBlock()
Returns the previous block along the line of vision |
Block |
HitBlox.getNextBlock()
Returns STEPS forward along line of vision and returns block |
Block |
Block.getRelative(int x,
int y,
int z)
Finds a Block relative to this Block |
Block |
HitBlox.getTargetBlock()
Returns the block at the cursor, or null if out of range |
Modifier and Type | Method and Description |
---|---|
boolean |
Digging.a(hl player,
fv world,
jl item,
Block blockToPlace,
Block blockClicked)
Called when a player right-click air with an item in hand. |
ComplexBlock |
Server.getComplexBlock(Block block)
Returns the complex block at the specified location. |
ComplexBlock |
Server.getOnlyComplexBlock(Block block)
Returns the only complex block at the specified location. |
boolean |
Server.isBlockIndirectlyPowered(Block block)
Checks if the provided block is being indirectly powered through redstone |
boolean |
Server.isBlockPowered(Block block)
Checks if the provided block is being powered through redstone |
boolean |
Server.isChunkLoaded(Block block)
Checks to see whether or not the chunk containing the given block is loaded into memory. |
void |
Server.loadChunk(Block block)
Loads the chunk containing the given block. |
boolean |
PluginListener.onBlockBreak(Player player,
Block block)
Called when a person actually breaks the block. |
boolean |
PluginListener.onBlockCreate(Player player,
Block blockPlaced,
Block blockClicked,
int itemInHand)
Deprecated. use onBlockRightClick to get the information |
boolean |
PluginListener.onBlockDestroy(Player player,
Block block)
Called when a person left clicks a block. |
boolean |
PluginListener.onBlockPhysics(Block block,
boolean placed)
Called when the game is checking the physics for a certain block. |
boolean |
PluginListener.onBlockPlace(Player player,
Block blockPlaced,
Block blockClicked,
Item itemInHand)
Called when someone places a block. |
void |
PluginListener.onBlockRightClicked(Player player,
Block blockClicked,
Item item)
Called when someone presses right click aimed at a block. |
boolean |
PluginListener.onExplode(Block block)
Called when a dynamite block or a creeper is triggerd. |
boolean |
PluginListener.onFlow(Block blockFrom,
Block blockTo)
Called when fluid wants to flow to a certain block. |
boolean |
PluginListener.onIgnite(Block block,
Player player)
Called when either a lava block or a lighter tryes to light something on fire. |
boolean |
PluginListener.onItemUse(Player player,
Block blockPlaced,
Block blockClicked,
Item item)
Called when a player uses an item (rightclick with item in hand) |
boolean |
PluginListener.onLeafDecay(Block block)
Called when a leaf block is about to decay. |
PluginLoader.HookResult |
PluginListener.onLiquidDestroy(PluginLoader.HookResult currentState,
int liquidBlockId,
Block targetBlock)
Called when water or lava tries to populate a block, you can prevent crushing of torches, railways, flowers etc. |
int |
PluginListener.onRedstoneChange(Block block,
int oldLevel,
int newLevel)
Called whenever a redstone source (wire, switch, torch) changes its current. |
boolean |
Server.setBlock(Block block)
Sets the block |
void |
Server.updateBlockPhysics(Block block)
Forces the server to update the physics for blocks around the given block |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |