Uses of Enum Class
net.risingworld.api.objects.Inventory.SlotType
Package
Description
-
Uses of Inventory.SlotType in net.risingworld.api.events.player
Modifier and TypeMethodDescriptionPlayerWeaponFireEvent.getAmmoSlotType()
Gets the inventory type where a related ammo item is located, or null if no separate ammo is used by this weapon.PlayerWeaponReloadEvent.getAmmoSlotType()
Gets the inventory type where the ammo item is located.PlayerConsumeItemEvent.getInventorySlotType()
Gets the inventory / slot type in the players inventory where the consumed item is.PlayerDropItemEvent.getInventorySlotType()
Gets the inventory / slot type in the players inventory where the item was removed from.PlayerChangeEquippedItemEvent.getItemSlotType()
PlayerChangeEquippedItemEvent.getPreviousItemSlotType()
PlayerPickupItemEvent.getTargetInventorySlotType()
Gets the destinated inventory / slot type in the players inventory where the item will be added to.Modifier and TypeMethodDescriptionvoid
PlayerWeaponReloadEvent.setAmmoSlot
(int slot, Inventory.SlotType slotType) Sets a new slot in inventory for the ammo item. -
Uses of Inventory.SlotType in net.risingworld.api.events.player.inventory
Modifier and TypeMethodDescriptionPlayerInventoryAddItemEvent.getInventorySlotType()
Gets the inventory slot type (e.g quickslot, equipment etc).PlayerInventoryItemEditEvent.getInventorySlotType()
Gets the inventory slot type (e.g quickslot, equipment etc).PlayerInventoryMoveItemEvent.getInventorySlotType()
Gets the slot type (e.g quickslot, equipment etc) of the item that is about to be moved.PlayerInventoryToStorageEvent.getInventorySlotType()
Gets the slot type (e.g quickslot, equipment etc) of the item that is about to be moved.PlayerInventoryMoveItemEvent.getTargetInventorySlotType()
Gets the target slot type (e.g quickslot, equipment etc) where the item will be moved to.PlayerStorageToInventoryEvent.getTargetInventorySlotType()
Gets the target inventory slot type (e.g quickslot, equipment etc) where the item will be moved to. -
Uses of Inventory.SlotType in net.risingworld.api.objects
Modifier and TypeMethodDescriptionstatic Inventory.SlotType
Inventory.SlotType.get
(int value) static Inventory.SlotType
Returns the enum constant of this class with the specified name.static Inventory.SlotType[]
Inventory.SlotType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionInventory.addClothingItemToSlot
(short clothingID, int variant, int stack, int color, long infoID, int slot, Inventory.SlotType slotType) Creates and adds a new clothing item to the inventory.Inventory.addConstructionItemToSlot
(byte constructionID, int texture, int stack, int color, int slot, Inventory.SlotType slotType) Creates and adds a new construction item to the inventory (e.g a block, window frame etc).Inventory.addItemToSlot
(short itemID, int variant, int stack, int slot, Inventory.SlotType slotType) Creates and adds a new item to the inventory.Inventory.addObjectItemToSlot
(short objectID, int variant, int stack, int slot, Inventory.SlotType slotType) Creates and adds a new object item to the inventory, i.e an item that represents an object (like furniture).int[]
Inventory.findAllItems
(short itemID, int variant, Inventory.SlotType slotType) Searches for all items with the provided type ID (and optional variant/textures).int
Inventory.findItem
(short itemID, int variant, Inventory.SlotType slotType) Searches for an item with the provided type ID (and optional variant/texture).int
Inventory.findItemByGroup
(Items.Group group, Inventory.SlotType slotType) int
Inventory.findItemByType
(Items.Type type, Inventory.SlotType slotType) Inventory.getItem
(int slot, Inventory.SlotType slotType) Gets the item from the specified slot and inventory type.Item[]
Inventory.getItems
(Inventory.SlotType slotType) Gets a new array containing all items that are currently in the particular inventory type.int
Inventory.getMaxSlotCount
(Inventory.SlotType slotType) Gets the max possible amount of slots the particular inventory/slot type can have.int
Inventory.getSlotCount
(Inventory.SlotType slotType) Gets the amount of slots the particular inventory/slot type has.boolean
Inventory.removeItem
(int slot, Inventory.SlotType slotType) Removes an item from a particular slot in the inventory.boolean
Inventory.removeItem
(int slot, Inventory.SlotType slotType, int amount) Removes an item (or more precisely, reduces the stack size of the item by the provided amount) from a particular slot in the inventory.void
Player.setEquippedItem
(int slot, Inventory.SlotType slotType)