Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace containing functions to register custom block states (properties), and some enums for vanilla properties

since

5.0

Index

Functions

  • Registers a custom block state of boolean type

    since

    5.0

    Parameters

    • name: any_string

      unique string identifier for the block state, which will be used in NBT serialization

    Returns BooleanProperty

    BooleanProperty instance for the created block state

  • Registers a custom block state of integer type

    since

    5.0

    Parameters

    • name: any_string

      unique string identifier for the block state, which will be used in NBT serialization

    • min: number

      minimum possible value for the state

    • max: number

      maximum possible value for the state

    Returns IntegerProperty

    IntegerProperty instance for the created block state

Generated using TypeDoc