Uses of Class
net.risingworld.api.objects.Item

Packages that use Item
  • Uses of Item in net.risingworld.api.events.player

    Modifier and Type
    Method
    Description
    PlayerChangeEquippedItemEvent.getItem()
     
    PlayerConsumeItemEvent.getItem()
     
    PlayerCraftItemEvent.getItem()
    Gets the item the player wants to craft.
    PlayerDropItemEvent.getItem()
    Gets the item the player wants to drop.
    PlayerDropItemFromStorageEvent.getItem()
    Gets the item.
    PlayerWeaponFireEvent.getWeapon()
    Gets the weapon item.
    PlayerWeaponReloadEvent.getWeapon()
    Gets the related item (the weapon that is reloaded).
  • Uses of Item in net.risingworld.api.events.player.inventory

    Modifier and Type
    Method
    Description
    PlayerInventoryAddItemEvent.getItem()
    Gets the item.
    PlayerInventoryItemEditEvent.getItem()
    Gets the item.
    PlayerInventoryMoveItemEvent.getItem()
    Gets the item that is about to be moved.
    PlayerInventoryToStorageEvent.getItem()
    Gets the item the player tries to move from inventory to the storage.
    PlayerStorageMoveItemEvent.getItem()
    Gets the item that is about to be moved.
    PlayerStorageToInventoryEvent.getItem()
    Gets the item that is about to be moved from the storage to inventory.
    PlayerInventoryMoveItemEvent.getTargetItem()
    Gets the item in the target slot in the storage, i.e the item that will be exchanged with the first item.
    PlayerInventoryToStorageEvent.getTargetItem()
    Gets the target item in the storage (i.e the item in the target slot).
    PlayerStorageMoveItemEvent.getTargetItem()
    Gets the item in the target slot, i.e the item that will be exchanged with the first item.
    PlayerStorageToInventoryEvent.getTargetItem()
    Gets the item in the target slot in the inventory, i.e the item that will be exchanged with the first item.
  • Uses of Item in net.risingworld.api.objects

    Modifier and Type
    Class
    Description
    static class 
    Represents a blueprint item in the inventory of a player or in a storage box.
    A blueprint item is a ready-to-use blueprint (this does not apply to empty blueprints!), i.e a blueprint item representing an actual blueprint.
    static class 
    Represents a clothing item in the inventory of a player or in a storage box.
    This is any type of clothes (or headgear or accessory).
    static class 
    Represents a construction item in the inventory of a player or in a storage box.
    This is, for example, a block.
    static class 
    Represents an object item in the inventory of a player or in a storage box.
    This is, for example, a furniture item.
    Methods in net.risingworld.api.objects that return Item
    Modifier and Type
    Method
    Description
    Inventory.addItem(short itemID, int variant, int stack)
    Creates and adds a new item to the inventory.
    Inventory.addItemToSlot(short itemID, int variant, int stack, int slot, Inventory.SlotType slotType)
    Creates and adds a new item to the inventory.
    Inventory.getAllItems()
    Gets a new array containing all items in this inventory.
    Gets the currently equipped item (i.e the item the player currently holds in his hands), or null if no item is equipped.
    Inventory.getItem(int slot, Inventory.SlotType slotType)
    Gets the item from the specified slot and inventory type.
    Storage.getItem(int slot)
    Gets the item from the specified slot.
    Inventory.getItems(Inventory.SlotType slotType)
    Gets a new array containing all items that are currently in the particular inventory type.
    Storage.getItems()
    Gets an array containing all items that are currently in the chest.