Package-level declarations

Contains all the custom block logic

Types

Link copied to clipboard
enum Blocks : Enum<Blocks>
Link copied to clipboard

A type alias to easier access block-related sound bank

Link copied to clipboard

Sound type to interact with custom blocks

Link copied to clipboard
object CustomBlockHandlers : Listener
Link copied to clipboard
interface MacrocosmBlock

An interface for all custom macrocosm blocks

Link copied to clipboard
object MiningHandler : PacketAdapter, Listener

Object that contains (almost) all the custom mining logic for Macrocosm.

Link copied to clipboard
open class PlaceableItem(val id: Identifier, val blockId: Identifier, var name: Component, var rarity: Rarity) : AbstractMacrocosmItem

A placeable MacrocosmBlock encapsulated in a MacrocosmItem.

Link copied to clipboard
open class SimpleMacrocosmBlock(id: String, val name: String, itemRarity: Rarity, hardness: Number, val steadiness: Int, baseExperience: Pair<Number, SkillType>, val suitableTools: List<ItemType>, pool: LootPool, val soundBank: BlockSoundBank, texture: String = id) : MacrocosmBlock, AutoRegister<MacrocosmItem>

A wrapper over a MacrocosmBlock that allows to generate and register a PlaceableItem, as well as a model both for the block and the item using the HybridBlockModelGenerator.