|
3 | 3 | import cpw.mods.fml.relauncher.Side;
|
4 | 4 | import cpw.mods.fml.relauncher.SideOnly;
|
5 | 5 | import lib.enderwizards.sandstone.blocks.BlockBase;
|
6 |
| -import lib.enderwizards.sandstone.init.ContentHandler; |
7 | 6 | import lib.enderwizards.sandstone.init.ContentInit;
|
8 | 7 | import net.minecraft.block.material.Material;
|
9 | 8 | import net.minecraft.client.renderer.texture.IIconRegister;
|
10 | 9 | import net.minecraft.entity.Entity;
|
11 | 10 | import net.minecraft.entity.EntityLivingBase;
|
12 | 11 | import net.minecraft.entity.item.EntityItem;
|
13 | 12 | import net.minecraft.entity.player.EntityPlayer;
|
14 |
| -import net.minecraft.entity.player.EntityPlayerMP; |
15 | 13 | import net.minecraft.init.Items;
|
16 | 14 | import net.minecraft.item.Item;
|
17 |
| -import net.minecraft.item.ItemArmor; |
18 | 15 | import net.minecraft.item.ItemBlock;
|
19 | 16 | import net.minecraft.item.ItemStack;
|
20 | 17 | import net.minecraft.potion.Potion;
|
|
30 | 27 | import xreliquary.client.render.RenderApothecaryCauldron;
|
31 | 28 | import xreliquary.lib.Names;
|
32 | 29 | import xreliquary.lib.Reference;
|
33 |
| -import xreliquary.util.potions.PotionEssence; |
34 | 30 |
|
35 | 31 | import java.util.List;
|
36 | 32 | import java.util.Random;
|
@@ -93,7 +89,7 @@ public void addCollisionBoxesToList(World world, int x, int y, int z, AxisAligne
|
93 | 89 | // called by the renderer to get the texture in a static method.
|
94 | 90 | @SideOnly(Side.CLIENT)
|
95 | 91 | public static IIcon getCauldronIcon(String textureName) {
|
96 |
| - BlockApothecaryCauldron cauldronStatic = (BlockApothecaryCauldron) ContentHandler.getBlock(Names.apothecary_cauldron); |
| 92 | + BlockApothecaryCauldron cauldronStatic = (BlockApothecaryCauldron) Reliquary.CONTENT.getBlock(Names.apothecary_cauldron); |
97 | 93 | return textureName.equals("inner") ? cauldronStatic.innerTexture : (textureName.equals("bottom") ? cauldronStatic.bottomTexture : textureName.equals("inside") ? cauldronStatic.insideTexture : null);
|
98 | 94 | }
|
99 | 95 |
|
@@ -199,11 +195,11 @@ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer p
|
199 | 195 |
|
200 | 196 | return true;
|
201 | 197 | } else {
|
202 |
| - if (itemstack.getItem() == ContentHandler.getItem(Names.potion) && (itemstack.getTagCompound() == null || !itemstack.getTagCompound().getBoolean("hasPotion"))) { |
| 198 | + if (itemstack.getItem() == Reliquary.CONTENT.getItem(Names.potion) && (itemstack.getTagCompound() == null || !itemstack.getTagCompound().getBoolean("hasPotion"))) { |
203 | 199 | if (j1 > 0) {
|
204 | 200 |
|
205 | 201 | if (cauldron.finishedCooking()) {
|
206 |
| - ItemStack potion = new ItemStack(ContentHandler.getItem(Names.potion), 1, 0); |
| 202 | + ItemStack potion = new ItemStack(Reliquary.CONTENT.getItem(Names.potion), 1, 0); |
207 | 203 | potion.setTagCompound(cauldron.removeContainedPotion());
|
208 | 204 |
|
209 | 205 | --itemstack.stackSize;
|
@@ -252,15 +248,15 @@ public void fillWithRain(World world, int x, int y, int z) {
|
252 | 248 | @Override
|
253 | 249 | public Item getItemDropped(int someInt, Random unusedRandom, int fortuneEnchantLevelIThink) {
|
254 | 250 | // this might destroy the universe
|
255 |
| - return ItemBlock.getItemFromBlock(ContentHandler.getBlock(Names.apothecary_cauldron)); |
| 251 | + return ItemBlock.getItemFromBlock(Reliquary.CONTENT.getBlock(Names.apothecary_cauldron)); |
256 | 252 | }
|
257 | 253 |
|
258 | 254 | /**
|
259 | 255 | * Gets an item for the block being called on. Args: world, x, y, z
|
260 | 256 | */
|
261 | 257 | @SideOnly(Side.CLIENT)
|
262 | 258 | public Item getItem(World world, int x, int y, int z) {
|
263 |
| - return ItemBlock.getItemFromBlock(ContentHandler.getBlock(Names.apothecary_cauldron)); |
| 259 | + return ItemBlock.getItemFromBlock(Reliquary.CONTENT.getBlock(Names.apothecary_cauldron)); |
264 | 260 | }
|
265 | 261 |
|
266 | 262 | /**
|
|
0 commit comments