public void writeToBuf(ByteBuf buf) {
ByteBufUtils.writeUTF8String(buf, offeringPlayerName);
ByteBufUtils.writeUTF8String(buf, offeringPlayerId);
if (providingPosition != null) {
buf.writeBoolean(true);
buf.writeInt(providingPosition.getX());
buf.writeInt(providingPosition.getY());
buf.writeInt(providingPosition.getZ());
buf.writeInt(providingDimensionId);
} else {
buf.writeBoolean(false);
}
if (returningPosition != null) {
buf.writeBoolean(true);
buf.writeInt(returningPosition.getX());
buf.writeInt(returningPosition.getY());
buf.writeInt(returningPosition.getZ());
buf.writeInt(returningDimensionId);
} else {
buf.writeBoolean(false);
}
buf.writeInt(inStock);
buf.writeInt(maxTrades);
buf.writeInt(pendingPayments);
}
AmadronOfferCustom.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:pnc-repressurized
作者:
评论列表
文章目录