public class BookshelfHooks
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<Tuple> |
conflictingPotions
A List used to cache information about potions registered with duplicate potion IDs.
|
| Constructor and Description |
|---|
BookshelfHooks() |
| Modifier and Type | Method and Description |
|---|---|
static void |
onChangedPotionEffect(net.minecraft.potion.PotionEffect potion,
net.minecraft.entity.EntityLivingBase entity)
A hook to get data about potion effects on entities.
|
static void |
onCreativeTabDisplayPost(net.minecraft.creativetab.CreativeTabs tab,
java.util.List itemList)
A hook for the CreativeTabEvent.post.
|
static boolean |
onCreativeTabDisplayPre(net.minecraft.creativetab.CreativeTabs tab,
java.util.List itemList)
A hook for the CreativeTabEvent.pre.
|
static void |
onFinishedPotionEffect(net.minecraft.potion.PotionEffect potion,
net.minecraft.entity.EntityLivingBase entity)
A hook to get data about potion effects on entities.
|
static java.util.List<net.minecraft.enchantment.EnchantmentData> |
onItemEnchanted(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack stack,
int levels,
java.util.List<net.minecraft.enchantment.EnchantmentData> enchantments)
A hook for triggering the ItemEnchantedEvent.
|
static void |
onNewPotionEffect(net.minecraft.potion.PotionEffect potion,
net.minecraft.entity.EntityLivingBase entity)
A hook to get data about potion effects on entities.
|
static void |
onPotionConstructed(net.minecraft.potion.Potion potion)
A hook into the constructor of Potion.
|
static boolean |
onPotionsCured(net.minecraft.entity.EntityLivingBase entity,
net.minecraft.item.ItemStack cureItem)
A hook for when a cure item is applied to an entity.
|
public static java.util.List<Tuple> conflictingPotions
public static java.util.List<net.minecraft.enchantment.EnchantmentData> onItemEnchanted(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack stack,
int levels,
java.util.List<net.minecraft.enchantment.EnchantmentData> enchantments)
player: - The player that is enchanting the item.stack: - The item that is being enchanted.levels: - The amount of levels consumed by the enchantment.enchantments: - A list of enchantments being added to the ItemStack.public static boolean onCreativeTabDisplayPre(net.minecraft.creativetab.CreativeTabs tab,
java.util.List itemList)
tab: - The tab being loaded.itemList: - The list of items contained by the tab.public static void onCreativeTabDisplayPost(net.minecraft.creativetab.CreativeTabs tab,
java.util.List itemList)
tab: - The tab being loaded.itemList: - The list of items contained by the tab.public static boolean onPotionsCured(net.minecraft.entity.EntityLivingBase entity,
net.minecraft.item.ItemStack cureItem)
entity: - The Entity being cured.cureItem: - The ItemStack being used to cure the entity.public static void onPotionConstructed(net.minecraft.potion.Potion potion)
potion: - The Potion that is being constructed.public static void onNewPotionEffect(net.minecraft.potion.PotionEffect potion,
net.minecraft.entity.EntityLivingBase entity)
potion: - The potion effect getting used.entity: - The entity with the potion effect.public static void onChangedPotionEffect(net.minecraft.potion.PotionEffect potion,
net.minecraft.entity.EntityLivingBase entity)
potion: - The potion effect getting used.entity: - The entity with the potion effect.public static void onFinishedPotionEffect(net.minecraft.potion.PotionEffect potion,
net.minecraft.entity.EntityLivingBase entity)
potion: - The potion effect getting used.entity: - The entity with the potion effect.