Перейти к основному содержанию

Block.BlockLegacyPrototype

Once upon a time, a new way of registering blocks, however, in current state, either does not work or is undesirable to use.

Hierarchy

Index

Properties

optionalgetCategory

getCategory?: (item: null) => number

Unused at all.


Type declaration

    • (item: null): number
    • Parameters

      • item: null

      Returns number

optionalgetDestroyLevel

getDestroyLevel?: (item: null) => number

Type declaration

    • (item: null): number
    • Parameters

      • item: null

      Returns number

optionalgetDrop

getDrop?: (coords: Vector, id: number, data: number, diggingLevel: number, enchant: any) => ItemInstanceArray[]

Type declaration

optionalgetEnchant

getEnchant?: (item: null) => number

Unused at all.


Type declaration

    • (item: null): number
    • Parameters

      • item: null

      Returns number

optionalgetMaterial

getMaterial?: (item: null) => number

Type declaration

    • (item: null): number
    • Parameters

      • item: null

      Returns number

optionalgetProperties

getProperties?: (item: null) => object

Unused at all.


Type declaration

    • (item: null): object
    • Parameters

      • item: null

      Returns object

optionalgetShape

getShape?: (item: null) => number[]

Type declaration

    • (item: null): number[]
    • Parameters

      • item: null

      Returns number[]

optionalgetSpecialType

getSpecialType?: (item: null) => SpecialType

Type declaration

getVariations

getVariations: (item: null) => BlockVariation[]

Type declaration

optionalinit

init?: () => void

Type declaration

    • (): void
    • Returns void

optionalisEnchanted

isEnchanted?: (item: null) => boolean

Unused at all.


Type declaration

    • (item: null): boolean
    • Parameters

      • item: null

      Returns boolean

optionalisStackedByData

isStackedByData?: (item: null) => boolean

Unused at all.


Type declaration

    • (item: null): boolean
    • Parameters

      • item: null

      Returns boolean

optionalonItemUsed

onItemUsed?: (coords: Vector, item: ItemInstance, block: Tile) => void

Unused at all.


Type declaration

optionalonPlaced

onPlaced?: (coords: Vector, item: ItemInstance, block: Tile) => void

Incorrect function, it will considered as BlockLegacyPrototype.getDrop


Type declaration

type

type: createBlock | createBlockWithRotation