Class Perk

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

public abstract class Perk extends Object
  • Field Details

  • 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)
    • format

      public String format(PerkInstance instance, String id)
    • 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, PerkInstance 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, PerkInstance 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, PerkInstance instance, 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, PerkInstance instance, float currentSouls)
    • addFlatSoulsReduction

      public float addFlatSoulsReduction(net.minecraft.world.entity.player.Player player, PerkInstance instance, float soulsToBeConsumed)
    • addPercentSoulsReduction

      public float addPercentSoulsReduction(net.minecraft.world.entity.player.Player player, PerkInstance instance, float soulsToBeConsumed)
    • reduceDamage

      public float reduceDamage(net.minecraft.world.entity.player.Player player, PerkInstance instance)
    • onNewInstanceEntered

      public void onNewInstanceEntered(net.minecraft.server.level.ServerPlayer player, PerkInstance instance, TimelessInstance timelessInstance)
    • addChestRolls

      public float addChestRolls(net.minecraft.world.entity.player.Player player, PerkInstance instance)
    • getItemTooltip

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

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

      public List<net.minecraft.network.chat.MutableComponent> getShopExtendedTooltip(net.minecraft.world.item.ItemStack stack, PerkInstance instance)
    • getIds

      public abstract List<String> getIds()