use of net.minecraft.network.play.client.C0CPacketInput in project ArsMagica2 by Mithion.
the class ClientProxy method sendLocalMovementData.
@Override
public void sendLocalMovementData(EntityLivingBase ent) {
if (ent == Minecraft.getMinecraft().thePlayer) {
if (ent.worldObj.isRemote && ent.ridingEntity instanceof EntityAirSled) {
EntityClientPlayerMP player = (EntityClientPlayerMP) ent;
player.sendQueue.addToSendQueue(new C03PacketPlayer.C05PacketPlayerLook(player.rotationYaw, player.rotationPitch, player.onGround));
player.sendQueue.addToSendQueue(new C0CPacketInput(player.moveStrafing, player.moveForward, player.movementInput.jump, player.movementInput.sneak));
}
}
}
Aggregations