From 77b63323872b310bbfd35e3cc9d817b61d67ccfb Mon Sep 17 00:00:00 2001 From: Christian Weeks Date: Tue, 24 Apr 2012 21:17:23 -0400 Subject: [PATCH] Add a licence file and headers to all elements in Iron Chest --- .../mods/ironchest/client/ClientProxy.java | 10 + .../cpw/mods/ironchest/client/GUIChest.java | 10 + .../client/IronChestRenderHelper.java | 10 + .../client/TileEntityIronChestRenderer.java | 405 +++++++++--------- .../cpw/mods/ironchest/BlockIronChest.java | 12 +- .../cpw/mods/ironchest/ChestChangerType.java | 10 + .../ironchest/ContainerIronChestBase.java | 10 + .../common/cpw/mods/ironchest/IProxy.java | 10 + .../cpw/mods/ironchest/IronChestType.java | 12 +- .../cpw/mods/ironchest/ItemChestChanger.java | 10 + .../cpw/mods/ironchest/ItemIronChest.java | 10 + .../cpw/mods/ironchest/PacketHandler.java | 12 +- .../cpw/mods/ironchest/ServerClientProxy.java | 10 + .../mods/ironchest/TileEntityCopperChest.java | 10 + .../ironchest/TileEntityCrystalChest.java | 10 + .../ironchest/TileEntityDiamondChest.java | 10 + .../mods/ironchest/TileEntityGoldChest.java | 10 + .../mods/ironchest/TileEntityIronChest.java | 10 + .../mods/ironchest/TileEntitySilverChest.java | 10 + .../common/cpw/mods/ironchest/Version.java | 10 + .../net/minecraft/src/mod_IronChest.java | 10 + .../mods/ironchest/server/ServerProxy.java | 10 + 22 files changed, 420 insertions(+), 201 deletions(-) diff --git a/IronChests2/client/cpw/mods/ironchest/client/ClientProxy.java b/IronChests2/client/cpw/mods/ironchest/client/ClientProxy.java index 18cf76f..ee289b0 100644 --- a/IronChests2/client/cpw/mods/ironchest/client/ClientProxy.java +++ b/IronChests2/client/cpw/mods/ironchest/client/ClientProxy.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest.client; import java.io.File; diff --git a/IronChests2/client/cpw/mods/ironchest/client/GUIChest.java b/IronChests2/client/cpw/mods/ironchest/client/GUIChest.java index afadf05..2c2411e 100644 --- a/IronChests2/client/cpw/mods/ironchest/client/GUIChest.java +++ b/IronChests2/client/cpw/mods/ironchest/client/GUIChest.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest.client; import net.minecraft.src.Container; diff --git a/IronChests2/client/cpw/mods/ironchest/client/IronChestRenderHelper.java b/IronChests2/client/cpw/mods/ironchest/client/IronChestRenderHelper.java index d8bf76f..94418f3 100644 --- a/IronChests2/client/cpw/mods/ironchest/client/IronChestRenderHelper.java +++ b/IronChests2/client/cpw/mods/ironchest/client/IronChestRenderHelper.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest.client; import net.minecraft.src.Block; diff --git a/IronChests2/client/cpw/mods/ironchest/client/TileEntityIronChestRenderer.java b/IronChests2/client/cpw/mods/ironchest/client/TileEntityIronChestRenderer.java index 9c2d089..55ae443 100644 --- a/IronChests2/client/cpw/mods/ironchest/client/TileEntityIronChestRenderer.java +++ b/IronChests2/client/cpw/mods/ironchest/client/TileEntityIronChestRenderer.java @@ -1,198 +1,207 @@ -package cpw.mods.ironchest.client; - -import static org.lwjgl.opengl.GL11.glColor4f; -import static org.lwjgl.opengl.GL11.glDisable; -import static org.lwjgl.opengl.GL11.glEnable; -import static org.lwjgl.opengl.GL11.glPopMatrix; -import static org.lwjgl.opengl.GL11.glPushMatrix; -import static org.lwjgl.opengl.GL11.glRotatef; -import static org.lwjgl.opengl.GL11.glScalef; -import static org.lwjgl.opengl.GL11.glTranslatef; - -import java.util.Random; - -import net.minecraft.src.Block; -import net.minecraft.src.EntityItem; -import net.minecraft.src.Item; -import net.minecraft.src.ItemStack; -import net.minecraft.src.ModelChest; -import net.minecraft.src.RenderBlocks; -import net.minecraft.src.Tessellator; -import net.minecraft.src.TileEntity; -import net.minecraft.src.TileEntitySpecialRenderer; -import net.minecraft.src.forge.ForgeHooksClient; -import net.minecraft.src.forge.IItemRenderer; -import net.minecraft.src.forge.ItemRenderType; -import net.minecraft.src.forge.MinecraftForgeClient; -import cpw.mods.ironchest.IronChestType; -import cpw.mods.ironchest.TileEntityIronChest; - -public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer { - private Random random; - private RenderBlocks renderBlocks; - - private static float[][] shifts = { { 0.3F, 0.45F, 0.3F }, { 0.7F, 0.45F, 0.3F }, { 0.3F, 0.45F, 0.7F }, { 0.7F, 0.45F, 0.7F }, - { 0.3F, 0.1F, 0.3F }, { 0.7F, 0.1F, 0.3F }, { 0.3F, 0.1F, 0.7F }, { 0.7F, 0.1F, 0.7F }, { 0.5F, 0.32F, 0.5F }, }; - - public TileEntityIronChestRenderer() { - model = new ModelChest(); - random = new Random(); - renderBlocks = new RenderBlocks(); - } - - public void render(TileEntityIronChest tile, double x, double y, double z, float partialTick) { - if (tile==null) { - return; - } - int facing = 3; - IronChestType type=tile.getType(); - if (tile != null && tile.worldObj != null) { - facing = tile.getFacing(); - type=tile.getType(); - int typ=tile.worldObj.getBlockMetadata(tile.xCoord,tile.yCoord,tile.zCoord); - type=IronChestType.values()[typ]; - } - bindTextureByName(type.getModelTexture()); - - glPushMatrix(); - glEnable(32826 /* GL_RESCALE_NORMAL_EXT */); - glColor4f(1.0F, 1.0F, 1.0F, 1.0F); - glTranslatef((float) x, (float) y + 1.0F, (float) z + 1.0F); - glScalef(1.0F, -1F, -1F); - glTranslatef(0.5F, 0.5F, 0.5F); - int k = 0; - if (facing == 2) { - k = 180; - } - if (facing == 3) { - k = 0; - } - if (facing == 4) { - k = 90; - } - if (facing == 5) { - k = -90; - } - glRotatef(k, 0.0F, 1.0F, 0.0F); - glTranslatef(-0.5F, -0.5F, -0.5F); - float lidangle = tile.prevLidAngle + (tile.lidAngle - tile.prevLidAngle) * partialTick; - lidangle = 1.0F - lidangle; - lidangle = 1.0F - lidangle * lidangle * lidangle; - model.chestLid.rotateAngleX = -((lidangle * 3.141593F) / 2.0F); - // Render the chest itself - model.renderAll(); - glDisable(32826 /* GL_RESCALE_NORMAL_EXT */); - glPopMatrix(); - glColor4f(1.0F, 1.0F, 1.0F, 1.0F); - - if (type.isTransparent()) { - random.setSeed(254L); - float shiftX; - float shiftY; - float shiftZ; - int shift = 0; - float spread = 0.1F; - float blockScale = 0.15F; - float timeD = (float) (360.0 * (double) (System.currentTimeMillis() & 0x3FFFL) / (double) 0x3FFFL); - if (tile.getTopItemStacks()[1] == null) { - shift = 8; - blockScale = 0.2F; - spread = 0.22F; - } - glPushMatrix(); - glDisable(2896 /* GL_LIGHTING */); - glEnable(32826 /* GL_RESCALE_NORMAL_EXT */); - glTranslatef((float) x, (float) y, (float) z); - EntityItem customitem=new EntityItem(tileEntityRenderer.worldObj); - for (ItemStack item : tile.getTopItemStacks()) { - if (shift > shifts.length) { - break; - } - if (item == null) { - shift++; - continue; - } - shiftX = shifts[shift][0]; - shiftY = shifts[shift][1]; - shiftZ = shifts[shift][2]; - shift++; - IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(item,IItemRenderer.ItemRenderType.ENTITY); - float localScale = blockScale; - if (item.itemID < Block.blocksList.length && Block.blocksList[item.itemID]!=null) { - int j = Block.blocksList[item.itemID].getRenderType(); - if (j == 1 || j == 19 || j == 12 || j == 2) { - localScale = 2 * blockScale; - } - } - glPushMatrix(); - glTranslatef(shiftX, shiftY, shiftZ); - glScalef(localScale, localScale, localScale); - for (int miniBlocks = 0; miniBlocks < (item.stackSize / 32) + 1; miniBlocks++) { - glPushMatrix(); - glRotatef(timeD, 0.0F, 1.0F, 0.0F); - if (miniBlocks > 0) { - float minishiftX = ((random.nextFloat() * 2.0F - 1.0F) * spread) / localScale; - float minishiftY = ((random.nextFloat() * 2.0F - 1.0F) * spread * 0.9F) / localScale; - float minishiftZ = ((random.nextFloat() * 2.0F - 1.0F) * spread) / localScale; - glTranslatef(minishiftX, minishiftY, minishiftZ); - } - - if (customRenderer != null) { - customitem.item=item; - bindTextureByName("/terrain.png"); - ForgeHooksClient.overrideTexture(item.getItem()); - customRenderer.renderItem(IItemRenderer.ItemRenderType.ENTITY, item, renderBlocks, customitem); - } else if (item.itemID < Block.blocksList.length && Block.blocksList[item.itemID]!=null && RenderBlocks.renderItemIn3d(Block.blocksList[item.itemID].getRenderType())) { - bindTextureByName("/terrain.png"); - ForgeHooksClient.overrideTexture(Block.blocksList[item.itemID]); - renderBlocks.renderBlockAsItem(Block.blocksList[item.itemID], item.getItemDamage(), 1.0F); - } else { - int i = item.getIconIndex(); - if (item.itemID >= Block.blocksList.length || Block.blocksList[item.itemID]==null) { - bindTextureByName("/gui/items.png"); - ForgeHooksClient.overrideTexture(Item.itemsList[item.itemID]); - } else { - bindTextureByName("/terrain.png"); - ForgeHooksClient.overrideTexture(Block.blocksList[item.itemID]); - } - Tessellator tessellator = Tessellator.instance; - float f5 = (float) ((i % 16) * 16 + 0) / 256F; - float f8 = (float) ((i % 16) * 16 + 16) / 256F; - float f10 = (float) ((i / 16) * 16 + 0) / 256F; - float f12 = (float) ((i / 16) * 16 + 16) / 256F; - float f13 = 1.0F; - float f14 = 0.5F; - float f15 = 0.25F; - tessellator.startDrawingQuads(); - tessellator.setNormal(0.0F, 1.0F, 0.0F); - tessellator.addVertexWithUV(0.0F - f14, 0.0F - f15, 0.0D, f5, f12); - tessellator.addVertexWithUV(f13 - f14, 0.0F - f15, 0.0D, f8, f12); - tessellator.addVertexWithUV(f13 - f14, 1.0F - f15, 0.0D, f8, f10); - tessellator.addVertexWithUV(0.0F - f14, 1.0F - f15, 0.0D, f5, f10); - tessellator.draw(); - glScalef(-1.0F, 1.0F, 1.0F); - tessellator.startDrawingQuads(); - tessellator.setNormal(0.0F, 1.0F, 0.0F); - tessellator.addVertexWithUV(0.0F - f14, 0.0F - f15, 0.0D, f5, f12); - tessellator.addVertexWithUV(f13 - f14, 0.0F - f15, 0.0D, f8, f12); - tessellator.addVertexWithUV(f13 - f14, 1.0F - f15, 0.0D, f8, f10); - tessellator.addVertexWithUV(0.0F - f14, 1.0F - f15, 0.0D, f5, f10); - tessellator.draw(); - } - glPopMatrix(); - } - glPopMatrix(); - } - glDisable(32826 /* GL_RESCALE_NORMAL_EXT */); - glEnable(2896 /* GL_LIGHTING */); - glPopMatrix(); - glColor4f(1.0F, 1.0F, 1.0F, 1.0F); - } - } - - public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float partialTick) { - render((TileEntityIronChest) tileentity, x, y, z, partialTick); - } - - private ModelChest model; -} +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ +package cpw.mods.ironchest.client; + +import static org.lwjgl.opengl.GL11.glColor4f; +import static org.lwjgl.opengl.GL11.glDisable; +import static org.lwjgl.opengl.GL11.glEnable; +import static org.lwjgl.opengl.GL11.glPopMatrix; +import static org.lwjgl.opengl.GL11.glPushMatrix; +import static org.lwjgl.opengl.GL11.glRotatef; +import static org.lwjgl.opengl.GL11.glScalef; +import static org.lwjgl.opengl.GL11.glTranslatef; + +import java.util.Random; + +import net.minecraft.src.Block; +import net.minecraft.src.EntityItem; +import net.minecraft.src.Item; +import net.minecraft.src.ItemStack; +import net.minecraft.src.ModelChest; +import net.minecraft.src.RenderBlocks; +import net.minecraft.src.Tessellator; +import net.minecraft.src.TileEntity; +import net.minecraft.src.TileEntitySpecialRenderer; +import net.minecraft.src.forge.ForgeHooksClient; +import net.minecraft.src.forge.IItemRenderer; +import net.minecraft.src.forge.MinecraftForgeClient; +import cpw.mods.ironchest.IronChestType; +import cpw.mods.ironchest.TileEntityIronChest; + +public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer { + private Random random; + private RenderBlocks renderBlocks; + + private static float[][] shifts = { { 0.3F, 0.45F, 0.3F }, { 0.7F, 0.45F, 0.3F }, { 0.3F, 0.45F, 0.7F }, { 0.7F, 0.45F, 0.7F }, + { 0.3F, 0.1F, 0.3F }, { 0.7F, 0.1F, 0.3F }, { 0.3F, 0.1F, 0.7F }, { 0.7F, 0.1F, 0.7F }, { 0.5F, 0.32F, 0.5F }, }; + + public TileEntityIronChestRenderer() { + model = new ModelChest(); + random = new Random(); + renderBlocks = new RenderBlocks(); + } + + public void render(TileEntityIronChest tile, double x, double y, double z, float partialTick) { + if (tile==null) { + return; + } + int facing = 3; + IronChestType type=tile.getType(); + if (tile != null && tile.worldObj != null) { + facing = tile.getFacing(); + type=tile.getType(); + int typ=tile.worldObj.getBlockMetadata(tile.xCoord,tile.yCoord,tile.zCoord); + type=IronChestType.values()[typ]; + } + bindTextureByName(type.getModelTexture()); + + glPushMatrix(); + glEnable(32826 /* GL_RESCALE_NORMAL_EXT */); + glColor4f(1.0F, 1.0F, 1.0F, 1.0F); + glTranslatef((float) x, (float) y + 1.0F, (float) z + 1.0F); + glScalef(1.0F, -1F, -1F); + glTranslatef(0.5F, 0.5F, 0.5F); + int k = 0; + if (facing == 2) { + k = 180; + } + if (facing == 3) { + k = 0; + } + if (facing == 4) { + k = 90; + } + if (facing == 5) { + k = -90; + } + glRotatef(k, 0.0F, 1.0F, 0.0F); + glTranslatef(-0.5F, -0.5F, -0.5F); + float lidangle = tile.prevLidAngle + (tile.lidAngle - tile.prevLidAngle) * partialTick; + lidangle = 1.0F - lidangle; + lidangle = 1.0F - lidangle * lidangle * lidangle; + model.chestLid.rotateAngleX = -((lidangle * 3.141593F) / 2.0F); + // Render the chest itself + model.renderAll(); + glDisable(32826 /* GL_RESCALE_NORMAL_EXT */); + glPopMatrix(); + glColor4f(1.0F, 1.0F, 1.0F, 1.0F); + + if (type.isTransparent()) { + random.setSeed(254L); + float shiftX; + float shiftY; + float shiftZ; + int shift = 0; + float spread = 0.1F; + float blockScale = 0.15F; + float timeD = (float) (360.0 * (double) (System.currentTimeMillis() & 0x3FFFL) / (double) 0x3FFFL); + if (tile.getTopItemStacks()[1] == null) { + shift = 8; + blockScale = 0.2F; + spread = 0.22F; + } + glPushMatrix(); + glDisable(2896 /* GL_LIGHTING */); + glEnable(32826 /* GL_RESCALE_NORMAL_EXT */); + glTranslatef((float) x, (float) y, (float) z); + EntityItem customitem=new EntityItem(tileEntityRenderer.worldObj); + for (ItemStack item : tile.getTopItemStacks()) { + if (shift > shifts.length) { + break; + } + if (item == null) { + shift++; + continue; + } + shiftX = shifts[shift][0]; + shiftY = shifts[shift][1]; + shiftZ = shifts[shift][2]; + shift++; + IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(item,IItemRenderer.ItemRenderType.ENTITY); + float localScale = blockScale; + if (item.itemID < Block.blocksList.length && Block.blocksList[item.itemID]!=null) { + int j = Block.blocksList[item.itemID].getRenderType(); + if (j == 1 || j == 19 || j == 12 || j == 2) { + localScale = 2 * blockScale; + } + } + glPushMatrix(); + glTranslatef(shiftX, shiftY, shiftZ); + glScalef(localScale, localScale, localScale); + for (int miniBlocks = 0; miniBlocks < (item.stackSize / 32) + 1; miniBlocks++) { + glPushMatrix(); + glRotatef(timeD, 0.0F, 1.0F, 0.0F); + if (miniBlocks > 0) { + float minishiftX = ((random.nextFloat() * 2.0F - 1.0F) * spread) / localScale; + float minishiftY = ((random.nextFloat() * 2.0F - 1.0F) * spread * 0.9F) / localScale; + float minishiftZ = ((random.nextFloat() * 2.0F - 1.0F) * spread) / localScale; + glTranslatef(minishiftX, minishiftY, minishiftZ); + } + + if (customRenderer != null) { + customitem.item=item; + bindTextureByName("/terrain.png"); + ForgeHooksClient.overrideTexture(item.getItem()); + customRenderer.renderItem(IItemRenderer.ItemRenderType.ENTITY, item, renderBlocks, customitem); + } else if (item.itemID < Block.blocksList.length && Block.blocksList[item.itemID]!=null && RenderBlocks.renderItemIn3d(Block.blocksList[item.itemID].getRenderType())) { + bindTextureByName("/terrain.png"); + ForgeHooksClient.overrideTexture(Block.blocksList[item.itemID]); + renderBlocks.renderBlockAsItem(Block.blocksList[item.itemID], item.getItemDamage(), 1.0F); + } else { + int i = item.getIconIndex(); + if (item.itemID >= Block.blocksList.length || Block.blocksList[item.itemID]==null) { + bindTextureByName("/gui/items.png"); + ForgeHooksClient.overrideTexture(Item.itemsList[item.itemID]); + } else { + bindTextureByName("/terrain.png"); + ForgeHooksClient.overrideTexture(Block.blocksList[item.itemID]); + } + Tessellator tessellator = Tessellator.instance; + float f5 = (float) ((i % 16) * 16 + 0) / 256F; + float f8 = (float) ((i % 16) * 16 + 16) / 256F; + float f10 = (float) ((i / 16) * 16 + 0) / 256F; + float f12 = (float) ((i / 16) * 16 + 16) / 256F; + float f13 = 1.0F; + float f14 = 0.5F; + float f15 = 0.25F; + tessellator.startDrawingQuads(); + tessellator.setNormal(0.0F, 1.0F, 0.0F); + tessellator.addVertexWithUV(0.0F - f14, 0.0F - f15, 0.0D, f5, f12); + tessellator.addVertexWithUV(f13 - f14, 0.0F - f15, 0.0D, f8, f12); + tessellator.addVertexWithUV(f13 - f14, 1.0F - f15, 0.0D, f8, f10); + tessellator.addVertexWithUV(0.0F - f14, 1.0F - f15, 0.0D, f5, f10); + tessellator.draw(); + glScalef(-1.0F, 1.0F, 1.0F); + tessellator.startDrawingQuads(); + tessellator.setNormal(0.0F, 1.0F, 0.0F); + tessellator.addVertexWithUV(0.0F - f14, 0.0F - f15, 0.0D, f5, f12); + tessellator.addVertexWithUV(f13 - f14, 0.0F - f15, 0.0D, f8, f12); + tessellator.addVertexWithUV(f13 - f14, 1.0F - f15, 0.0D, f8, f10); + tessellator.addVertexWithUV(0.0F - f14, 1.0F - f15, 0.0D, f5, f10); + tessellator.draw(); + } + glPopMatrix(); + } + glPopMatrix(); + } + glDisable(32826 /* GL_RESCALE_NORMAL_EXT */); + glEnable(2896 /* GL_LIGHTING */); + glPopMatrix(); + glColor4f(1.0F, 1.0F, 1.0F, 1.0F); + } + } + + public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float partialTick) { + render((TileEntityIronChest) tileentity, x, y, z, partialTick); + } + + private ModelChest model; +} diff --git a/IronChests2/common/cpw/mods/ironchest/BlockIronChest.java b/IronChests2/common/cpw/mods/ironchest/BlockIronChest.java index 15a9729..7909c96 100644 --- a/IronChests2/common/cpw/mods/ironchest/BlockIronChest.java +++ b/IronChests2/common/cpw/mods/ironchest/BlockIronChest.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; import java.util.ArrayList; @@ -200,4 +210,4 @@ public class BlockIronChest extends BlockContainer implements ITextureProvider { itemList.add(new ItemStack(this, 1, type.ordinal())); } } -} \ No newline at end of file +} diff --git a/IronChests2/common/cpw/mods/ironchest/ChestChangerType.java b/IronChests2/common/cpw/mods/ironchest/ChestChangerType.java index 6dd350c..f38cbf0 100644 --- a/IronChests2/common/cpw/mods/ironchest/ChestChangerType.java +++ b/IronChests2/common/cpw/mods/ironchest/ChestChangerType.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; import static cpw.mods.ironchest.IronChestType.COPPER; diff --git a/IronChests2/common/cpw/mods/ironchest/ContainerIronChestBase.java b/IronChests2/common/cpw/mods/ironchest/ContainerIronChestBase.java index db88931..3e4d623 100644 --- a/IronChests2/common/cpw/mods/ironchest/ContainerIronChestBase.java +++ b/IronChests2/common/cpw/mods/ironchest/ContainerIronChestBase.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; import net.minecraft.src.Container; diff --git a/IronChests2/common/cpw/mods/ironchest/IProxy.java b/IronChests2/common/cpw/mods/ironchest/IProxy.java index e5fffcb..04555cc 100644 --- a/IronChests2/common/cpw/mods/ironchest/IProxy.java +++ b/IronChests2/common/cpw/mods/ironchest/IProxy.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; import java.io.File; diff --git a/IronChests2/common/cpw/mods/ironchest/IronChestType.java b/IronChests2/common/cpw/mods/ironchest/IronChestType.java index 2aafe14..afe894f 100644 --- a/IronChests2/common/cpw/mods/ironchest/IronChestType.java +++ b/IronChests2/common/cpw/mods/ironchest/IronChestType.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; import java.util.ArrayList; @@ -113,4 +123,4 @@ public enum IronChestType { return this == CRYSTAL; } -} \ No newline at end of file +} diff --git a/IronChests2/common/cpw/mods/ironchest/ItemChestChanger.java b/IronChests2/common/cpw/mods/ironchest/ItemChestChanger.java index 3e04576..e771bd7 100644 --- a/IronChests2/common/cpw/mods/ironchest/ItemChestChanger.java +++ b/IronChests2/common/cpw/mods/ironchest/ItemChestChanger.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; import net.minecraft.src.EntityPlayer; diff --git a/IronChests2/common/cpw/mods/ironchest/ItemIronChest.java b/IronChests2/common/cpw/mods/ironchest/ItemIronChest.java index da8e6a5..aaaa28c 100644 --- a/IronChests2/common/cpw/mods/ironchest/ItemIronChest.java +++ b/IronChests2/common/cpw/mods/ironchest/ItemIronChest.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; import java.util.ArrayList; diff --git a/IronChests2/common/cpw/mods/ironchest/PacketHandler.java b/IronChests2/common/cpw/mods/ironchest/PacketHandler.java index bf86b38..e9ed0e9 100644 --- a/IronChests2/common/cpw/mods/ironchest/PacketHandler.java +++ b/IronChests2/common/cpw/mods/ironchest/PacketHandler.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; import java.io.ByteArrayInputStream; @@ -94,4 +104,4 @@ public class PacketHandler implements IPacketHandler, IConnectionHandler { pkt.isChunkDataPacket=true; return pkt; } -} \ No newline at end of file +} diff --git a/IronChests2/common/cpw/mods/ironchest/ServerClientProxy.java b/IronChests2/common/cpw/mods/ironchest/ServerClientProxy.java index 0eebf21..6bd1065 100644 --- a/IronChests2/common/cpw/mods/ironchest/ServerClientProxy.java +++ b/IronChests2/common/cpw/mods/ironchest/ServerClientProxy.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; import net.minecraft.src.ModLoader; diff --git a/IronChests2/common/cpw/mods/ironchest/TileEntityCopperChest.java b/IronChests2/common/cpw/mods/ironchest/TileEntityCopperChest.java index 4d04ed9..67a8497 100644 --- a/IronChests2/common/cpw/mods/ironchest/TileEntityCopperChest.java +++ b/IronChests2/common/cpw/mods/ironchest/TileEntityCopperChest.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; public class TileEntityCopperChest extends TileEntityIronChest { diff --git a/IronChests2/common/cpw/mods/ironchest/TileEntityCrystalChest.java b/IronChests2/common/cpw/mods/ironchest/TileEntityCrystalChest.java index ac6911e..4832d53 100644 --- a/IronChests2/common/cpw/mods/ironchest/TileEntityCrystalChest.java +++ b/IronChests2/common/cpw/mods/ironchest/TileEntityCrystalChest.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; public class TileEntityCrystalChest extends TileEntityIronChest { diff --git a/IronChests2/common/cpw/mods/ironchest/TileEntityDiamondChest.java b/IronChests2/common/cpw/mods/ironchest/TileEntityDiamondChest.java index c75b686..0439e43 100644 --- a/IronChests2/common/cpw/mods/ironchest/TileEntityDiamondChest.java +++ b/IronChests2/common/cpw/mods/ironchest/TileEntityDiamondChest.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; public class TileEntityDiamondChest extends TileEntityIronChest { diff --git a/IronChests2/common/cpw/mods/ironchest/TileEntityGoldChest.java b/IronChests2/common/cpw/mods/ironchest/TileEntityGoldChest.java index 2d195ef..3ae98bd 100644 --- a/IronChests2/common/cpw/mods/ironchest/TileEntityGoldChest.java +++ b/IronChests2/common/cpw/mods/ironchest/TileEntityGoldChest.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; public class TileEntityGoldChest extends TileEntityIronChest { diff --git a/IronChests2/common/cpw/mods/ironchest/TileEntityIronChest.java b/IronChests2/common/cpw/mods/ironchest/TileEntityIronChest.java index f4e8d29..710f5b4 100644 --- a/IronChests2/common/cpw/mods/ironchest/TileEntityIronChest.java +++ b/IronChests2/common/cpw/mods/ironchest/TileEntityIronChest.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; import java.util.Arrays; diff --git a/IronChests2/common/cpw/mods/ironchest/TileEntitySilverChest.java b/IronChests2/common/cpw/mods/ironchest/TileEntitySilverChest.java index 48f72d2..7dbad65 100644 --- a/IronChests2/common/cpw/mods/ironchest/TileEntitySilverChest.java +++ b/IronChests2/common/cpw/mods/ironchest/TileEntitySilverChest.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; public class TileEntitySilverChest extends TileEntityIronChest { diff --git a/IronChests2/common/cpw/mods/ironchest/Version.java b/IronChests2/common/cpw/mods/ironchest/Version.java index 32f1a80..5d8e96c 100644 --- a/IronChests2/common/cpw/mods/ironchest/Version.java +++ b/IronChests2/common/cpw/mods/ironchest/Version.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest; diff --git a/IronChests2/common/net/minecraft/src/mod_IronChest.java b/IronChests2/common/net/minecraft/src/mod_IronChest.java index 96c00ca..6a921d5 100644 --- a/IronChests2/common/net/minecraft/src/mod_IronChest.java +++ b/IronChests2/common/net/minecraft/src/mod_IronChest.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package net.minecraft.src; import java.io.File; diff --git a/IronChests2/server/cpw/mods/ironchest/server/ServerProxy.java b/IronChests2/server/cpw/mods/ironchest/server/ServerProxy.java index fb91db9..e25380e 100644 --- a/IronChests2/server/cpw/mods/ironchest/server/ServerProxy.java +++ b/IronChests2/server/cpw/mods/ironchest/server/ServerProxy.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2012 cpw. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + * + * Contributors: + * cpw - initial API and implementation + ******************************************************************************/ package cpw.mods.ironchest.server; import java.io.File;