Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TileEntityCreationCallback

Callable

  • Function used in TileEntityModule.registerTileEntityType method. It will be called every time the custom tile is created, and must return the Java wrapper object of the tile (so it'd be better to implement this callback in Java as well).

    Remember! All the parameters provided by the callback are crucial for the created block entity and required to be put into its Java wrapper object.

    since

    4.0

    Parameters

    • pointer: number

      pointer to the native block entity object that will have to be wrapped by your Java object, represented by a signed 64-bit integer

    • type: number

      numeric ID of the following block entity's type

    • pos: BlockPos

      block coordinates where the tile is being created, Math.BlockPos since 5.0 (it was like that from the very beginning, but until 5.0 Math.BlockPos has not been declared)

    Returns BlockActor

Generated using TypeDoc