Package noppes.npcs.api.entity.data
Interface INPCInventory
public interface INPCInventory
-
Method Summary
Modifier and TypeMethodDescriptiongetArmor(int slot) getDropItem(int slot) intintintvoidsetArmor(int slot, IItemStack item) voidsetDropItem(int slot, IItemStack item, float chance) voidsetExp(int min, int max) Sets the random exp dropped when the npc diesvoidsetLeftHand(IItemStack item) voidsetProjectile(IItemStack item) voidsetRightHand(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()
-