Class ItemHelper
java.lang.Object
com.pixelmonmod.pixelmon.items.helpers.ItemHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenchantIfPossible(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 voidenchantIfPossible(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.Itemstatic net.minecraft.world.item.Itemstatic net.minecraft.world.item.ItemgetResistanceBerry(Element type)
-
Constructor Details
-
ItemHelper
public ItemHelper()
-
-
Method Details
-
getResistanceBerry
-
getPlate
-
getGem
-
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.
-