Tower

Constructors

Link copied to clipboard
public void Tower(LevelSession levelSession, String name, int cost, Material itemStackMaterial, EntityType towerEntityType, String persistentMetadataKey, ElementalAttunement elementalAttunement, String towerModelID)

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
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 remove()
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()
Link copied to clipboard
public void upgrade()