Options
All
  • Public
  • Public/Protected
  • All
Menu

Small module to convert numeric item and block IDs to string identifiers used, for example, in addons

since

1.3

Index

Functions

  • getAddonItemIdentifier(id: number): jstring
  • since

    1.3

    Parameters

    • id: number

    Returns jstring

    string identifier in format "minecraft:identifier" of the item by given numeric ID

  • since

    1.3

    Parameters

    • id: number

    Returns Nullable<jstring>

    string identifier of the block by given numeric ID, or null if the block with given ID was not found

  • getNumericIdFromIdentifier(identifier: any_string): number
  • since

    1.3

    since

    4.0 you're allowed to specify the string identifier with "minecraft:" namespace, it'll be automatically filtered out

    Parameters

    Returns number

    numeric ID of the item by given string identifier. The identifier must be without "namespace:" ("minecraft:"), the method does not support items created by addons (having namespace not "minecraft")

Generated using TypeDoc