h1z1-server
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    acceptedItems: number[] = []

    Array of item id's that can bypass a container not allowing items

    canAcceptItems: boolean = true

    Determines if the player can transfer items inside of the container - used for props mainly

    containerDefinitionId: number

    Id of the container attached to the item - See ContainerDefinitions.json for more information

    containerGuid: string = "0x0"
    currentDurability: number

    Current health of the item

    debugFlag: string = "unset"
    hasAirdropClearance: boolean = false

    Returns true if the airdrop has passed all the checks to land safely

    isMutable: boolean = true

    Returns false if the items state is static

    itemDefinitionId: number

    Id of the item - See ServerItemDefinitions.json for more information

    itemGuid: string

    Global universal identifier of the item

    items: { [itemGuid: string]: BaseItem } = {}

    HashMap of items in the container - uses itemGuid (string) for indexing

    loadoutItemOwnerGuid: string
    slotId: number = 0

    Id (index) of the current slot the item occupies in the hotbar

    stackCount: number

    Returns the amount of items inside of a stack

    weapon?: Weapon

    Determines if the item should be treated as a weapon object

    Methods

    • Gets an item stack in a container that has space for a specified item.

      Parameters

      • server: ZoneServer2016

        The ZoneServer instance.

      • itemDefId: number

        The item definition ID of the item stack to check.

      • count: number

        The amount of items to fit into the stack.

      Returns string

      Returns the itemGuid of the item stack.

    • Returns a boolean if this container has enough space for a given amount of a certain item.

      Parameters

      • server: ZoneServer2016

        The ZoneServer instance.

      • itemDefinitionId: number

        The definiton id of the item to check.

      • count: number

        The amount of the item to check.

      Returns boolean