use of mods.railcraft.common.gui.containers.RailcraftContainer in project Railcraft by Railcraft.
the class PacketGuiWidget method readData.
@Override
public void readData(RailcraftInputStream data) throws IOException {
windowId = data.readByte();
byte widgetId = data.readByte();
EntityPlayerSP player = FMLClientHandler.instance().getClient().thePlayer;
if (player.openContainer instanceof RailcraftContainer && player.openContainer.windowId == windowId) {
RailcraftContainer railcraftContainer = ((RailcraftContainer) player.openContainer);
railcraftContainer.getWidgets().get(widgetId).readServerSyncData(data);
}
}
use of mods.railcraft.common.gui.containers.RailcraftContainer in project Railcraft by Railcraft.
the class PacketGuiString method readData.
@Override
public void readData(RailcraftInputStream data) throws IOException {
windowId = data.readByte();
dataId = data.readByte();
str = data.readUTF();
EntityPlayerSP player = FMLClientHandler.instance().getClient().thePlayer;
if (player.openContainer instanceof RailcraftContainer && player.openContainer.windowId == windowId)
((RailcraftContainer) player.openContainer).updateString(dataId, str);
}
use of mods.railcraft.common.gui.containers.RailcraftContainer in project Railcraft by Railcraft.
the class PacketGuiData method readData.
@Override
public void readData(RailcraftInputStream data) throws IOException {
windowId = data.readByte();
dataId = data.readByte();
EntityPlayerSP player = FMLClientHandler.instance().getClient().thePlayer;
if (player.openContainer instanceof RailcraftContainer && player.openContainer.windowId == windowId)
((RailcraftContainer) player.openContainer).updateData(dataId, data);
}
Aggregations