Class Perk

java.lang.Object
com.wdiscute.echoes.upgrades.Perk
Direct Known Subclasses:
SimplePerk

public abstract class Perk extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    addChestRolls(net.minecraft.world.entity.player.Player player, List<Float> amplifiers)
     
    float
    addDamage(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.item.ItemStack weapon, @NotNull net.minecraft.world.entity.Entity entity, List<Float> value)
     
    float
    addFlatSouls(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack weapon, @Nullable net.minecraft.world.entity.LivingEntity entityKilled, List<Float> amplifier, float currentSouls)
     
    float
    addPercentSouls(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack weapon, @Nullable net.minecraft.world.entity.LivingEntity entityKilled, List<Float> amplifier, float currentSouls)
     
    getActivePerks(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.item.ItemStack weaponItem)
     
    abstract List<net.minecraft.network.chat.MutableComponent>
    getItemTooltip(net.minecraft.world.item.ItemStack stack, List<Float> value)
     
    List<net.minecraft.network.chat.MutableComponent>
    getShopExtendedTooltip(net.minecraft.world.item.ItemStack stack, List<Float> value)
     
    abstract List<net.minecraft.network.chat.MutableComponent>
    getShopTooltip(net.minecraft.world.item.ItemStack stack, List<Float> value)
     
    void
    onEntityKilled(@NotNull net.minecraft.world.entity.player.Player killer, @NotNull net.minecraft.world.item.ItemStack weapon, @NotNull net.minecraft.world.entity.Entity entityKilled, List<Float> value)
     
    void
    onNewInstanceEntered(net.minecraft.server.level.ServerPlayer player, List<Float> amplifiers, TimelessInstance instance)
     
    float
    reduceDamage(net.minecraft.world.entity.player.Player player, List<Float> amplifiers)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Perk

      public Perk()
  • Method Details

    • getActivePerks

      public static List<PerkInstance> getActivePerks(@NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.item.ItemStack weaponItem)
    • onEntityKilled

      public void onEntityKilled(@NotNull @NotNull net.minecraft.world.entity.player.Player killer, @NotNull @NotNull net.minecraft.world.item.ItemStack weapon, @NotNull @NotNull net.minecraft.world.entity.Entity entityKilled, List<Float> value)
    • addDamage

      public float addDamage(@NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.item.ItemStack weapon, @NotNull @NotNull net.minecraft.world.entity.Entity entity, List<Float> value)
    • addFlatSouls

      public float addFlatSouls(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack weapon, @Nullable @Nullable net.minecraft.world.entity.LivingEntity entityKilled, List<Float> amplifier, float currentSouls)
    • addPercentSouls

      public float addPercentSouls(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack weapon, @Nullable @Nullable net.minecraft.world.entity.LivingEntity entityKilled, List<Float> amplifier, float currentSouls)
    • reduceDamage

      public float reduceDamage(net.minecraft.world.entity.player.Player player, List<Float> amplifiers)
    • onNewInstanceEntered

      public void onNewInstanceEntered(net.minecraft.server.level.ServerPlayer player, List<Float> amplifiers, TimelessInstance instance)
    • addChestRolls

      public float addChestRolls(net.minecraft.world.entity.player.Player player, List<Float> amplifiers)
    • getItemTooltip

      public abstract List<net.minecraft.network.chat.MutableComponent> getItemTooltip(net.minecraft.world.item.ItemStack stack, List<Float> value)
    • getShopTooltip

      public abstract List<net.minecraft.network.chat.MutableComponent> getShopTooltip(net.minecraft.world.item.ItemStack stack, List<Float> value)
    • getShopExtendedTooltip

      public List<net.minecraft.network.chat.MutableComponent> getShopExtendedTooltip(net.minecraft.world.item.ItemStack stack, List<Float> value)