This commit is contained in:
Gig 2015-04-11 18:21:54 +01:00
commit 9f99812490
2 changed files with 27 additions and 43 deletions

View file

@ -10,6 +10,7 @@ import net.minecraft.network.NetworkManager;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
import techreborn.init.ModBlocks;
import techreborn.util.FluidUtils;
import techreborn.util.Inventory;
@ -165,44 +166,32 @@ public class TileQuantumChest extends TileEntity implements IInventory ,IWrencha
return inventory.isItemValidForSlot(slot, stack);
}
@Override
public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side) {
// TODO Auto-generated method stub
return false;
}
@Override
public short getFacing() {
// TODO Auto-generated method stub
return 0;
}
@Override
public void setFacing(short facing) {
// TODO Auto-generated method stub
}
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer) {
return true;
}
@Override
public float getWrenchDropRate() {
// TODO Auto-generated method stub
return 0;
return 1F;
}
@Override
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
// TODO Auto-generated method stub
return null;
return new ItemStack(ModBlocks.quantumChest);
}
}

View file

@ -14,6 +14,7 @@ import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.FluidTankInfo;
import net.minecraftforge.fluids.IFluidHandler;
import techreborn.init.ModBlocks;
import techreborn.util.FluidUtils;
import techreborn.util.Inventory;
import techreborn.util.Tank;
@ -153,38 +154,32 @@ public class TileQuantumTank extends TileEntity implements IFluidHandler, IInven
return inventory.isItemValidForSlot(slot, stack);
}
@Override
public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side) {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side) {
return false;
}
@Override
public short getFacing() {
// TODO Auto-generated method stub
return 0;
}
@Override
public short getFacing() {
return 0;
}
@Override
public void setFacing(short facing) {
// TODO Auto-generated method stub
}
@Override
public void setFacing(short facing) {
}
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer) {
return true;
}
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer) {
return true;
}
@Override
public float getWrenchDropRate() {
// TODO Auto-generated method stub
return 0;
}
@Override
public float getWrenchDropRate() {
return 1F;
}
@Override
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
// TODO Auto-generated method stub
return null;
}
@Override
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
return new ItemStack(ModBlocks.quantumTank);
}
}