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);
}
}
Aggregations