Class: Block

Block(imageId, solid, name)

new Block(imageId, solid, name)

Class for a new block type, holds the data about the registered block.
Parameters:
Name Type Description
imageId Integer The image id of the block. The image id is the same as the index of the image in the ImageLoadStack when the images are loaded.
solid Boolean A boolean value representing whether or not the block is solid
name String The canonical name of this block ("dirt", "grass", "stone")
Properties:
Name Type Description
imageId Integer The image id of the block. The image id is the same as the index of the image in the ImageLoadStack when the images are loaded.
solid Boolean A boolean value representing whether or not the block is solid
name String The canonical name of this block ("dirt", "grass", "stone")
Source: