@Override
public FMLProxyPacket getDescriptionPacket() {
ByteBuf buf = Unpooled.buffer();
DataOutByteBuf data = new DataOutByteBuf(buf, Side.SERVER);
try {
NetworkFactorization.writeMessage(buf, FzNetEventHandler.TO_BLOCK, StandardMessageType.TileFzType);
buf.writeInt(pos.getX());
buf.writeInt(pos.getY());
buf.writeInt(pos.getZ());
int ftId = getFactoryType().md;
buf.writeByte(ftId);
putData(data);
return FzNetDispatch.generate(buf);
} catch (IOException e) {
e.printStackTrace();
return null;
}
}
TileEntityCommon.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:Factorization
作者:
评论列表
文章目录