Search in sources :

Example 1 with C0CPacketInput

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));
        }
    }
}
Also used : EntityClientPlayerMP(net.minecraft.client.entity.EntityClientPlayerMP) C0CPacketInput(net.minecraft.network.play.client.C0CPacketInput) EntityAirSled(am2.entities.EntityAirSled) C03PacketPlayer(net.minecraft.network.play.client.C03PacketPlayer)

Aggregations

EntityAirSled (am2.entities.EntityAirSled)1 EntityClientPlayerMP (net.minecraft.client.entity.EntityClientPlayerMP)1 C03PacketPlayer (net.minecraft.network.play.client.C03PacketPlayer)1 C0CPacketInput (net.minecraft.network.play.client.C0CPacketInput)1