Class BukkitNPCManagement
- java.lang.Object
-
- de.dytanic.cloudnet.ext.bridge.ServiceInfoStateWatcher
-
- eu.cloudnetservice.cloudnet.ext.npcs.AbstractNPCManagement
-
- eu.cloudnetservice.cloudnet.ext.npcs.bukkit.BukkitNPCManagement
-
public class BukkitNPCManagement extends AbstractNPCManagement
-
-
Field Summary
-
Fields inherited from class eu.cloudnetservice.cloudnet.ext.npcs.AbstractNPCManagement
cloudNPCS, itemLayouts, npcConfiguration, ownNPCConfigurationEntry
-
-
Constructor Summary
Constructors Constructor Description BukkitNPCManagement(@NotNull org.bukkit.plugin.java.JavaPlugin javaPlugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddNPC(@NotNull CloudNPC npc)Adds a NPC to this wrapper instanceorg.bukkit.inventory.ItemStack[]getDefaultItems()java.util.Optional<org.bukkit.entity.ArmorStand>getInfoLineStand(@NotNull CloudNPC cloudNPC)java.util.Map<de.dytanic.cloudnet.ext.bridge.ServiceInfoStateWatcher.ServiceInfoState,NPCConfigurationEntry.ItemLayout>getItemLayouts()com.github.juliarn.npc.NPCPoolgetNPCPool()java.util.Map<java.util.UUID,BukkitNPCProperties>getNPCProperties()protected voidhandleUpdate()booleanisWorldLoaded(CloudNPC cloudNPC)voidremoveNPC(@NotNull CloudNPC npc)Removes a NPC from this wrapper instancevoidsetNPCConfiguration(NPCConfiguration npcConfiguration)Sets the NPCConfiguration for this wrapper instancevoidshutdown()org.bukkit.LocationtoLocation(de.dytanic.cloudnet.ext.bridge.WorldPosition position)voidupdateNPC(@NotNull CloudNPC cloudNPC)-
Methods inherited from class eu.cloudnetservice.cloudnet.ext.npcs.AbstractNPCManagement
filterNPCServices, getCloudNPCS, getNPCConfiguration, getNPCConfigurationFromNode, getNPCsFromNode, getOwnNPCConfigurationEntry, handle, sendNPCAddUpdate, sendNPCRemoveUpdate, shouldShowFullServices, shouldWatchService
-
-
-
-
Method Detail
-
handleUpdate
protected void handleUpdate()
- Specified by:
handleUpdatein classde.dytanic.cloudnet.ext.bridge.ServiceInfoStateWatcher
-
addNPC
public boolean addNPC(@NotNull @NotNull CloudNPC npc)Description copied from class:AbstractNPCManagementAdds a NPC to this wrapper instance- Overrides:
addNPCin classAbstractNPCManagement- Parameters:
npc- the NPC to add- Returns:
- if the NPC is allowed to exist on this wrapper instance
-
removeNPC
public void removeNPC(@NotNull @NotNull CloudNPC npc)Description copied from class:AbstractNPCManagementRemoves a NPC from this wrapper instance- Overrides:
removeNPCin classAbstractNPCManagement- Parameters:
npc- the NPC to remove
-
setNPCConfiguration
public void setNPCConfiguration(NPCConfiguration npcConfiguration)
Description copied from class:AbstractNPCManagementSets the NPCConfiguration for this wrapper instance- Overrides:
setNPCConfigurationin classAbstractNPCManagement- Parameters:
npcConfiguration- the NPCConfiguration to set
-
shutdown
public void shutdown()
-
getInfoLineStand
public java.util.Optional<org.bukkit.entity.ArmorStand> getInfoLineStand(@NotNull @NotNull CloudNPC cloudNPC)
-
updateNPC
public void updateNPC(@NotNull @NotNull CloudNPC cloudNPC)- Specified by:
updateNPCin classAbstractNPCManagement
-
isWorldLoaded
public boolean isWorldLoaded(CloudNPC cloudNPC)
- Specified by:
isWorldLoadedin classAbstractNPCManagement
-
toLocation
public org.bukkit.Location toLocation(de.dytanic.cloudnet.ext.bridge.WorldPosition position)
-
getNPCPool
public com.github.juliarn.npc.NPCPool getNPCPool()
-
getDefaultItems
public org.bukkit.inventory.ItemStack[] getDefaultItems()
-
getItemLayouts
public java.util.Map<de.dytanic.cloudnet.ext.bridge.ServiceInfoStateWatcher.ServiceInfoState,NPCConfigurationEntry.ItemLayout> getItemLayouts()
-
getNPCProperties
public java.util.Map<java.util.UUID,BukkitNPCProperties> getNPCProperties()
-
-