Examples of SteerVehicleMessage


Examples of net.glowstone.net.message.play.player.SteerVehicleMessage

        float forward = buf.readFloat();
        int flags = buf.readUnsignedByte();

        boolean jump = (flags & 0x1) != 0;
        boolean unmount = (flags & 0x2) != 0;
        return new SteerVehicleMessage(sideways, forward, jump, unmount);
    }
View Full Code Here

Examples of org.spout.vanilla.protocol.msg.entity.SteerVehicleMessage

  public SteerVehicleMessage decode(ByteBuf buffer) throws IOException {
    float sideways = buffer.readFloat();
    float forward = buffer.readFloat();
    boolean jump = buffer.readByte() != 0;
    boolean unmount = buffer.readByte() != 0;
    return new SteerVehicleMessage(sideways, forward, jump, unmount);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.