Class NPCBukkitPlatformSelector
java.lang.Object
eu.cloudnetservice.modules.npc.impl.platform.bukkit.entity.BukkitPlatformSelectorEntity
eu.cloudnetservice.modules.npc.impl.platform.bukkit.entity.NPCBukkitPlatformSelector
- All Implemented Interfaces:
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>
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.cloudnetservice.modules.npc.impl.platform.bukkit.entity.BukkitPlatformSelectorEntity
BukkitPlatformSelectorEntity.InfoLineWrapper, BukkitPlatformSelectorEntity.ServiceItemWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.github.juliarn.npclib.api.Npc<org.bukkit.World, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.plugin.Plugin> protected final com.github.juliarn.npclib.api.Platform<org.bukkit.World, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.plugin.Plugin> static final com.github.juliarn.npclib.api.flag.NpcFlag<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>> Fields inherited from class eu.cloudnetservice.modules.npc.impl.platform.bukkit.entity.BukkitPlatformSelectorEntity
infoLineEntityIds, infoLines, inventory, MAX_INVENTORY_ROW_ITEMS, MAX_INVENTORY_ROWS, MAX_INVENTORY_SIZE, npc, npcLocation, npcManagement, playerManager, plugin, scheduler, scoreboardTeamName, server, serviceItems, SET_COLOR, uniqueId -
Constructor Summary
ConstructorsConstructorDescriptionNPCBukkitPlatformSelector(@NonNull eu.cloudnetservice.modules.npc.NPC npc, @NonNull org.bukkit.plugin.Plugin plugin, @NonNull org.bukkit.Server server, @NonNull org.bukkit.scheduler.BukkitScheduler scheduler, @NonNull eu.cloudnetservice.modules.bridge.player.PlayerManager playerManager, @NonNull BukkitPlatformNPCManagement npcManagement, @NonNull com.github.juliarn.npclib.api.Platform<org.bukkit.World, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.plugin.Plugin> platform) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintentityId()@NonNull com.github.juliarn.npclib.api.Npc<org.bukkit.World, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.plugin.Plugin> protected doubleheightAddition(int lineNumber) protected voidremove0()protected voidspawn0()booleanspawned()Methods inherited from class eu.cloudnetservice.modules.npc.impl.platform.bukkit.entity.BukkitPlatformSelectorEntity
buildItemStack, calculateInventorySize, canSpawn, doRemove, executeAction, handleClickAction, handleInventoryInteract, handleLeftClickAction, handleRightClickAction, infoLineEntityIds, location, npc, playerManager, rebuildInfoLines, rebuildInventory, registerScoreboardTeam, remove, selectorInventory, spawn, stopTrackingService, trackService, unregisterItem, update
-
Field Details
-
SELECTOR_ENTITY
public static final com.github.juliarn.npclib.api.flag.NpcFlag<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>> SELECTOR_ENTITY -
platform
protected final com.github.juliarn.npclib.api.Platform<org.bukkit.World, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.plugin.Plugin> platform -
handleNpc
protected volatile com.github.juliarn.npclib.api.Npc<org.bukkit.World, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.plugin.Plugin> handleNpc
-
-
Constructor Details
-
NPCBukkitPlatformSelector
public NPCBukkitPlatformSelector(@NonNull @NonNull eu.cloudnetservice.modules.npc.NPC npc, @NonNull @NonNull org.bukkit.plugin.Plugin plugin, @NonNull @NonNull org.bukkit.Server server, @NonNull @NonNull org.bukkit.scheduler.BukkitScheduler scheduler, @NonNull @NonNull eu.cloudnetservice.modules.bridge.player.PlayerManager playerManager, @NonNull @NonNull BukkitPlatformNPCManagement npcManagement, @NonNull @NonNull com.github.juliarn.npclib.api.Platform<org.bukkit.World, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.plugin.Plugin> platform)
-
-
Method Details
-
entityId
public int entityId() -
scoreboardRepresentation
-
spawned
public boolean spawned() -
spawn0
protected void spawn0()- Specified by:
spawn0in classBukkitPlatformSelectorEntity
-
remove0
protected void remove0()- Specified by:
remove0in classBukkitPlatformSelectorEntity
-
addGlowingEffect
protected void addGlowingEffect()- Specified by:
addGlowingEffectin classBukkitPlatformSelectorEntity
-
handleNPC
-
heightAddition
protected double heightAddition(int lineNumber) - Overrides:
heightAdditionin classBukkitPlatformSelectorEntity
-