Package-level declarations

Types

Link copied to clipboard

For handling block logic.

Link copied to clipboard

Factory for creating BlockBehavior instances of T based on a NovaBlock.

Link copied to clipboard
sealed interface BlockBehaviorHolder

Supertype for everything that is or can provide a BlockBehavior.

Link copied to clipboard

Simple block drop logic for non-tile-entity blocks. Should not be used for tile-entity blocks.

Link copied to clipboard
class BlockSounds(soundGroup: Provider<SoundGroup>) : BlockBehavior

Adds sound to a block.

Link copied to clipboard
interface Breakable
Link copied to clipboard

Allows filling and emptying fluid containers of TileEntities that implement NetworkEndPoint and have a FluidHolder with buckets.

Link copied to clipboard

Delegates drops and experience to TileEntity.getDrops and TileEntity.getExp. Should only be used for tile-entity blocks.

Link copied to clipboard

Delegates interactions to TileEntity.handleRightClick. Should only be used for tile-entity blocks.

Link copied to clipboard

Tracks tile-entity placement and removal and enforces tile-entity limits. Should only be applied to tile-entity blocks.

Link copied to clipboard

Allows water-logging blocks via right-clicking with buckets. Requires the WATERLOGGED property.

Functions

Link copied to clipboard
fun Breakable(hardness: Double, breakParticles: Material? = null, showBreakAnimation: Boolean = true): Breakable.Default
fun Breakable(hardness: Double, toolCategories: Set<ToolCategory>, toolTier: ToolTier?, requiresToolForDrops: Boolean, breakParticles: Material? = null, showBreakAnimation: Boolean = true): Breakable.Default
fun Breakable(hardness: Double, toolCategory: ToolCategory, toolTier: ToolTier, requiresToolForDrops: Boolean, breakParticles: Material? = null, showBreakAnimation: Boolean = true): Breakable.Default