equivalent-exchange-3/ee3_common/com/pahimar/ee3/inventory/WorldSavedDataEE.java

124 lines
2.3 KiB
Java
Raw Normal View History

2013-02-26 22:08:43 +01:00
package com.pahimar.ee3.inventory;
import java.util.UUID;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.WorldSavedData;
import com.pahimar.ee3.lib.Strings;
public class WorldSavedDataEE extends WorldSavedData implements IInventory {
2013-02-26 22:08:43 +01:00
public UUID uuid;
public ItemStack[] inventory;
private final int INVENTORY_SIZE = 13 * 4;
public WorldSavedDataEE(String filePath) {
2013-02-26 22:08:43 +01:00
super(filePath);
inventory = new ItemStack[INVENTORY_SIZE];
}
@Override
public void readFromNBT(NBTTagCompound var1) {
// TODO Auto-generated method stub
}
@Override
public void writeToNBT(NBTTagCompound var1) {
// TODO Auto-generated method stub
}
@Override
public int getSizeInventory() {
return this.inventory.length;
}
@Override
public ItemStack getStackInSlot(int slot) {
return this.inventory[slot];
}
@Override
public ItemStack decrStackSize(int var1, int var2) {
// TODO Auto-generated method stub
return null;
}
@Override
public ItemStack getStackInSlotOnClosing(int var1) {
// TODO Auto-generated method stub
return null;
}
@Override
public void setInventorySlotContents(int var1, ItemStack var2) {
// TODO Auto-generated method stub
}
@Override
public String getInvName() {
return "worldsaveddata" + "." + Strings.ALCHEMICAL_BAG_NAME;
2013-02-26 22:08:43 +01:00
}
@Override
public int getInventoryStackLimit() {
return 64;
}
@Override
public void onInventoryChanged() {
// TODO Auto-generated method stub
}
@Override
public boolean isUseableByPlayer(EntityPlayer var1) {
// TODO Auto-generated method stub
return false;
}
@Override
public void openChest() {
}
@Override
public void closeChest() {
}
2013-03-05 04:18:15 +01:00
@Override
// public boolean hasCustomName()
public boolean func_94042_c() {
return false;
}
@Override
// public boolean canInsertSide(int i, ItemStack itemStack)
public boolean func_94041_b(int i, ItemStack itemstack) {
return false;
}
2013-02-26 22:08:43 +01:00
}