Search in sources :

Example 1 with PickUpItemPacket

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

the class CollectItemMessageTranslator method handleSpecific.

@Override
public PEPacket[] handleSpecific(CollectItemMessage packet) {
    PickUpItemPacket pkPickUp = new PickUpItemPacket();
    pkPickUp.target = packet.collector;
    pkPickUp.eid = packet.id;
    return new PEPacket[] { pkPickUp };
}
Also used : PickUpItemPacket(org.dragonet.net.packet.minecraft.PickUpItemPacket) PEPacket(org.dragonet.net.packet.minecraft.PEPacket)

Aggregations

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