Class EntityBukkitPlatformSelectorEntity
java.lang.Object
eu.cloudnetservice.modules.npc.impl.platform.bukkit.entity.BukkitPlatformSelectorEntity
eu.cloudnetservice.modules.npc.impl.platform.bukkit.entity.EntityBukkitPlatformSelectorEntity
- 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 ClassesModifier and TypeClassDescriptionprivate static final classNested classes/interfaces inherited from class eu.cloudnetservice.modules.npc.impl.platform.bukkit.entity.BukkitPlatformSelectorEntity
BukkitPlatformSelectorEntity.InfoLineWrapper, BukkitPlatformSelectorEntity.ServiceItemWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final floatprotected org.bukkit.entity.LivingEntityprotected static final Consumer<org.bukkit.entity.LivingEntity> protected doubleprotected static final org.bukkit.potion.PotionEffectFields 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
ConstructorsConstructorDescriptionEntityBukkitPlatformSelectorEntity(@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) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintentityId()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
-
ARMOR_STAND_HEIGHT
protected static final float ARMOR_STAND_HEIGHT- See Also:
-
ENTITY_HEIGHT_GETTER
-
FALLBACK_HEIGHT_GETTER
-
ENTITY_SILENT_NO_AI
-
GLOWING_EFFECT
protected static final org.bukkit.potion.PotionEffect GLOWING_EFFECT -
entityHeight
protected double entityHeight -
entity
protected volatile org.bukkit.entity.LivingEntity entity
-
-
Constructor Details
-
EntityBukkitPlatformSelectorEntity
public EntityBukkitPlatformSelectorEntity(@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)
-
-
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
-
heightAddition
protected double heightAddition(int lineNumber) - Overrides:
heightAdditionin classBukkitPlatformSelectorEntity
-