Search in sources :

Example 1 with PacketChangeGPSToolCoordinate

use of pneumaticCraft.common.network.PacketChangeGPSToolCoordinate in project PneumaticCraft by MineMaarten.

the class GuiGPSTool method onGuiClosed.

@Override
public void onGuiClosed() {
    ChunkPosition newPos = new ChunkPosition(textFields[0].getValue(), textFields[1].getValue(), textFields[2].getValue());
    NetworkHandler.sendToServer(new PacketChangeGPSToolCoordinate(newPos.chunkPosX, newPos.equals(oldGPSLoc) ? -1 : newPos.chunkPosY, newPos.chunkPosZ, variableField.getText()));
}
Also used : PacketChangeGPSToolCoordinate(pneumaticCraft.common.network.PacketChangeGPSToolCoordinate) ChunkPosition(net.minecraft.world.ChunkPosition)

Aggregations

ChunkPosition (net.minecraft.world.ChunkPosition)1 PacketChangeGPSToolCoordinate (pneumaticCraft.common.network.PacketChangeGPSToolCoordinate)1