Package com.wdiscute.echoes.perk
Class Perk
java.lang.Object
com.wdiscute.echoes.perk.Perk
- Direct Known Subclasses:
SimplePerk
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloataddChestRolls(net.minecraft.world.entity.player.Player player, PerkInstance instance) floataddDamage(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.item.ItemStack weapon, @NotNull net.minecraft.world.entity.Entity entity, PerkInstance value) floataddFlatSouls(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack weapon, @Nullable net.minecraft.world.entity.LivingEntity entityKilled, PerkInstance instance, float currentSouls) floataddFlatSoulsReduction(net.minecraft.world.entity.player.Player player, PerkInstance instance, float soulsToBeConsumed) floataddPercentSouls(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack weapon, @Nullable net.minecraft.world.entity.LivingEntity entityKilled, PerkInstance instance, float currentSouls) floataddPercentSoulsReduction(net.minecraft.world.entity.player.Player player, PerkInstance instance, float soulsToBeConsumed) format(PerkInstance instance, String id) static List<PerkInstance> getActivePerks(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.item.ItemStack weaponItem) getIds()abstract List<net.minecraft.network.chat.MutableComponent> getItemTooltip(net.minecraft.world.item.ItemStack stack, PerkInstance instance) List<net.minecraft.network.chat.MutableComponent> getShopExtendedTooltip(net.minecraft.world.item.ItemStack stack, PerkInstance instance) abstract List<net.minecraft.network.chat.MutableComponent> getShopTooltip(net.minecraft.world.item.ItemStack stack, PerkInstance instance) voidonEntityKilled(@NotNull net.minecraft.world.entity.player.Player killer, @NotNull net.minecraft.world.item.ItemStack weapon, @NotNull net.minecraft.world.entity.Entity entityKilled, PerkInstance value) voidonNewInstanceEntered(net.minecraft.server.level.ServerPlayer player, PerkInstance instance, TimelessInstance timelessInstance) floatreduceDamage(net.minecraft.world.entity.player.Player player, PerkInstance instance)
-
Field Details
-
DAMAGE
- See Also:
-
VALUE
- See Also:
-
HEAL
- See Also:
-
COST
- See Also:
-
DURATION
- See Also:
-
COOLDOWN
- See Also:
-
RANGE
- See Also:
-
-
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
-
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
-
onNewInstanceEntered
public void onNewInstanceEntered(net.minecraft.server.level.ServerPlayer player, PerkInstance instance, TimelessInstance timelessInstance) -
addChestRolls
-
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
-