API reference Obsidian.API.BlockEntities
BlockEntityType class
A block entity type a plugin registered with IPluginRegistry.RegisterBlockEntity, like a NeoForge mod's BlockEntityType: the blocks that have one, and the class created for them.
public sealed class BlockEntityType
In Obsidian.API.
Remarks
The server owns the type: it keeps its instance, identifier and id until the server stops, even when the plugin reloads or unloads; a reload replaces its blocks and class.
Properties
Blocks
public IReadOnlyList<BlockType> Blocks { get; }The blocks that have a block entity of the type.
Id
public int Id { get; }The type's id in the block entity type registry. Vanilla's come first; plugins' follow, in the order they were first registered.
Identifier
public string Identifier { get; }The type's identifier, like myplugin:counter, which its block entities are saved with.
Owner
public IPluginContainer Owner { get; }The plugin that registered the type and provides its class, or null while the plugin is unloaded.
Methods
public override string ToString();