Class BukkitNPCManagement

    • Constructor Detail

      • BukkitNPCManagement

        public BukkitNPCManagement​(@NotNull
                                   @NotNull org.bukkit.plugin.java.JavaPlugin javaPlugin)
    • Method Detail

      • handleUpdate

        protected void handleUpdate()
        Specified by:
        handleUpdate in class de.dytanic.cloudnet.ext.bridge.ServiceInfoStateWatcher
      • addNPC

        public boolean addNPC​(@NotNull
                              @NotNull CloudNPC npc)
        Description copied from class: AbstractNPCManagement
        Adds a NPC to this wrapper instance
        Overrides:
        addNPC in class AbstractNPCManagement
        Parameters:
        npc - the NPC to add
        Returns:
        if the NPC is allowed to exist on this wrapper instance
      • shutdown

        public void shutdown()
      • getInfoLineStand

        public java.util.Optional<org.bukkit.entity.ArmorStand> getInfoLineStand​(@NotNull
                                                                                 @NotNull CloudNPC cloudNPC)
      • getInfoLineStand

        public java.util.Optional<org.bukkit.entity.ArmorStand> getInfoLineStand​(@NotNull
                                                                                 @NotNull CloudNPC cloudNPC,
                                                                                 boolean doSpawnIfMissing)
      • 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()