BlockTypes Class
Caution
This class is still in pre-release. Its signature may change or it may be removed in future releases.
Contains a catalog of Minecraft Block Types that are available in this world.
Methods
get
static "get"(typeName: string): BlockType | undefined
Returns a BlockType object for the specified identifier.
Parameters
typeName: string
Identifier of the block type. Should follow a namespace:id pattern, such as minecraft:dirt.
Returns BlockType | undefined - BlockType object, or undefined if the block type is not available within this world.
getAll
static getAll(): BlockType[]
Returns a collection of all available block types.
Returns BlockType[]
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for