Search in sources :

Example 1 with PipeMessageReceiver

use of buildcraft.api.transport.pipe.IPipeHolder.PipeMessageReceiver in project BuildCraft by BuildCraft.

the class PluggableGate method sendGuiMessage.

public void sendGuiMessage(int id, IPayloadWriter writer) {
    PipeMessageReceiver to = PipeMessageReceiver.PLUGGABLES[side.ordinal()];
    holder.sendGuiMessage(to, (buffer) -> {
        /* The pluggable holder receives this message and requires the ID '1' (UPDATE) to forward the message onto
             * ourselves */
        buffer.writeByte(1);
        buffer.writeByte(id);
        writer.write(PacketBufferBC.asPacketBufferBc(buffer));
    });
}
Also used : PipeMessageReceiver(buildcraft.api.transport.pipe.IPipeHolder.PipeMessageReceiver)

Example 2 with PipeMessageReceiver

use of buildcraft.api.transport.pipe.IPipeHolder.PipeMessageReceiver in project BuildCraft by BuildCraft.

the class PluggableGate method sendMessage.

public void sendMessage(int id, IPayloadWriter writer) {
    PipeMessageReceiver to = PipeMessageReceiver.PLUGGABLES[side.ordinal()];
    holder.sendMessage(to, (buffer) -> {
        /* The pluggable holder receives this message and requires the ID '1' (UPDATE) to forward the message onto
             * ourselves */
        buffer.writeByte(1);
        buffer.writeByte(id);
        writer.write(PacketBufferBC.asPacketBufferBc(buffer));
    });
}
Also used : PipeMessageReceiver(buildcraft.api.transport.pipe.IPipeHolder.PipeMessageReceiver)

Aggregations

PipeMessageReceiver (buildcraft.api.transport.pipe.IPipeHolder.PipeMessageReceiver)2