Interface BattleConfig

  • All Implemented Interfaces:

    
    public interface BattleConfig
    
                        

    Main BattleCards Configuration

    • Constructor Detail

    • Method Detail

      • get

         abstract String get(String key)

        Fetches a localized message from the plugin's language file.

        Parameters:
        key - Key to fetch
      • getMessage

        @Deprecated(message = "Unused as of Messages Revamp in v1.1.1", replaceWith = @ReplaceWith(imports = {}, expression = "get(key)")) String getMessage(String key)

        Fetches a localized message from the plugin's language file, with the plugin prefix.

        Parameters:
        key - Key to fetch
      • isAvailable

         abstract Boolean isAvailable(BattleCardType type)

        Fetches whether this BattleCardType is available on this current MC Version.

        Parameters:
        type - Card Type
      • setBasicDropsEnabled

         Unit setBasicDropsEnabled(Boolean isBasicDropsEnabled)

        Sets whether cards of the Rarity.BASIC rarity can be dropped by mobs.

        Parameters:
        isBasicDropsEnabled - true if can be dropped, false otherwise
      • getGrowthPassiveAmount

         Double getGrowthPassiveAmount()

        Fetches the amount of set experience added to cards in a player's inventory every hour.

      • setGrowthPassiveAmount

         Unit setGrowthPassiveAmount(Double growthPassiveAmount)

        Sets the amount of set experience added to cards in a player's inventory every hour.

        Parameters:
        growthPassiveAmount - Experience Amount
      • getGrowthUseMultiplier

         Double getGrowthUseMultiplier()

        Fetches the multiplier by the Card's Level for how much experience will be added upon this card being used.

      • setGrowthUseMultiplier

         Unit setGrowthUseMultiplier(Double growthUseMultiplier)

        Sets the multiplier by the Card's Level for how much experience will be added upon this card being used.

        Parameters:
        growthUseMultiplier - Use Multiplier
      • getGrowthKillMultiplier

         Double getGrowthKillMultiplier()

        Fetches the multiplier that will be added to a target's maximum health upon a card killing it to be added to its experience.

      • setGrowthKillMultiplier

         Unit setGrowthKillMultiplier(Double growthKillMultiplier)

        Sets the multiplier that will be added to a target's maximum health upon a card killing it to be added to its experience.

        Parameters:
        growthKillMultiplier - Kill Multiplier
      • setGrowthKillCardMultiplier

         Unit setGrowthKillCardMultiplier(Double growthKillCardMultiplier)

        Sets the multiplier for the kill multiplier when the target is a Battle Card.

        Parameters:
        growthKillCardMultiplier - Kill Card Multiplier
      • getCardCooldown

         Integer getCardCooldown()

        Fetches the cooldown, in seconds, between when the same BattleCard can be deployed again

      • setCardCooldown

         Unit setCardCooldown(Integer cardCooldown)

        Sets the cooldown, in seconds, between when the same BattleCard can be deployed again

        Parameters:
        cardCooldown - Cooldown
      • getPlayerCooldownCount

         Integer getPlayerCooldownCount()

        Fetches the number of cards that can be deployed by a player before the cooldown is activated.

      • setPlayerCooldownCount

         Unit setPlayerCooldownCount(Integer playerCooldownCount)

        Sets the number of cards that can be deployed by a player before the cooldown is activated.

        Parameters:
        playerCooldownCount - Card Count
      • getPlayerCooldownTime

         Integer getPlayerCooldownTime()

        Fetches the time, in seconds, that the cooldown will be activated for when the player has deployed the maximum number of cards.

      • setPlayerCooldownTime

         Unit setPlayerCooldownTime(Integer playerCooldownTime)

        Sets the time, in seconds, that the cooldown will be activated for when the player has deployed the maximum number of cards.

        Parameters:
        playerCooldownTime - Cooldown Time
      • getPlayerCooldownIgnored

         List<String> getPlayerCooldownIgnored()

        Fetches a list of players, permissions, and vault group patterns that will not be affected by the player cooldown.

      • setPlayerCooldownIgnored

         Unit setPlayerCooldownIgnored(List<String> playerCooldownIgnored)

        Sets a list of players, permissions, and vault group patterns that will not be affected by the player cooldown.

        Parameters:
        playerCooldownIgnored - List of Players
      • setCardAttackPlayers

         Unit setCardAttackPlayers(Boolean cardAttackPlayers)

        Sets whether Battle Cards can attack players.

        Parameters:
        cardAttackPlayers - true if can attack players, false otherwise
      • setTargetCards

         Unit setTargetCards(Boolean targetCards)

        Sets whether Non-Card Entities can target Battle Cards.

        Parameters:
        targetCards - true if can target Battle Cards, false otherwise
      • setCardDestroyedThorns

         Unit setCardDestroyedThorns(Boolean isCardDestroyedThorns)

        Sets whether Battle Cards can be destroyed by a Cactus.

        Parameters:
        isCardDestroyedThorns - true if can be destroyed by a Cactus, false otherwise
      • setCardDestroyedFire

         Unit setCardDestroyedFire(Boolean isCardDestroyedFire)

        Sets whether Battle Cards can be destroyed by Fire.

        Parameters:
        isCardDestroyedFire - true if can be destroyed by Fire, false otherwise
      • setCardDestroyedExplosion

         Unit setCardDestroyedExplosion(Boolean isCardDestroyedExplosion)

        Sets whether Battle Cards can be destroyed by an Explosion.

        Parameters:
        isCardDestroyedExplosion - true if can be destroyed by an Explosion, false otherwise
      • setCardsDespawn

         Unit setCardsDespawn(Boolean isCardsDespawn)

        Sets whether Battle Card Items can despawn.

        Parameters:
        isCardsDespawn - true if can despawn, false otherwise
      • setMaxCardsSpawned

         Unit setMaxCardsSpawned(Integer maxCardsSpawned)

        Sets the maximum number of Battle Cards that can be spawned at once.

        Parameters:
        maxCardsSpawned - Maximum Cards
      • setCardTradesChance

         Unit setCardTradesChance(Double cardTradesChance)

        Sets the chance that a villager will get a BattleCard-related trade.

        Parameters:
        cardTradesChance - Chance