DamageTower

public class DamageTower extends Tower implements TowerInterface

Inheritors

Constructors

Link copied to clipboard
public void DamageTower(LevelSession levelSession, String name, double damage, double secondsBetweenAttacks, int cost, Material itemStackMaterial, EntityType towerEntityType, String metadataPersistentKey, ElementalAttunement elementalAttunement, String customModelID)

Types

Link copied to clipboard
protected class BeamTarget

Properties

Link copied to clipboard
protected double aoeRange
Link copied to clipboard
protected double armorDamagePercentage
Link copied to clipboard
protected int beamGenerators
Link copied to clipboard
Link copied to clipboard
protected double bonusRange
Link copied to clipboard
protected double criticalStrikeChance
Link copied to clipboard
protected double currencyBonus
Link copied to clipboard
protected double damage
Link copied to clipboard
protected double damageDealtAsFireDot
Link copied to clipboard
protected double range
Link copied to clipboard
protected double secondsBetweenAttacks
Link copied to clipboard
protected double slowness

Inherited properties

Link copied to clipboard
public int cost
Link copied to clipboard
protected ArmorStand elementalAttunementDisplay
Link copied to clipboard
protected List<String> extraItemStackInfo
Link copied to clipboard
Link copied to clipboard
public ItemStack itemStack
Link copied to clipboard
protected Material itemStackMaterial
Link copied to clipboard
Link copied to clipboard
protected LivingEntity livingEntity
Link copied to clipboard
protected String name
Link copied to clipboard
public NamespacedKey namespacedKey
Link copied to clipboard
protected String persistentMetadataKey
Link copied to clipboard
protected EntityType towerEntityType
Link copied to clipboard
Link copied to clipboard
protected int upgradeLevel

Functions

Link copied to clipboard
public boolean build(Location location)
Link copied to clipboard
public void explosionDamage(WaveEntity waveEntity)
Link copied to clipboard
public double getAoeRange()
Link copied to clipboard
public double getArmorDamage(double currentDamage)
Link copied to clipboard
public double getCriticalStrikeChance()
Link copied to clipboard
public double getCurrencyBonus()
Link copied to clipboard
public double getDamage()
Link copied to clipboard
public double getDamageDealtAsFireDot()
Link copied to clipboard
public double getProcessedDamage(@Nullable() @Nullable() WaveEntity target)
Link copied to clipboard
public double getRange()
Link copied to clipboard
public double getSecondsBetweenAttacks()
Link copied to clipboard
protected int getTicksBetweenAttacks()
Link copied to clipboard
protected double getVisualDamage()
Link copied to clipboard
public void remove()
Link copied to clipboard
public void setAoeRange(double aoeRange)
Link copied to clipboard
public void setRange(double range)
Link copied to clipboard
public void shoot()
Link copied to clipboard
protected int tickBetweenAttacksMath(double rawTicksBetweenAttack)
Link copied to clipboard
protected Vector toTarget(Location currentLocation, LivingEntity currentTarget)
Link copied to clipboard
public void updateBonuses()
Link copied to clipboard
public void upgrade()

Inherited functions

Link copied to clipboard
protected void generateItemStack()
Link copied to clipboard
public int getCost()
Link copied to clipboard
Link copied to clipboard
public ItemStack getItemStack()
Link copied to clipboard
public Material getItemStackMaterial()
Link copied to clipboard
public static Tower getItemStackTower(ItemStack itemStack, LevelSession levelSession)
Link copied to clipboard
Link copied to clipboard
public LivingEntity getLivingEntity()
Link copied to clipboard
public String getName()
Link copied to clipboard
public NamespacedKey getNamespacedKey()
Link copied to clipboard
public static int getPriceIncrease(int towerCount)
Flat surcharge added on top of a tower's base cost once the session has enough towers.
Link copied to clipboard
public int getSellValue()
Link copied to clipboard
public EntityType getTowerEntityType()
Link copied to clipboard
public int getUpgradeCost()
Link copied to clipboard
public boolean isPurchaseGracePeriod()
Link copied to clipboard
protected void modifyItemStack()
Link copied to clipboard
public void setCurrentElementalAttunement(ElementalAttunement currentElementalAttunement)
Link copied to clipboard
public void setPurchasePrice(int purchasePrice)
Link copied to clipboard
protected void updateModel()