Package noppes.npcs.api.entity.data
Interface INPCInventory
public interface INPCInventory
-
Method Summary
Modifier and TypeMethodDescriptiongetArmor
(int slot) getDropItem
(int slot) int
int
int
void
setArmor
(int slot, IItemStack item) void
setDropItem
(int slot, IItemStack item, float chance) void
setExp
(int min, int max) Sets the random exp dropped when the npc diesvoid
setLeftHand
(IItemStack item) void
setProjectile
(IItemStack item) void
setRightHand
(IItemStack item)
-
Method Details
-
getRightHand
IItemStack getRightHand() -
setRightHand
-
getLeftHand
IItemStack getLeftHand() -
setLeftHand
-
getProjectile
IItemStack getProjectile() -
setProjectile
-
getArmor
- Parameters:
slot
- The armor slot to return. 0:head, 1:body, 2:legs, 3:boots- Returns:
- Returns the armor item
-
setArmor
- Parameters:
slot
- The armor slot to return. 0:head, 1:body, 2:legs, 3:bootsitem
-
-
setDropItem
- Parameters:
slot
- 0-8item
-chance
- 1-100
-
getDropItem
- Parameters:
slot
- 0-8
-
getExpMin
int getExpMin() -
getExpMax
int getExpMax() -
getExpRNG
int getExpRNG()- Returns:
- Returns a value between expMin and expMax
-
setExp
void setExp(int min, int max) Sets the random exp dropped when the npc dies -
getItemsRNG
IItemStack[] getItemsRNG()
-