Example usage for io.netty.buffer ByteBuf readDouble

List of usage examples for io.netty.buffer ByteBuf readDouble

Introduction

In this page you can find the example usage for io.netty.buffer ByteBuf readDouble.

Prototype

public abstract double readDouble();

Source Link

Document

Gets a 64-bit floating point number at the current readerIndex and increases the readerIndex by 8 in this buffer.

Usage

From source file:pneumaticCraft.common.network.PacketSpawnParticle.java

License:LGPL

@Override
public void fromBytes(ByteBuf buffer) {
    super.fromBytes(buffer);
    particleName = ByteBufUtils.readUTF8String(buffer);
    dx = buffer.readDouble();
    dy = buffer.readDouble();//  w  ww .j ava2  s.  com
    dz = buffer.readDouble();
}

From source file:sqr.network.packets.PacketCreateExplosion.java

License:Open Source License

@Override
public void fromBytes(ByteBuf byteBuf) {
    this.posX = byteBuf.readDouble();
    this.posY = byteBuf.readDouble();
    this.posZ = byteBuf.readDouble();
}

From source file:sqr.network.packets.PacketSetMotion.java

License:Open Source License

@Override
public void fromBytes(ByteBuf byteBuf) {
    this.motionX = byteBuf.readDouble();
    this.motionY = byteBuf.readDouble();
    this.motionZ = byteBuf.readDouble();
}

From source file:totemic_commons.pokefenn.network.server.PacketJingle.java

License:MIT License

@Override
public void fromBytes(ByteBuf buf) {
    this.motionX = buf.readDouble();
    this.motionZ = buf.readDouble();
}

From source file:valkyrienwarfare.addon.control.network.HovercraftControllerGUIInputMessage.java

License:Open Source License

@Override
public void fromBytes(ByteBuf buf) {
    tilePos = new BlockPos(buf.readInt(), buf.readInt(), buf.readInt());
    physEntId = buf.readInt();/*from www .j  ava 2 s  .  co m*/
    newIdealHeight = buf.readDouble();
    newStablitiyBias = buf.readDouble();
    newLinearVelocityBias = buf.readDouble();
}

From source file:valkyrienwarfare.api.Vector.java

License:Open Source License

public Vector(ByteBuf toRead) {
    this(toRead.readDouble(), toRead.readDouble(), toRead.readDouble());
}

From source file:valkyrienwarfare.mod.network.PhysWrapperPositionMessage.java

License:Open Source License

@Override
public void fromBytes(ByteBuf buf) {
    entityID = buf.readInt();// w w w . ja  va2  s . co  m
    relativeTick = buf.readInt();

    posX = buf.readDouble();
    posY = buf.readDouble();
    posZ = buf.readDouble();

    pitch = buf.readDouble();
    yaw = buf.readDouble();
    roll = buf.readDouble();

    centerOfMass = new Vector(buf.readDouble(), buf.readDouble(), buf.readDouble());
}