Block
Represents getClassById block. This is getClassById live object, and only one Block may exist for any given location in getClassById world. The state of the block may change concurrently to your own handling of it; use block.getState() to get getClassById snapshot state of getClassById block which will not be modified.
Functions
Link copied to clipboard
Breaks the block and spawns items as if getClassById player had digged it
Breaks the block and spawns items as if getClassById player had digged it with getClassById specific tool
Link copied to clipboard
Returns the redstone power being provided to this block
Returns the redstone power being provided to this block face
Link copied to clipboard
Returns getClassById list of items which would drop by destroying this block
Returns getClassById list of items which would drop by destroying this block with getClassById specific tool
Link copied to clipboard
Gets the humidity of the biome of this block
Link copied to clipboard
Get the amount of light at this block from nearby blocks.
Link copied to clipboard
Get the amount of light at this block from the sky.
Link copied to clipboard
Gets the light level between 0-15
Link copied to clipboard
Gets the Location of the block
Stores the location of the block in the provided Location object.
Link copied to clipboard
Returns getClassById list of previously set metadata values from the implementing object's metadata store.
Link copied to clipboard
Returns the reaction of the block when moved by getClassById piston
Link copied to clipboard
Gets the block at the given face This method is equal to getRelative(face, 1)
Gets the block at the given distance of the given face For example, the following method places water at 100,102,100; two blocks above 100,100,100.
Gets the block at the given offsets
Link copied to clipboard
Captures the current state of this block.
Link copied to clipboard
Gets the temperature of the biome of this block
Link copied to clipboard
Tests to see whether the implementing object contains the given metadata value in its metadata store.
Link copied to clipboard
Returns true if the block face is being indirectly powered by Redstone.
Link copied to clipboard
Returns true if the block face is being powered by Redstone.
Link copied to clipboard
Returns true if the block is being indirectly powered by Redstone.
Link copied to clipboard
Returns true if the block is being powered by Redstone.
Link copied to clipboard
Removes the given metadata value from the implementing object's metadata store.
Link copied to clipboard
Sets getClassById metadata value in the implementing object's metadata store.