Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ItemContainer

New type of TileEntity container that supports multiplayer

Hierarchy

  • ItemContainer

Index

Methods

sendChanges

  • sendChanges(): void
  • Sends changes in container to all clients. Needs to be used every time when something changes in container.

    Returns void

sendEvent

  • sendEvent(eventName: string, someData: object): void
  • Sends packet from client container copy to server.

    Parameters

    • eventName: string
    • someData: object

    Returns void

sendResponseEvent

  • sendResponseEvent(eventName: string, someData: object): void
  • Sends packet from server container. ONLY AVAILABLE IN SERVER CONTAINER EVENTS

    Parameters

    • eventName: string
    • someData: object

    Returns void

Generated using TypeDoc