Class WTEnchantmentHelper

java.lang.Object
net.minecraft.world.item.enchantment.EnchantmentHelper
net.trique.wardentools.util.WTEnchantmentHelper

public class WTEnchantmentHelper extends net.minecraft.world.item.enchantment.EnchantmentHelper
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.enchantment.EnchantmentHelper

    net.minecraft.world.item.enchantment.EnchantmentHelper.EnchantmentInSlotVisitor, net.minecraft.world.item.enchantment.EnchantmentHelper.EnchantmentVisitor
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    getMaxLevelForIncreaseBlockDrop(net.minecraft.world.item.ItemStack tool, net.minecraft.world.level.storage.loot.LootContext context)
     
    static int
    getMaxLevelForIncreaseEntityDrop(net.minecraft.world.item.ItemStack tool, net.minecraft.world.level.storage.loot.LootContext context)
     
    static float
    getRangeBonus(net.minecraft.server.level.ServerLevel serverLevel, net.minecraft.world.item.ItemStack tool, float distance)
     

    Methods inherited from class net.minecraft.world.item.enchantment.EnchantmentHelper

    canStoreEnchantments, doPostAttackEffects, doPostAttackEffectsWithItemSource, enchantItem, enchantItem, enchantItemFromProvider, filterCompatibleEnchantments, forEachModifier, forEachModifier, getAvailableEnchantmentResults, getComponentType, getDamageProtection, getEnchantmentCost, getEnchantmentLevel, getEnchantmentsForCrafting, getFishingLuckBonus, getFishingTimeReduction, getHighestLevel, getItemEnchantmentLevel, getPiercingCount, getRandomItemWith, getTagEnchantmentLevel, getTridentReturnToOwnerAcceleration, getTridentSpinAttackStrength, has, hasAnyEnchantments, hasTag, isEnchantmentCompatible, isImmuneToDamage, modifyArmorEffectiveness, modifyCrossbowChargingTime, modifyDamage, modifyDurabilityToRepairFromXp, modifyFallBasedDamage, modifyKnockback, onHitBlock, onProjectileSpawned, pickHighestLevel, processAmmoUse, processBlockExperience, processDurabilityChange, processEquipmentDropChance, processMobExperience, processProjectileCount, processProjectileSpread, runIterationOnEquipment, runIterationOnItem, runIterationOnItem, runLocationChangedEffects, runLocationChangedEffects, selectEnchantment, setEnchantments, stopLocationBasedEffects, stopLocationBasedEffects, tickEffects, updateEnchantments

    Methods inherited from class java.lang.Object

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

    • WTEnchantmentHelper

      public WTEnchantmentHelper()
  • Method Details

    • getRangeBonus

      public static float getRangeBonus(net.minecraft.server.level.ServerLevel serverLevel, net.minecraft.world.item.ItemStack tool, float distance)
    • getMaxLevelForIncreaseEntityDrop

      public static int getMaxLevelForIncreaseEntityDrop(net.minecraft.world.item.ItemStack tool, net.minecraft.world.level.storage.loot.LootContext context)
    • getMaxLevelForIncreaseBlockDrop

      public static int getMaxLevelForIncreaseBlockDrop(net.minecraft.world.item.ItemStack tool, net.minecraft.world.level.storage.loot.LootContext context)