Search in sources :

Example 1 with AnimatePacket

use of org.dragonet.net.packet.minecraft.AnimatePacket in project Dragonet-Legacy by DragonetMC.

the class AnimateEntityMessageTranslator method handleSpecific.

@Override
public PEPacket[] handleSpecific(AnimateEntityMessage packet) {
    AnimatePacket pkAnimate = new AnimatePacket();
    pkAnimate.eid = packet.id;
    //(msgAnimate.animation & 0xFF);
    pkAnimate.action = (byte) 0x01;
    return new PEPacket[] { pkAnimate };
}
Also used : AnimatePacket(org.dragonet.net.packet.minecraft.AnimatePacket) PEPacket(org.dragonet.net.packet.minecraft.PEPacket)

Aggregations

AnimatePacket (org.dragonet.net.packet.minecraft.AnimatePacket)1 PEPacket (org.dragonet.net.packet.minecraft.PEPacket)1