Class SoldierTurret
java.lang.Object
org.kingdoms.constants.base.CompressedSmartObject
org.kingdoms.constants.base.KingdomsObject
org.kingdoms.constants.base.KeyedKingdomsObject<SimpleLocation>
org.kingdoms.constants.land.KingdomBlock
org.kingdoms.constants.land.abstraction.KingdomBuilding<TurretStyle>
org.kingdoms.constants.land.turrets.Turret
org.kingdoms.constants.land.turrets.objects.RangedTurret
org.kingdoms.constants.land.turrets.objects.SoldierTurret
- All Implemented Interfaces:
org.kingdoms.abstraction.Levellable,org.kingdoms.abstraction.PlayerOperator,Keyed<SimpleLocation>,SmartObject,org.kingdoms.constants.group.model.logs.Loggable,org.kingdoms.data.Deserializable,org.kingdoms.data.Serializable,org.kingdoms.locale.provider.CascadingMessageContextProvider,org.kingdoms.locale.provider.MessageContextProvider
-
Field Summary
Fields inherited from class org.kingdoms.constants.land.turrets.objects.RangedTurret
ORIGIN_KINGDOM, ORIGIN_METADATAFields inherited from class org.kingdoms.constants.land.abstraction.KingdomBuilding
building, durability, level, styleFields inherited from class org.kingdoms.constants.land.KingdomBlock
originFields inherited from class org.kingdoms.constants.base.KingdomsObject
lastLogsExpirationCheck, logs, metadata, statisticsFields inherited from class org.kingdoms.constants.base.CompressedSmartObject
objectState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the turret successfully damages a player.booleanskipTarget(org.bukkit.entity.LivingEntity target) List<org.bukkit.entity.LivingEntity> spawnSoldiers(org.bukkit.entity.LivingEntity target, Kingdom kingdom, int lvl) Methods inherited from class org.kingdoms.constants.land.turrets.objects.RangedTurret
addAmmo, addMessageContextEdits, canFunction, canPassThrough, deserialize, getActivationPoint, getAmmo, getAmmoCost, getCooldown, getCooldown, getCooldown, getMaxAmmo, getMaxAmmo, getMaxTargets, getMaxTargets, getOperator, getPlayer, getProjectile, getRange, getRange, getSpeed, getSpeed, hashCode, isInCooldown, isManual, isOutOfAmmo, passThroughLevel, postActivation, rayTrace, rayTrace, remove, repeatedParticle, serialize, setAmmo, setCooldown, setManual, setMetadata, setOperator, shootProjectile, tickMethods inherited from class org.kingdoms.constants.land.turrets.Turret
addEffect, applyKnockback, canDetectInvisible, canSetOnFire, canTargetEntityType, chooseDeathMessage, createExplosion, createExplosion, damage, getArmorDamage, getArmorDamage, getDamage, getDamage, getDataMap, getDeathMessages, getEffect, getEffects, getHitEffects, getKingdomBlockHandler, getKnockback, getKnockback, getLastActivation, getParticle, getStateCache, getVerticalKnockback, invalidateStateCache, invisibilityDetectionLevel, onBuildFinish, place, setLastActivation, setOnFireLevelMethods inherited from class org.kingdoms.constants.land.abstraction.KingdomBuilding
addMessageContextEdits, decreaseDurability, displayParticle, displayParticle, dropItem, equals, eval, eval, getBlock, getBuilding, getBuildingSettings, getContext, getDurability, getItem, getKey, getLevel, getMaxLevel, getParticleDisplay, getPlaceholderContext, getStyle, getUpgradeCost, getVisualsManager, isEnabled, modifyData, ofSection, ofSection, ofSection, playSound, playSound, playSound, prepareBuilding, remove, repair, requireRepair, setBuilding, setDurability, setLevel, toString, update, upgradeMethods inherited from class org.kingdoms.constants.land.KingdomBlock
getLand, getOriginMethods inherited from class org.kingdoms.constants.base.KingdomsObject
getLogs, getMetadata, getNewestLog, getNewestLog, getStatistics, log, setLogs, setMetadata, setStatisticsMethods inherited from class org.kingdoms.constants.base.CompressedSmartObject
ensureValidObject, getCompressedData, getDataHandler, hasObjectExpired, invalidateObject, isNewData, isObjectStateSaved, saveObjectState, shouldSaveMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kingdoms.locale.provider.CascadingMessageContextProvider
getMessageContextMethods inherited from interface org.kingdoms.constants.base.SmartObject
isDataEmpty
-
Constructor Details
-
SoldierTurret
-
-
Method Details
-
activate
Description copied from class:TurretCalled when the turret successfully damages a player. This isn't the same thing as attempted damage to for example an arrow turret, where the arrow may not even hit the target. This should be called when the arrow/entity/etc. has successfully affected the player and the player wasn't able to avoid it. -
skipTarget
public boolean skipTarget(org.bukkit.entity.LivingEntity target) - Overrides:
skipTargetin classRangedTurret
-
spawnSoldiers
-