Update to 1.9.4

This commit is contained in:
alexbegt 2016-05-19 18:17:38 -04:00
parent 94aa1671d5
commit 644b16903b
5 changed files with 18 additions and 10 deletions

View File

@ -8,7 +8,7 @@ buildscript {
} }
} }
dependencies { dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT' classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
} }
} }
plugins { plugins {
@ -33,7 +33,7 @@ repositories {
} }
dependencies { dependencies {
deobfCompile "mezz.jei:jei_1.9:3.3.3.200" deobfCompile "mezz.jei:jei_1.9.4:3.4.0.202"
} }
// This is our group. I'm cpw.mods // This is our group. I'm cpw.mods
@ -43,8 +43,8 @@ archivesBaseName = "ironchest"
// Setup the forge minecraft plugin data. Specify the preferred forge/minecraft version here // Setup the forge minecraft plugin data. Specify the preferred forge/minecraft version here
minecraft { minecraft {
version = "1.9-12.16.1.1907" version = "1.9.4-12.17.0.1909-1.9.4"
mappings = "snapshot_20160516" mappings = "snapshot_20160519"
runDir = "run" runDir = "run"
} }

View File

@ -287,10 +287,11 @@ public class BlockIronChest extends Block
} }
@Override @Override
public boolean onBlockEventReceived(World worldIn, BlockPos pos, IBlockState state, int eventID, int eventParam) @Deprecated
public boolean eventReceived(IBlockState state, World worldIn, BlockPos pos, int id, int param)
{ {
super.onBlockEventReceived(worldIn, pos, state, eventID, eventParam); super.eventReceived(state, worldIn, pos, id, param);
TileEntity tileentity = worldIn.getTileEntity(pos); TileEntity tileentity = worldIn.getTileEntity(pos);
return tileentity != null && tileentity.receiveClientEvent(eventID, eventParam); return tileentity != null && tileentity.receiveClientEvent(id, param);
} }
} }

View File

@ -7,6 +7,7 @@ import net.minecraft.nbt.NBTTagList;
import net.minecraft.nbt.NBTTagString; import net.minecraft.nbt.NBTTagString;
import net.minecraft.util.text.translation.I18n; import net.minecraft.util.text.translation.I18n;
@SuppressWarnings("deprecation")
public class TileEntityDirtChest extends TileEntityIronChest public class TileEntityDirtChest extends TileEntityIronChest
{ {
private static ItemStack dirtChest9000GuideBook = new ItemStack(Items.WRITTEN_BOOK); private static ItemStack dirtChest9000GuideBook = new ItemStack(Items.WRITTEN_BOOK);

View File

@ -25,7 +25,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList; import net.minecraft.nbt.NBTTagList;
import net.minecraft.network.NetworkManager; import net.minecraft.network.NetworkManager;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.SPacketUpdateTileEntity; import net.minecraft.network.play.server.SPacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntityLockable; import net.minecraft.tileentity.TileEntityLockable;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
@ -265,7 +264,7 @@ public class TileEntityIronChest extends TileEntityLockable implements ITickable
} }
@Override @Override
public void writeToNBT(NBTTagCompound nbttagcompound) public NBTTagCompound writeToNBT(NBTTagCompound nbttagcompound)
{ {
super.writeToNBT(nbttagcompound); super.writeToNBT(nbttagcompound);
NBTTagList nbttaglist = new NBTTagList(); NBTTagList nbttaglist = new NBTTagList();
@ -287,6 +286,8 @@ public class TileEntityIronChest extends TileEntityLockable implements ITickable
{ {
nbttagcompound.setString("CustomName", this.customName); nbttagcompound.setString("CustomName", this.customName);
} }
return nbttagcompound;
} }
@Override @Override
@ -435,7 +436,7 @@ public class TileEntityIronChest extends TileEntityLockable implements ITickable
} }
@Override @Override
public Packet<?> getDescriptionPacket() public SPacketUpdateTileEntity getUpdatePacket()
{ {
NBTTagCompound nbt = new NBTTagCompound(); NBTTagCompound nbt = new NBTTagCompound();

View File

@ -108,6 +108,11 @@ public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer<TileE
GlStateManager.rotate(270F, 0F, 1F, 0F); GlStateManager.rotate(270F, 0F, 1F, 0F);
break; break;
} }
default:
{
GlStateManager.rotate(0F, 0F, 1F, 0F);
break;
}
} }
GlStateManager.translate(-0.5F, -0.5F, -0.5F); GlStateManager.translate(-0.5F, -0.5F, -0.5F);