Class ItemHelper

java.lang.Object
com.pixelmonmod.pixelmon.items.helpers.ItemHelper

public class ItemHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    enchantIfPossible(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.enchantment.Enchantment[] enchantments, int[] tiers)
    Enchant an item, but only if it hasn't been enchanted with this method before.
    static void
    enchantIfPossible(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.enchantment.Enchantment enchantment, int tier)
    Enchant an item, but only if it hasn't been enchanted with this method before.
    static net.minecraft.world.item.Item
     
    static net.minecraft.world.item.Item
     
    static net.minecraft.world.item.Item
     

    Methods inherited from class java.lang.Object

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

    • ItemHelper

      public ItemHelper()
  • Method Details

    • getResistanceBerry

      public static net.minecraft.world.item.Item getResistanceBerry(Element type)
    • getPlate

      public static net.minecraft.world.item.Item getPlate(Element type)
    • getGem

      public static net.minecraft.world.item.Item getGem(Element type)
    • enchantIfPossible

      public static void enchantIfPossible(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.enchantment.Enchantment enchantment, int tier)
      Enchant an item, but only if it hasn't been enchanted with this method before.
      Parameters:
      stack - The item to be enchanted.
      enchantment - The enchantment to be applied.
      tier - The tier of the enchantment to be applied.
    • enchantIfPossible

      public static void enchantIfPossible(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.enchantment.Enchantment[] enchantments, int[] tiers)
      Enchant an item, but only if it hasn't been enchanted with this method before.
      Parameters:
      stack - The item to be enchanted.
      enchantments - The enchantments to be applied.
      tiers - The tiers of the enchantments to be applied.