Wireless Terminal Gui Works, dose not support range, or WAPs

This commit is contained in:
AlgorithmX2
2014-02-02 23:02:54 -06:00
parent b7d90b989d
commit 8b81545abf
8 changed files with 121 additions and 36 deletions
@@ -1,13 +1,28 @@
package appeng.container.implementations;
import net.minecraft.entity.player.InventoryPlayer;
import appeng.api.implementations.guiobjects.IPortableCell;
import appeng.core.localization.PlayerMessages;
import appeng.helpers.WirelessTerminalGuiObject;
public class ContainerWirelessTerm extends ContainerMEPortableCell
{
public ContainerWirelessTerm(InventoryPlayer ip, IPortableCell montiorable) {
WirelessTerminalGuiObject wtgo;
public ContainerWirelessTerm(InventoryPlayer ip, WirelessTerminalGuiObject montiorable) {
super( ip, montiorable );
wtgo = montiorable;
}
@Override
public void detectAndSendChanges()
{
super.detectAndSendChanges();
if ( !wtgo.rangeCheck() )
{
getPlayerInv().player.closeScreen();
getPlayerInv().player.sendChatToPlayer( PlayerMessages.OutOfRange.get() );
}
}
}