List of usage examples for io.netty.buffer ByteBuf readFloat
public abstract float readFloat();
From source file:cn.academy.misc.msg.TeleportMsg.java
License:Open Source License
@Override public void fromBytes(ByteBuf buf) { dim = buf.readByte(); x = buf.readFloat(); y = buf.readFloat(); z = buf.readFloat(); }
From source file:cn.liutils.api.player.state.StateLockRotation.java
License:Open Source License
@Override protected void readBytes(ByteBuf buf) { rotationPitch = buf.readFloat(); rotationYaw = buf.readFloat();//from w w w .j ava2 s . c om rotationYawHead = buf.readFloat(); cameraPitch = buf.readFloat(); cameraYaw = buf.readFloat(); }
From source file:com.builtbroken.atomic.content.machines.reactor.fission.core.TileEntityReactorCell.java
@Override protected void readDescPacket(ByteBuf buf, EntityPlayer player) { super.readDescPacket(buf, player); _running = buf.readBoolean();//from w w w. ja va 2 s . co m _renderFuel = buf.readBoolean(); _renderFuelLevel = buf.readFloat(); }
From source file:com.builtbroken.atomic.network.packet.sync.PacketPlayerRadiation.java
@Override public void decodeInto(ChannelHandlerContext ctx, ByteBuf buffer) { rads = buffer.readFloat(); rads_area = buffer.readFloat();/*www . ja va 2 s. c o m*/ rad_remove_timer = buffer.readInt(); }
From source file:com.builtbroken.comecloser.network.SyncSettings.java
@Override public void fromBytes(ByteBuf buf) { min = buf.readFloat(); max = buf.readFloat(); doRay = buf.readBoolean(); }
From source file:com.builtbroken.icbm.content.ams.TileAMS.java
@Override public boolean read(ByteBuf buf, int id, EntityPlayer player, PacketType type) { if (!super.read(buf, id, player, type)) { if (id == 4) { defaultAim.setYaw(buf.readFloat()); defaultAim.setPitch(buf.readFloat()); return true; }/* w w w .j av a 2s . c o m*/ return false; } return true; }
From source file:com.builtbroken.icbm.content.missile.tile.TileCrashedMissile.java
@Override public void readDescPacket(ByteBuf buf) { ItemStack stack = ByteBufUtils.readItemStack(buf); missile = stack.getItem() instanceof IMissileItem ? ((IMissileItem) stack.getItem()).toMissile(stack) : null;/* ww w . ja va2 s. co m*/ yaw = buf.readFloat(); pitch = buf.readFloat(); posOffset = new Pos(buf); if (buf.readBoolean()) { block = Block.getBlockFromName(ByteBufUtils.readUTF8String(buf)); meta = buf.readShort(); } }
From source file:com.crowsofwar.avatar.common.data.AbilityData.java
License:Open Source License
private void fromBytes(ByteBuf buf) { xp = buf.readFloat(); }
From source file:com.crowsofwar.avatar.common.data.Chi.java
License:Open Source License
public void fromBytes(ByteBuf buf) { max = buf.readFloat(); total = buf.readFloat(); availableMark = buf.readFloat(); }
From source file:com.crowsofwar.avatar.common.entity.EntityWallSegment.java
License:Open Source License
@Override public void readSpawnData(ByteBuf buf) { setSize(width, buf.readFloat()); offset = buf.readInt(); }