Example usage for io.netty.buffer ByteBuf writeDouble

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

Introduction

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

Prototype

public abstract ByteBuf writeDouble(double value);

Source Link

Document

Sets the specified 64-bit floating point number at the current writerIndex and increases the writerIndex by 8 in this buffer.

Usage

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

License:Open Source License

@Override
public void toBytes(ByteBuf byteBuf) {
    byteBuf.writeDouble(posX);
    byteBuf.writeDouble(posY);
    byteBuf.writeDouble(posZ);
}

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

License:Open Source License

@Override
public void toBytes(ByteBuf byteBuf) {
    byteBuf.writeDouble(motionX);
    byteBuf.writeDouble(motionY);
    byteBuf.writeDouble(motionZ);
}

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

License:MIT License

@Override
public void toBytes(ByteBuf buf) {
    buf.writeDouble(motionX);
    buf.writeDouble(motionZ);
}

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

License:Open Source License

@Override
public void toBytes(ByteBuf buf) {
    buf.writeInt(tilePos.getX());/* w  ww  .  j  av a2  s.com*/
    buf.writeInt(tilePos.getY());
    buf.writeInt(tilePos.getZ());
    buf.writeInt(physEntId);
    buf.writeDouble(newIdealHeight);
    buf.writeDouble(newStablitiyBias);
    buf.writeDouble(newLinearVelocityBias);
}

From source file:valkyrienwarfare.api.Vector.java

License:Open Source License

public void writeToByteBuf(ByteBuf toWrite) {
    toWrite.writeDouble(X);
    toWrite.writeDouble(Y);
    toWrite.writeDouble(Z);
}

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

License:Open Source License

@Override
public void toBytes(ByteBuf buf) {
    buf.writeInt(toSpawn.getEntityId());
    buf.writeInt(relativeTick);/*from w  ww  .j  a va 2s. c o m*/

    buf.writeDouble(toSpawn.posX);
    buf.writeDouble(toSpawn.posY);
    buf.writeDouble(toSpawn.posZ);

    buf.writeDouble(toSpawn.pitch);
    buf.writeDouble(toSpawn.yaw);
    buf.writeDouble(toSpawn.roll);

    buf.writeDouble(toSpawn.wrapping.centerCoord.X);
    buf.writeDouble(toSpawn.wrapping.centerCoord.Y);
    buf.writeDouble(toSpawn.wrapping.centerCoord.Z);
}