Class ItemHelper
java.lang.Object
com.pixelmonmod.pixelmon.items.helpers.ItemHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
getResistanceBerry
(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.
-