Search in sources :

Example 1 with TransportalizerPacket

use of com.mraof.minestuck.network.TransportalizerPacket in project Minestuck by mraof.

the class GuiTransportalizer method actionPerformed.

@Override
protected void actionPerformed(GuiButton button) {
    if (button.id == 0 && this.destinationTextField.getText().length() == 4) {
        // Debug.print("Sending transportalizer packet with destination of " + this.destinationTextField.getText());
        MinestuckPacket packet = new TransportalizerPacket();
        packet.generatePacket(te.getPos().getX(), te.getPos().getY(), te.getPos().getZ(), this.destinationTextField.getText().toUpperCase());
        MinestuckChannelHandler.sendToServer(packet);
        this.mc.displayGuiScreen((GuiScreen) null);
    }
}
Also used : TransportalizerPacket(com.mraof.minestuck.network.TransportalizerPacket) MinestuckPacket(com.mraof.minestuck.network.MinestuckPacket)

Aggregations

MinestuckPacket (com.mraof.minestuck.network.MinestuckPacket)1 TransportalizerPacket (com.mraof.minestuck.network.TransportalizerPacket)1