Class BukkitPlatformNPCManagement
java.lang.Object
eu.cloudnetservice.modules.npc.impl.AbstractNPCManagement
eu.cloudnetservice.modules.npc.impl.platform.PlatformNPCManagement<org.bukkit.Location, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory, org.bukkit.scoreboard.Scoreboard>
eu.cloudnetservice.modules.npc.impl.platform.bukkit.BukkitPlatformNPCManagement
- All Implemented Interfaces:
InternalNPCManagement,eu.cloudnetservice.modules.npc.NPCManagement
@Singleton
@ProvidesFor(platform="bukkit",
types={PlatformNPCManagement.class,AbstractNPCManagement.class,InternalNPCManagement.class,eu.cloudnetservice.modules.npc.NPCManagement.class})
public class BukkitPlatformNPCManagement
extends PlatformNPCManagement<org.bukkit.Location, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory, org.bukkit.scoreboard.Scoreboard>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.bukkit.scheduler.BukkitTaskprotected org.bukkit.scheduler.BukkitTaskprotected final com.github.juliarn.npclib.api.Platform<org.bukkit.World, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.plugin.Plugin> protected final eu.cloudnetservice.modules.bridge.player.PlayerManagerprotected final org.bukkit.plugin.Pluginprotected final org.bukkit.scheduler.BukkitSchedulerprotected final org.bukkit.ServerFields inherited from class eu.cloudnetservice.modules.npc.impl.platform.PlatformNPCManagement
cloudServiceProvider, componentInfo, currentServiceConfiguration, NPC_ALL_DELETE, NPC_BULK_DELETE, NPC_CREATE, NPC_DELETE, NPC_GET_NPCS_BY_GROUP, NPC_REQUEST_CONFIG, NPC_SET_CONFIG, trackedEntities, trackedServicesFields inherited from class eu.cloudnetservice.modules.npc.impl.AbstractNPCManagement
NPC_CHANNEL_NAME, NPC_CONFIGURATION_UPDATE, NPC_CREATED, NPC_DELETED, npcConfiguration, npcs -
Constructor Summary
ConstructorsConstructorDescriptionBukkitPlatformNPCManagement(@NonNull org.bukkit.plugin.Plugin plugin, @NonNull org.bukkit.Server server, @NonNull org.bukkit.scheduler.BukkitScheduler scheduler, @NonNull eu.cloudnetservice.driver.event.EventManager eventManager, @NonNull eu.cloudnetservice.driver.ComponentInfo componentInfo, @NonNull eu.cloudnetservice.modules.bridge.player.PlayerManager playerManager, @NonNull eu.cloudnetservice.driver.provider.CloudServiceProvider cloudServiceProvider, @NonNull eu.cloudnetservice.wrapper.configuration.WrapperConfiguration wrapperConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull eu.cloudnetservice.modules.npc.platform.PlatformSelectorEntity<org.bukkit.Location, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory, org.bukkit.scoreboard.Scoreboard> createSelectorEntity(@NonNull eu.cloudnetservice.modules.npc.NPC base) voidhandleInternalNPCConfigUpdate(@NonNull eu.cloudnetservice.modules.npc.configuration.NPCConfiguration configuration) void@NonNull com.github.juliarn.npclib.api.Platform<org.bukkit.World, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.plugin.Plugin> protected @NonNull com.github.juliarn.npclib.api.protocol.PlatformPacketAdapter<org.bukkit.World, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.plugin.Plugin> protected booleanshouldTrack(@NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot service) protected voidstartEmoteTask(boolean force) @NonNull org.bukkit.LocationtoPlatformLocation(@NonNull eu.cloudnetservice.modules.bridge.WorldPosition position) @NonNull eu.cloudnetservice.modules.bridge.WorldPositiontoWorldPosition(@NonNull org.bukkit.Location location, @NonNull String group) Methods inherited from class eu.cloudnetservice.modules.npc.impl.platform.PlatformNPCManagement
applicableNPCConfigurationEntry, channelMessage, createNPC, deleteAllNPCs, deleteAllNPCs, deleteNPC, handleInternalNPCCreate, handleInternalNPCRemove, handleServiceRemove, handleServiceUpdate, inventoryConfiguration, loadNPCConfiguration, npcConfiguration, npcs, randomEmoteId, removeSpawnedEntities, trackedEntitiesMethods inherited from class eu.cloudnetservice.modules.npc.impl.AbstractNPCManagement
deleteNPC, npcAt, npcConfiguration, npcs
-
Field Details
-
plugin
protected final org.bukkit.plugin.Plugin plugin -
server
protected final org.bukkit.Server server -
scheduler
protected final org.bukkit.scheduler.BukkitScheduler scheduler -
playerManager
protected final eu.cloudnetservice.modules.bridge.player.PlayerManager playerManager -
npcPlatform
protected final com.github.juliarn.npclib.api.Platform<org.bukkit.World, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.plugin.Plugin> npcPlatform -
knockBackTask
protected final org.bukkit.scheduler.BukkitTask knockBackTask -
npcEmoteTask
protected volatile org.bukkit.scheduler.BukkitTask npcEmoteTask
-
-
Constructor Details
-
BukkitPlatformNPCManagement
@Inject public BukkitPlatformNPCManagement(@NonNull @NonNull org.bukkit.plugin.Plugin plugin, @NonNull @NonNull org.bukkit.Server server, @NonNull @NonNull org.bukkit.scheduler.BukkitScheduler scheduler, @NonNull @NonNull eu.cloudnetservice.driver.event.EventManager eventManager, @NonNull @NonNull eu.cloudnetservice.driver.ComponentInfo componentInfo, @NonNull @Service @NonNull eu.cloudnetservice.modules.bridge.player.PlayerManager playerManager, @NonNull @NonNull eu.cloudnetservice.driver.provider.CloudServiceProvider cloudServiceProvider, @NonNull @NonNull eu.cloudnetservice.wrapper.configuration.WrapperConfiguration wrapperConfiguration)
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initializein classPlatformNPCManagement<org.bukkit.Location, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory, org.bukkit.scoreboard.Scoreboard>
-
createSelectorEntity
@NonNull protected @NonNull eu.cloudnetservice.modules.npc.platform.PlatformSelectorEntity<org.bukkit.Location, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory, org.bukkit.scoreboard.Scoreboard> createSelectorEntity(@NonNull @NonNull eu.cloudnetservice.modules.npc.NPC base) - Specified by:
createSelectorEntityin classPlatformNPCManagement<org.bukkit.Location, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory, org.bukkit.scoreboard.Scoreboard>
-
toWorldPosition
@NonNull public @NonNull eu.cloudnetservice.modules.bridge.WorldPosition toWorldPosition(@NonNull @NonNull org.bukkit.Location location, @NonNull @NonNull String group) - Specified by:
toWorldPositionin classPlatformNPCManagement<org.bukkit.Location, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory, org.bukkit.scoreboard.Scoreboard>
-
toPlatformLocation
@NonNull public @NonNull org.bukkit.Location toPlatformLocation(@NonNull @NonNull eu.cloudnetservice.modules.bridge.WorldPosition position) - Specified by:
toPlatformLocationin classPlatformNPCManagement<org.bukkit.Location, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory, org.bukkit.scoreboard.Scoreboard>
-
shouldTrack
protected boolean shouldTrack(@NonNull @NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot service) - Specified by:
shouldTrackin classPlatformNPCManagement<org.bukkit.Location, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory, org.bukkit.scoreboard.Scoreboard>
-
handleInternalNPCConfigUpdate
public void handleInternalNPCConfigUpdate(@NonNull @NonNull eu.cloudnetservice.modules.npc.configuration.NPCConfiguration configuration) - Specified by:
handleInternalNPCConfigUpdatein interfaceInternalNPCManagement- Overrides:
handleInternalNPCConfigUpdatein classPlatformNPCManagement<org.bukkit.Location, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.inventory.Inventory, org.bukkit.scoreboard.Scoreboard>
-
npcPlatform
-
startEmoteTask
protected void startEmoteTask(boolean force) -
resolvePacketAdapter
-