Class AbstractNPCManagement

java.lang.Object
eu.cloudnetservice.modules.npc.impl.AbstractNPCManagement
All Implemented Interfaces:
InternalNPCManagement, eu.cloudnetservice.modules.npc.NPCManagement
Direct Known Subclasses:
NodeNPCManagement, PlatformNPCManagement

public abstract class AbstractNPCManagement extends Object implements InternalNPCManagement
  • Field Details

    • NPC_CHANNEL_NAME

      public static final String NPC_CHANNEL_NAME
      See Also:
    • NPC_CREATED

      protected static final String NPC_CREATED
      See Also:
    • NPC_DELETED

      protected static final String NPC_DELETED
      See Also:
    • NPC_BULK_DELETE

      protected static final String NPC_BULK_DELETE
      See Also:
    • NPC_CONFIGURATION_UPDATE

      protected static final String NPC_CONFIGURATION_UPDATE
      See Also:
    • npcs

      protected final Map<eu.cloudnetservice.modules.bridge.WorldPosition, eu.cloudnetservice.modules.npc.NPC> npcs
    • npcConfiguration

      protected eu.cloudnetservice.modules.npc.configuration.NPCConfiguration npcConfiguration
  • Constructor Details

    • AbstractNPCManagement

      public AbstractNPCManagement(@Nullable @Nullable eu.cloudnetservice.modules.npc.configuration.NPCConfiguration npcConfiguration, @NonNull @NonNull eu.cloudnetservice.driver.event.EventManager eventManager)
  • Method Details

    • npcAt

      @Nullable public @Nullable eu.cloudnetservice.modules.npc.NPC npcAt(@NonNull @NonNull eu.cloudnetservice.modules.bridge.WorldPosition position)
      Specified by:
      npcAt in interface eu.cloudnetservice.modules.npc.NPCManagement
    • deleteNPC

      public void deleteNPC(@NonNull @NonNull eu.cloudnetservice.modules.npc.NPC npc)
      Specified by:
      deleteNPC in interface eu.cloudnetservice.modules.npc.NPCManagement
    • npcs

      @NonNull public @NonNull Collection<eu.cloudnetservice.modules.npc.NPC> npcs()
      Specified by:
      npcs in interface eu.cloudnetservice.modules.npc.NPCManagement
    • npcConfiguration

      @NonNull public @NonNull eu.cloudnetservice.modules.npc.configuration.NPCConfiguration npcConfiguration()
      Specified by:
      npcConfiguration in interface eu.cloudnetservice.modules.npc.NPCManagement
    • npcConfiguration

      public void npcConfiguration(@NonNull @NonNull eu.cloudnetservice.modules.npc.configuration.NPCConfiguration configuration)
      Specified by:
      npcConfiguration in interface eu.cloudnetservice.modules.npc.NPCManagement
    • handleInternalNPCCreate

      public void handleInternalNPCCreate(@NonNull @NonNull eu.cloudnetservice.modules.npc.NPC npc)
      Specified by:
      handleInternalNPCCreate in interface InternalNPCManagement
    • handleInternalNPCRemove

      public void handleInternalNPCRemove(@NonNull @NonNull eu.cloudnetservice.modules.bridge.WorldPosition position)
      Specified by:
      handleInternalNPCRemove in interface InternalNPCManagement
    • handleInternalNPCConfigUpdate

      public void handleInternalNPCConfigUpdate(@NonNull @NonNull eu.cloudnetservice.modules.npc.configuration.NPCConfiguration configuration)
      Specified by:
      handleInternalNPCConfigUpdate in interface InternalNPCManagement
    • channelMessage

      @NonNull protected eu.cloudnetservice.driver.channel.ChannelMessage.Builder channelMessage(@NonNull @NonNull String message)