PluginGenerate

data class PluginGenerate(val plugin: Plugin, val facing: BlockFace = BlockFace.NORTH, val facingVertical: BlockFace = BlockFace.NORTH, val block: Block, val item: ItemStack) : Record, BlockCreateContext(source)

A plugin generated the block ex:

  • Growing of Rebar Trees

  • Evolution of Rebar Sponges

Constructors

Link copied to clipboard
constructor(plugin: Plugin, facing: BlockFace = BlockFace.NORTH, facingVertical: BlockFace = BlockFace.NORTH, block: Block, item: ItemStack)

Properties

Link copied to clipboard
open override val block: Block

The old block where the new block is about to be created.

Link copied to clipboard
open override val facing: BlockFace

The direction in which this block was placed. NORTH, EAST, SOUTH, WEST.

Link copied to clipboard
open override val facingVertical: BlockFace

The direction in which this block was placed. NORTH, EAST, SOUTH, WEST, UP, DOWN

Link copied to clipboard
open override val item: ItemStack

The item used to create the block, if applicable.

Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "shouldSetType")
open val shouldSetType: Boolean

If true, the type of the block will be set to the type of the Rebar block