Class LodestoneEnchantmentValueEffectHelper
java.lang.Object
team.lodestar.lodestone.modules.toolkit.enchanting.LodestoneEnchantmentValueEffectHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatgetAccurateAttackDamage(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) static floatgetComponentValue(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 floatgetComponentValue(net.minecraft.world.item.ItemStack item, net.minecraft.core.component.DataComponentType<?> component, float baseValue) static floatgetComponentValue(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 floatgetComponentValue(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 voidprocessValueEffect(org.apache.commons.lang3.mutable.MutableFloat mutable, net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect effect, int enchantmentLevel)
-
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)
-