public class CitizensNPC
extends net.citizensnpcs.api.npc.AbstractNPC
AMBIENT_SOUND_METADATA, COLLIDABLE_METADATA, DAMAGE_OTHERS_METADATA, DEATH_SOUND_METADATA, DEFAULT_PROTECTED_METADATA, DROPS_ITEMS_METADATA, FLYABLE_METADATA, GLOWING_COLOR_METADATA, GLOWING_METADATA, HURT_SOUND_METADATA, ITEM_DATA_METADATA, ITEM_ID_METADATA, LEASH_PROTECTED_METADATA, MINECART_ITEM_DATA_METADATA, MINECART_ITEM_METADATA, MINECART_OFFSET_METADATA, NAMEPLATE_VISIBLE_METADATA, PLAYER_SKIN_TEXTURE_PROPERTIES_METADATA, PLAYER_SKIN_TEXTURE_PROPERTIES_SIGN_METADATA, PLAYER_SKIN_USE_LATEST, PLAYER_SKIN_UUID_METADATA, RESPAWN_DELAY_METADATA, SCOREBOARD_FAKE_TEAM_NAME_METADATA, SHOULD_SAVE_METADATA, SILENT_METADATA, SWIMMING_METADATA, TARGETABLE_METADATA
Constructor and Description |
---|
CitizensNPC(UUID uuid,
int id,
String name,
EntityController entityController,
net.citizensnpcs.api.npc.NPCRegistry registry) |
Modifier and Type | Method and Description |
---|---|
boolean |
despawn(net.citizensnpcs.api.event.DespawnReason reason) |
void |
faceLocation(Location location) |
net.citizensnpcs.api.npc.BlockBreaker |
getBlockBreaker(Block targetBlock,
net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration config) |
Entity |
getEntity() |
net.citizensnpcs.api.ai.Navigator |
getNavigator() |
Location |
getStoredLocation() |
boolean |
isFlyable() |
void |
load(net.citizensnpcs.api.util.DataKey root) |
void |
save(net.citizensnpcs.api.util.DataKey root) |
void |
setBukkitEntityType(EntityType type) |
void |
setEntityController(EntityController newController) |
void |
setFlyable(boolean flyable) |
boolean |
spawn(Location at) |
boolean |
spawn(Location at,
net.citizensnpcs.api.event.SpawnReason reason) |
void |
update() |
addTrait, addTrait, clone, data, despawn, destroy, equals, getDefaultGoalController, getDefaultSpeechController, getFullName, getId, getName, getOwningRegistry, getTrait, getTraitFor, getTraits, getUniqueId, hashCode, hasTrait, isProtected, isSpawned, removeTrait, setName, setProtected, teleport, unloadEvents
public CitizensNPC(UUID uuid, int id, String name, EntityController entityController, net.citizensnpcs.api.npc.NPCRegistry registry)
public boolean despawn(net.citizensnpcs.api.event.DespawnReason reason)
public void faceLocation(Location location)
public net.citizensnpcs.api.npc.BlockBreaker getBlockBreaker(Block targetBlock, net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration config)
public Entity getEntity()
public net.citizensnpcs.api.ai.Navigator getNavigator()
public Location getStoredLocation()
public boolean isFlyable()
isFlyable
in interface net.citizensnpcs.api.npc.NPC
isFlyable
in class net.citizensnpcs.api.npc.AbstractNPC
public void load(net.citizensnpcs.api.util.DataKey root)
load
in interface net.citizensnpcs.api.npc.NPC
load
in class net.citizensnpcs.api.npc.AbstractNPC
public void save(net.citizensnpcs.api.util.DataKey root)
save
in interface net.citizensnpcs.api.npc.NPC
save
in class net.citizensnpcs.api.npc.AbstractNPC
public void setBukkitEntityType(EntityType type)
public void setEntityController(EntityController newController)
public void setFlyable(boolean flyable)
setFlyable
in interface net.citizensnpcs.api.npc.NPC
setFlyable
in class net.citizensnpcs.api.npc.AbstractNPC
public boolean spawn(Location at)
public boolean spawn(Location at, net.citizensnpcs.api.event.SpawnReason reason)
public void update()
update
in class net.citizensnpcs.api.npc.AbstractNPC
Copyright © 2019. All rights reserved.