2017-02-26 13:56:36 +01:00
|
|
|
/*
|
2016-09-29 16:19:16 +02:00
|
|
|
* This file is part of Industrial Wires.
|
2017-02-26 13:56:36 +01:00
|
|
|
* Copyright (C) 2016-2017 malte0811
|
2016-09-29 16:19:16 +02:00
|
|
|
*
|
|
|
|
* Industrial Wires is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Industrial Wires is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Industrial Wires. If not, see <http://www.gnu.org/licenses/>.
|
2017-02-26 13:56:36 +01:00
|
|
|
*/
|
2016-09-15 20:43:18 +02:00
|
|
|
package malte0811.industrialWires;
|
|
|
|
|
2017-02-26 13:56:36 +01:00
|
|
|
import malte0811.industrialWires.blocks.TileEntityJacobsLadder;
|
2017-04-10 16:20:39 +02:00
|
|
|
import malte0811.industrialWires.blocks.controlpanel.TileEntityPanelCreator;
|
|
|
|
import malte0811.industrialWires.containers.ContainerPanelCreator;
|
2017-04-09 16:59:57 +02:00
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
2017-04-10 16:20:39 +02:00
|
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
2017-02-26 13:56:36 +01:00
|
|
|
import net.minecraft.util.math.Vec3d;
|
|
|
|
import net.minecraft.world.World;
|
2017-04-09 16:59:57 +02:00
|
|
|
import net.minecraftforge.fml.common.network.IGuiHandler;
|
2017-02-26 13:56:36 +01:00
|
|
|
|
2017-04-09 16:59:57 +02:00
|
|
|
public class CommonProxy implements IGuiHandler {
|
2016-09-15 20:43:18 +02:00
|
|
|
public void preInit() {}
|
|
|
|
public void postInit() {}
|
2017-02-26 13:56:36 +01:00
|
|
|
public World getClientWorld() {return null;}
|
|
|
|
public void playJacobsLadderSound(TileEntityJacobsLadder te, int phase, Vec3d soundPos) {}
|
2017-04-09 16:59:57 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
2017-04-10 16:20:39 +02:00
|
|
|
TileEntity te = world.getTileEntity(new BlockPos(x, y, z));
|
|
|
|
if (te instanceof TileEntityPanelCreator) {
|
|
|
|
return new ContainerPanelCreator(player.inventory, (TileEntityPanelCreator)te);
|
|
|
|
}
|
|
|
|
return null;
|
2017-04-09 16:59:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
|
|
|
return null;
|
|
|
|
}
|
2016-09-15 20:43:18 +02:00
|
|
|
}
|