use of buildcraft.api.statements.StatementManager.IParamReaderBuf in project BuildCraft by BuildCraft.
the class StatementTypeParam method readFromBuffer.
@Override
public IStatementParameter readFromBuffer(PacketBufferBC buffer) throws IOException {
if (buffer.readBoolean()) {
String tag = buffer.readString();
IParamReaderBuf reader = StatementManager.paramsBuf.get(tag);
if (reader == null) {
throw new InvalidInputDataException("Unknown paramater type " + tag);
}
return reader.readFromBuf(buffer);
} else {
return null;
}
}
Aggregations