Class LodestoneEnchantmentValueEffectHelper

java.lang.Object
team.lodestar.lodestone.modules.toolkit.enchanting.LodestoneEnchantmentValueEffectHelper

public class LodestoneEnchantmentValueEffectHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static float
    getAccurateAttackDamage(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack)
     
    static float
    getComponentValue(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack, net.minecraft.core.component.DataComponentType<?> component, net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> base)
     
    static float
    getComponentValue(net.minecraft.world.item.ItemStack item, net.minecraft.core.component.DataComponentType<?> component, float baseValue)
     
    static float
    getComponentValue(net.minecraft.world.item.ItemStack item, net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> filter, net.minecraft.core.component.DataComponentType<?> componentType, float baseValue)
     
    static float
    getComponentValue(net.minecraft.world.item.ItemStack enchantmentHolder, net.minecraft.world.item.ItemStack effectHolder, net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> filter, net.minecraft.core.component.DataComponentType<?> componentType, float baseValue)
     
    static List<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>
    getValueEffects(net.minecraft.world.item.ItemStack item, net.minecraft.core.component.DataComponentMap map, net.minecraft.core.component.DataComponentType<?> type)
     
    static void
    processValueEffect(org.apache.commons.lang3.mutable.MutableFloat mutable, net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect effect, int enchantmentLevel)
     

    Methods inherited from class java.lang.Object

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

    • LodestoneEnchantmentValueEffectHelper

      public LodestoneEnchantmentValueEffectHelper()
  • Method Details

    • getAccurateAttackDamage

      public static float getAccurateAttackDamage(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack)
    • getComponentValue

      public static float getComponentValue(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack, net.minecraft.core.component.DataComponentType<?> component, net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> base)
    • getComponentValue

      public static float getComponentValue(net.minecraft.world.item.ItemStack item, net.minecraft.core.component.DataComponentType<?> component, float baseValue)
    • getComponentValue

      public static float getComponentValue(net.minecraft.world.item.ItemStack item, @Nullable net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> filter, net.minecraft.core.component.DataComponentType<?> componentType, float baseValue)
    • getComponentValue

      public static float getComponentValue(net.minecraft.world.item.ItemStack enchantmentHolder, net.minecraft.world.item.ItemStack effectHolder, @Nullable net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> filter, net.minecraft.core.component.DataComponentType<?> componentType, float baseValue)
    • getValueEffects

      public static List<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect> getValueEffects(net.minecraft.world.item.ItemStack item, net.minecraft.core.component.DataComponentMap map, net.minecraft.core.component.DataComponentType<?> type)
    • processValueEffect

      public static void processValueEffect(org.apache.commons.lang3.mutable.MutableFloat mutable, net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect effect, int enchantmentLevel)