Class: BlockTypes
Contains a catalog of Minecraft Block Types that are available in this world.
Constructors
new BlockTypes()
private
new BlockTypes():BlockTypes
Returns
Methods
get()
static
get(typeName
):BlockType
Parameters
Parameter | Type | Description |
---|---|---|
typeName | string | Identifier of the block type. Should follow a namespace:id pattern, such as minecraft:dirt. |
Returns
BlockType object, or undefined if the block type is not available within this world.
Remarks
Returns a BlockType object for the specified identifier.
getAll()
static
getAll():BlockType
[]
Returns
Remarks
Returns a collection of all available block types.