Package me.bimmr.bimmcore.npc
Class NPCBase
- java.lang.Object
-
- me.bimmr.bimmcore.npc.NPCBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNPCBase.ItemSlotsItemSlots NPC ENUMstatic classNPCBase.NPCType
-
Constructor Summary
Constructors Constructor Description NPCBase(NPCBase.NPCType npcType, java.lang.String name, org.bukkit.Location location)
-
Method Summary
Modifier and Type Method Description NPCMobasMob()NPCPlayerasPlayer()voidcreate()voiddestroy()voidequip(NPCBase.ItemSlots itemSlot, org.bukkit.inventory.ItemStack item)java.util.HashMap<NPCBase.ItemSlots,org.bukkit.inventory.ItemStack>getEquipment()abstract intgetId()org.bukkit.LocationgetLocation()java.lang.StringgetName()NPCClickEventgetNPCClickEvent()NPCBase.NPCTypegetNPCType()booleanisMob()booleanisPlayer()voidsetLocation(org.bukkit.Location location)voidsetName(java.lang.String name)voidsetNPCClickEvent(NPCClickEvent npcClickEvent)
-
-
-
Constructor Detail
-
NPCBase
public NPCBase(NPCBase.NPCType npcType, java.lang.String name, org.bukkit.Location location)
-
-
Method Detail
-
getNPCType
public NPCBase.NPCType getNPCType()
-
getEquipment
public java.util.HashMap<NPCBase.ItemSlots,org.bukkit.inventory.ItemStack> getEquipment()
-
getNPCClickEvent
public NPCClickEvent getNPCClickEvent()
-
setNPCClickEvent
public void setNPCClickEvent(NPCClickEvent npcClickEvent)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getLocation
public org.bukkit.Location getLocation()
-
setLocation
public void setLocation(org.bukkit.Location location)
-
equip
public void equip(NPCBase.ItemSlots itemSlot, org.bukkit.inventory.ItemStack item)
-
destroy
public void destroy()
-
create
public void create()
-
isMob
public boolean isMob()
-
isPlayer
public boolean isPlayer()
-
getId
public abstract int getId()
-
asPlayer
public NPCPlayer asPlayer()
-
asMob
public NPCMob asMob()
-
-