Fix up method override.
This commit is contained in:
parent
dd542c0c48
commit
9aa53eec37
|
@ -47,6 +47,7 @@ public class TileEntityIronChest extends TileEntity implements IInventory {
|
|||
public byte getFacing() {
|
||||
return this.facing;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInvName() {
|
||||
return type.name();
|
||||
|
@ -55,6 +56,7 @@ public class TileEntityIronChest extends TileEntity implements IInventory {
|
|||
public IronChestType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlot(int i) {
|
||||
inventoryTouched = true;
|
||||
|
@ -74,8 +76,7 @@ public class TileEntityIronChest extends TileEntity implements IInventory {
|
|||
ItemStack[] tempCopy = new ItemStack[getSizeInventory()];
|
||||
boolean hasStuff = false;
|
||||
int compressedIdx = 0;
|
||||
mainLoop:
|
||||
for (int i=0; i<getSizeInventory(); i++) {
|
||||
mainLoop: for (int i = 0; i < getSizeInventory(); i++) {
|
||||
if (chestContents[i] != null) {
|
||||
for (int j = 0; j < compressedIdx; j++) {
|
||||
if (tempCopy[j].isItemEqual(chestContents[i])) {
|
||||
|
@ -269,14 +270,16 @@ public class TileEntityIronChest extends TileEntity implements IInventory {
|
|||
|
||||
@Override
|
||||
public void openChest() {
|
||||
if (worldObj==null) return;
|
||||
if (worldObj == null)
|
||||
return;
|
||||
numUsingPlayers++;
|
||||
worldObj.playNoteAt(xCoord, yCoord, zCoord, 1, numUsingPlayers);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void closeChest() {
|
||||
if (worldObj==null) return;
|
||||
if (worldObj == null)
|
||||
return;
|
||||
numUsingPlayers--;
|
||||
worldObj.playNoteAt(xCoord, yCoord, zCoord, 1, numUsingPlayers);
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ public class mod_IronChest extends BaseModMp {
|
|||
proxy.showGUI(te,player);
|
||||
}
|
||||
|
||||
public void HandleTileEntityPacket(int x, int y, int z, int type, int[] intData, float[] floatData, String[] stringData) {
|
||||
public void handleTileEntityPacket(int x, int y, int z, int type, int[] intData, float[] floatData, String[] stringData) {
|
||||
proxy.handleTileEntityPacket(x,y,z,type,intData,floatData,stringData);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue