Packet60Explosion.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:RuneCraftery 作者:
/**
 * Abstract. Reads the raw packet data from the data stream.
 */
public void readPacketData(DataInput par1DataInput) throws IOException
{
    this.explosionX = par1DataInput.readDouble();
    this.explosionY = par1DataInput.readDouble();
    this.explosionZ = par1DataInput.readDouble();
    this.explosionSize = par1DataInput.readFloat();
    int i = par1DataInput.readInt();
    this.chunkPositionRecords = new ArrayList(i);
    int j = (int)this.explosionX;
    int k = (int)this.explosionY;
    int l = (int)this.explosionZ;

    for (int i1 = 0; i1 < i; ++i1)
    {
        int j1 = par1DataInput.readByte() + j;
        int k1 = par1DataInput.readByte() + k;
        int l1 = par1DataInput.readByte() + l;
        this.chunkPositionRecords.add(new ChunkPosition(j1, k1, l1));
    }

    this.playerVelocityX = par1DataInput.readFloat();
    this.playerVelocityY = par1DataInput.readFloat();
    this.playerVelocityZ = par1DataInput.readFloat();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号