Class PlatformNPCManagement<L,P,M,I,S>
java.lang.Object
eu.cloudnetservice.modules.npc.impl.AbstractNPCManagement
eu.cloudnetservice.modules.npc.impl.platform.PlatformNPCManagement<L,P,M,I,S>
- All Implemented Interfaces:
InternalNPCManagement, eu.cloudnetservice.modules.npc.NPCManagement
- Direct Known Subclasses:
BukkitPlatformNPCManagement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final eu.cloudnetservice.driver.provider.CloudServiceProviderprotected final eu.cloudnetservice.driver.ComponentInfoprotected final eu.cloudnetservice.driver.service.ServiceConfigurationstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected final Map<eu.cloudnetservice.modules.bridge.WorldPosition, eu.cloudnetservice.modules.npc.platform.PlatformSelectorEntity<L, P, M, I, S>> Fields inherited from class AbstractNPCManagement
NPC_CHANNEL_NAME, NPC_CONFIGURATION_UPDATE, NPC_CREATED, NPC_DELETED, npcConfiguration, npcs -
Constructor Summary
ConstructorsConstructorDescriptionPlatformNPCManagement(@NonNull eu.cloudnetservice.driver.event.EventManager eventManager, @NonNull eu.cloudnetservice.driver.ComponentInfo componentInfo, @NonNull eu.cloudnetservice.driver.provider.CloudServiceProvider cloudServiceProvider, @NonNull eu.cloudnetservice.wrapper.configuration.WrapperConfiguration wrapperConfiguration) -
Method Summary
Modifier and TypeMethodDescription@Nullable eu.cloudnetservice.modules.npc.configuration.NPCConfigurationEntryprotected eu.cloudnetservice.driver.channel.ChannelMessage.BuilderchannelMessage(@NonNull String message) voidprotected abstract @NonNull eu.cloudnetservice.modules.npc.platform.PlatformSelectorEntity<L, P, M, I, S> createSelectorEntity(@NonNull eu.cloudnetservice.modules.npc.NPC base) intintdeleteAllNPCs(@NonNull String group) voidvoidhandleInternalNPCConfigUpdate(@NonNull eu.cloudnetservice.modules.npc.configuration.NPCConfiguration configuration) voidhandleInternalNPCCreate(@NonNull eu.cloudnetservice.modules.npc.NPC npc) voidhandleInternalNPCRemove(@NonNull eu.cloudnetservice.modules.bridge.WorldPosition position) voidhandleServiceRemove(@NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot service) voidhandleServiceUpdate(@NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot service) void@NonNull eu.cloudnetservice.modules.npc.configuration.InventoryConfigurationprotected static @Nullable eu.cloudnetservice.modules.npc.configuration.NPCConfigurationloadNPCConfiguration(@NonNull eu.cloudnetservice.driver.ComponentInfo componentInfo) voidnpcConfiguration(@NonNull eu.cloudnetservice.modules.npc.configuration.NPCConfiguration configuration) @NonNull Collection<eu.cloudnetservice.modules.npc.NPC> npcs(@NonNull Collection<String> groups) intrandomEmoteId(@NonNull eu.cloudnetservice.modules.npc.configuration.LabyModEmoteConfiguration configuration, int[] emoteIds) voidprotected abstract booleanshouldTrack(@NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot serviceInfoSnapshot) protected abstract LtoPlatformLocation(@NonNull eu.cloudnetservice.modules.bridge.WorldPosition position) protected abstract @NonNull eu.cloudnetservice.modules.bridge.WorldPositiontoWorldPosition(L location, @NonNull String group) @NonNull Map<eu.cloudnetservice.modules.bridge.WorldPosition, eu.cloudnetservice.modules.npc.platform.PlatformSelectorEntity<L, P, M, I, S>> Methods inherited from class AbstractNPCManagement
deleteNPC, npcAt, npcConfiguration, npcs
-
Field Details
-
NPC_CREATE
- See Also:
-
NPC_DELETE
- See Also:
-
NPC_BULK_DELETE
- See Also:
-
NPC_ALL_DELETE
- See Also:
-
NPC_GET_NPCS_BY_GROUP
- See Also:
-
NPC_REQUEST_CONFIG
- See Also:
-
NPC_SET_CONFIG
- See Also:
-
componentInfo
protected final eu.cloudnetservice.driver.ComponentInfo componentInfo -
cloudServiceProvider
protected final eu.cloudnetservice.driver.provider.CloudServiceProvider cloudServiceProvider -
currentServiceConfiguration
protected final eu.cloudnetservice.driver.service.ServiceConfiguration currentServiceConfiguration -
trackedServices
-
trackedEntities
-
-
Constructor Details
-
PlatformNPCManagement
public PlatformNPCManagement(@NonNull @NonNull eu.cloudnetservice.driver.event.EventManager eventManager, @NonNull @NonNull eu.cloudnetservice.driver.ComponentInfo componentInfo, @NonNull @NonNull eu.cloudnetservice.driver.provider.CloudServiceProvider cloudServiceProvider, @NonNull @NonNull eu.cloudnetservice.wrapper.configuration.WrapperConfiguration wrapperConfiguration)
-
-
Method Details
-
loadNPCConfiguration
-
createNPC
-
deleteNPC
-
deleteAllNPCs
-
deleteAllNPCs
public int deleteAllNPCs() -
npcs
@NonNull public @NonNull Collection<eu.cloudnetservice.modules.npc.NPC> npcs(@NonNull @NonNull Collection<String> groups) -
npcConfiguration
public void npcConfiguration(@NonNull @NonNull eu.cloudnetservice.modules.npc.configuration.NPCConfiguration configuration) - Specified by:
npcConfigurationin interfaceeu.cloudnetservice.modules.npc.NPCManagement- Overrides:
npcConfigurationin classAbstractNPCManagement
-
handleInternalNPCCreate
- Specified by:
handleInternalNPCCreatein interfaceInternalNPCManagement- Overrides:
handleInternalNPCCreatein classAbstractNPCManagement
-
handleInternalNPCRemove
public void handleInternalNPCRemove(@NonNull @NonNull eu.cloudnetservice.modules.bridge.WorldPosition position) - Specified by:
handleInternalNPCRemovein interfaceInternalNPCManagement- Overrides:
handleInternalNPCRemovein classAbstractNPCManagement
-
handleInternalNPCConfigUpdate
public void handleInternalNPCConfigUpdate(@NonNull @NonNull eu.cloudnetservice.modules.npc.configuration.NPCConfiguration configuration) - Specified by:
handleInternalNPCConfigUpdatein interfaceInternalNPCManagement- Overrides:
handleInternalNPCConfigUpdatein classAbstractNPCManagement
-
channelMessage
@NonNull protected eu.cloudnetservice.driver.channel.ChannelMessage.Builder channelMessage(@NonNull @NonNull String message) - Overrides:
channelMessagein classAbstractNPCManagement
-
initialize
public void initialize() -
removeSpawnedEntities
public void removeSpawnedEntities() -
applicableNPCConfigurationEntry
-
inventoryConfiguration
-
handleServiceUpdate
-
handleServiceRemove
-
randomEmoteId
-
trackedEntities
-
createSelectorEntity
-
toWorldPosition
-
toPlatformLocation
-
shouldTrack
-