public class ItemHelper
extends java.lang.Object
| Constructor and Description |
|---|
ItemHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
enchantIfPossible(net.minecraft.item.ItemStack stack,
net.minecraft.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.item.ItemStack stack,
net.minecraft.enchantment.Enchantment enchantment,
int tier)
Enchant an item, but only if it hasn't been enchanted with this method before.
|
static net.minecraft.item.Item |
getGem(Element type) |
static net.minecraft.item.Item |
getPlate(Element type) |
static net.minecraft.item.Item |
getResistanceBerry(Element type) |
public static net.minecraft.item.Item getResistanceBerry(Element type)
public static net.minecraft.item.Item getPlate(Element type)
public static net.minecraft.item.Item getGem(Element type)
public static void enchantIfPossible(net.minecraft.item.ItemStack stack,
net.minecraft.enchantment.Enchantment enchantment,
int tier)
stack - The item to be enchanted.enchantment - The enchantment to be applied.tier - The tier of the enchantment to be applied.public static void enchantIfPossible(net.minecraft.item.ItemStack stack,
net.minecraft.enchantment.Enchantment[] enchantments,
int[] tiers)
stack - The item to be enchanted.enchantments - The enchantments to be applied.tiers - The tiers of the enchantments to be applied.