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 class
NPCBase.ItemSlots
ItemSlots NPC ENUMstatic class
NPCBase.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 NPCMob
asMob()
NPCPlayer
asPlayer()
void
create()
void
destroy()
void
equip(NPCBase.ItemSlots itemSlot, org.bukkit.inventory.ItemStack item)
java.util.HashMap<NPCBase.ItemSlots,org.bukkit.inventory.ItemStack>
getEquipment()
abstract int
getId()
org.bukkit.Location
getLocation()
java.lang.String
getName()
NPCClickEvent
getNPCClickEvent()
NPCBase.NPCType
getNPCType()
boolean
isMob()
boolean
isPlayer()
void
setLocation(org.bukkit.Location location)
void
setName(java.lang.String name)
void
setNPCClickEvent(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()
-
-