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