Java源码示例:com.nukkitx.protocol.bedrock.packet.NetworkChunkPublisherUpdatePacket
示例1
@Override
public void serialize(ByteBuf buffer, NetworkChunkPublisherUpdatePacket packet) {
BedrockUtils.writeVector3i(buffer, packet.getPosition());
VarInts.writeUnsignedInt(buffer, packet.getRadius());
}
示例2
@Override
public void deserialize(ByteBuf buffer, NetworkChunkPublisherUpdatePacket packet) {
packet.setPosition(BedrockUtils.readVector3i(buffer));
packet.setRadius(VarInts.readUnsignedInt(buffer));
}
示例3
@Override
public void serialize(ByteBuf buffer, NetworkChunkPublisherUpdatePacket packet) {
BedrockUtils.writeVector3i(buffer, packet.getPosition());
VarInts.writeUnsignedInt(buffer, packet.getRadius());
}
示例4
@Override
public void deserialize(ByteBuf buffer, NetworkChunkPublisherUpdatePacket packet) {
packet.setPosition(BedrockUtils.readVector3i(buffer));
packet.setRadius(VarInts.readUnsignedInt(buffer));
}
示例5
@Override
public void serialize(ByteBuf buffer, NetworkChunkPublisherUpdatePacket packet) {
BedrockUtils.writeVector3i(buffer, packet.getPosition());
VarInts.writeUnsignedInt(buffer, packet.getRadius());
}
示例6
@Override
public void deserialize(ByteBuf buffer, NetworkChunkPublisherUpdatePacket packet) {
packet.setPosition(BedrockUtils.readVector3i(buffer));
packet.setRadius(VarInts.readUnsignedInt(buffer));
}
示例7
@Override
public void serialize(ByteBuf buffer, NetworkChunkPublisherUpdatePacket packet) {
BedrockUtils.writeVector3i(buffer, packet.getPosition());
VarInts.writeUnsignedInt(buffer, packet.getRadius());
}
示例8
@Override
public void deserialize(ByteBuf buffer, NetworkChunkPublisherUpdatePacket packet) {
packet.setPosition(BedrockUtils.readVector3i(buffer));
packet.setRadius(VarInts.readUnsignedInt(buffer));
}
示例9
@Override
public void serialize(ByteBuf buffer, NetworkChunkPublisherUpdatePacket packet) {
BedrockUtils.writeVector3i(buffer, packet.getPosition());
VarInts.writeUnsignedInt(buffer, packet.getRadius());
}
示例10
@Override
public void deserialize(ByteBuf buffer, NetworkChunkPublisherUpdatePacket packet) {
packet.setPosition(BedrockUtils.readVector3i(buffer));
packet.setRadius(VarInts.readUnsignedInt(buffer));
}
示例11
@Override
public void serialize(ByteBuf buffer, NetworkChunkPublisherUpdatePacket packet) {
BedrockUtils.writeVector3i(buffer, packet.getPosition());
VarInts.writeUnsignedInt(buffer, packet.getRadius());
}
示例12
@Override
public void deserialize(ByteBuf buffer, NetworkChunkPublisherUpdatePacket packet) {
packet.setPosition(BedrockUtils.readVector3i(buffer));
packet.setRadius(VarInts.readUnsignedInt(buffer));
}