This commit is contained in:
pahimar 2014-02-10 20:10:31 -05:00
parent 96b6e1d1e4
commit 683cde92fb
6 changed files with 60 additions and 6 deletions

View file

@ -4,6 +4,7 @@ import com.pahimar.ee3.block.ModBlocks;
import com.pahimar.ee3.inventory.ContainerAlchemicalChest; import com.pahimar.ee3.inventory.ContainerAlchemicalChest;
import com.pahimar.ee3.lib.Sounds; import com.pahimar.ee3.lib.Sounds;
import com.pahimar.ee3.lib.Strings; import com.pahimar.ee3.lib.Strings;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory; import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
@ -138,6 +139,17 @@ public class TileAlchemicalChest extends TileEE implements IInventory
return 64; return 64;
} }
/**
* Do not make give this method the name canInteractWith because it clashes with Container
*
* @param entityplayer
*/
@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer)
{
return true;
}
/** /**
* Called when a client event is received with the event number and argument, see World.sendClientEvent * Called when a client event is received with the event number and argument, see World.sendClientEvent
*/ */

View file

@ -9,6 +9,7 @@ import com.pahimar.ee3.recipe.RecipesAludel;
import cpw.mods.fml.common.network.PacketDispatcher; import cpw.mods.fml.common.network.PacketDispatcher;
import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory; import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
@ -372,6 +373,17 @@ public class TileAludel extends TileEE implements IInventory
} }
} }
/**
* Do not make give this method the name canInteractWith because it clashes with Container
*
* @param entityplayer
*/
@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer)
{
return true;
}
@Override @Override
public String toString() public String toString()
{ {

View file

@ -6,6 +6,7 @@ import com.pahimar.ee3.network.packet.PacketTileCalcinator;
import com.pahimar.ee3.recipe.CalcinationManager; import com.pahimar.ee3.recipe.CalcinationManager;
import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory; import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
@ -120,6 +121,17 @@ public class TileCalcinator extends TileEE implements IInventory
return 64; return 64;
} }
/**
* Do not make give this method the name canInteractWith because it clashes with Container
*
* @param entityplayer
*/
@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer)
{
return true;
}
@Override @Override
public boolean receiveClientEvent(int eventId, int eventData) public boolean receiveClientEvent(int eventId, int eventData)
{ {

View file

@ -3,7 +3,6 @@ package com.pahimar.ee3.tileentity;
import com.pahimar.ee3.lib.Strings; import com.pahimar.ee3.lib.Strings;
import com.pahimar.ee3.network.PacketTypeHandler; import com.pahimar.ee3.network.PacketTypeHandler;
import com.pahimar.ee3.network.packet.PacketTileUpdate; import com.pahimar.ee3.network.packet.PacketTileUpdate;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.packet.Packet; import net.minecraft.network.packet.Packet;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
@ -75,11 +74,6 @@ public class TileEE extends TileEntity
this.customName = customName; this.customName = customName;
} }
public boolean isUseableByPlayer(EntityPlayer player)
{
return true;
}
@Override @Override
public void readFromNBT(NBTTagCompound nbtTagCompound) public void readFromNBT(NBTTagCompound nbtTagCompound)
{ {

View file

@ -5,6 +5,7 @@ import com.pahimar.ee3.lib.Strings;
import com.pahimar.ee3.network.PacketTypeHandler; import com.pahimar.ee3.network.PacketTypeHandler;
import com.pahimar.ee3.network.packet.PacketTileWithItemUpdate; import com.pahimar.ee3.network.packet.PacketTileWithItemUpdate;
import cpw.mods.fml.common.network.PacketDispatcher; import cpw.mods.fml.common.network.PacketDispatcher;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory; import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
@ -201,6 +202,17 @@ public class TileGlassBell extends TileEE implements IInventory
worldObj.updateAllLightTypes(xCoord, yCoord, zCoord); worldObj.updateAllLightTypes(xCoord, yCoord, zCoord);
} }
/**
* Do not make give this method the name canInteractWith because it clashes with Container
*
* @param entityplayer
*/
@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer)
{
return true;
}
@Override @Override
public String toString() public String toString()
{ {

View file

@ -1,5 +1,6 @@
package com.pahimar.ee3.tileentity; package com.pahimar.ee3.tileentity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory; import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
@ -92,6 +93,17 @@ public class TileResearchStation extends TileEE implements IInventory
return 0; return 0;
} }
/**
* Do not make give this method the name canInteractWith because it clashes with Container
*
* @param entityplayer
*/
@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer)
{
return true;
}
@Override @Override
public void openChest() public void openChest()
{ {