Api Tweak

This commit is contained in:
AlgorithmX2 2014-01-23 13:41:11 -06:00
parent 63680f3543
commit db67edffb8
2 changed files with 4 additions and 2 deletions

View file

@ -9,6 +9,7 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import appeng.api.implementations.guiobjects.IGuiItem;
import appeng.api.implementations.guiobjects.IGuiItemObject;
import appeng.api.implementations.items.IAEWrench;
import appeng.api.networking.IGridHost;
import appeng.core.features.AEFeature;
@ -29,7 +30,7 @@ public class ToolNetworkTool extends AEBaseItem implements IGuiItem, IAEWrench,
}
@Override
public Object getGuiObject(ItemStack is, World world, int x, int y, int z)
public IGuiItemObject getGuiObject(ItemStack is, World world, int x, int y, int z)
{
TileEntity te = world.getBlockTileEntity( x, y, z );
return new NetworkToolViewer( is, (IGridHost) (te instanceof IGridHost ? te : null) );

View file

@ -12,6 +12,7 @@ import net.minecraftforge.common.ForgeDirection;
import appeng.api.AEApi;
import appeng.api.config.FuzzyMode;
import appeng.api.implementations.guiobjects.IGuiItem;
import appeng.api.implementations.guiobjects.IGuiItemObject;
import appeng.api.implementations.items.IStorageCell;
import appeng.api.storage.IMEInventory;
import appeng.api.storage.StorageChannel;
@ -147,7 +148,7 @@ public class ToolPortableCell extends AEBasePoweredItem implements IStorageCell,
}
@Override
public Object getGuiObject(ItemStack is, World w, int x, int y, int z)
public IGuiItemObject getGuiObject(ItemStack is, World w, int x, int y, int z)
{
return new PortableCellViewer( is );
}