MineJSv0.5.1

Block

Source: block.ts:44

Represent a block


Constructors

new Block( type: string, definitions: Record<'type' | 'block_set_type' | string, any>, properties: Record<string, string[]>, states: Record<string, any> | BlockState[], ): Block

Parameters

  • type (string)
  • definitions (Record<"type" | "block_set_type" | string, any>)
  • properties (Record<string, string[]>)
  • states (Record<string, any> | BlockState[])

Returns

Block


Properties

definitions: Record<'type' | 'block_set_type' | string, any>

properties: Record<string, string[]>

states: BlockState[]

type: string

Methods

getBounciness(): number

Returns

  • number

getClimbable(): boolean

Returns

  • boolean

getFriction(): number

Returns

  • number

getJumpFactor(): number

Returns

  • number

getSpeedFactor(): number

Returns

  • number

getType(): {}

Returns

  • {}