use of net.minecraft.network.packet.c2s.play.HandSwingC2SPacket in project BleachHack by BleachDrinker420.
the class MixinClientPlayerEntity method swingHand.
@Overwrite
public void swingHand(Hand hand) {
EventSwingHand event = new EventSwingHand(hand);
BleachHack.eventBus.post(event);
if (!event.isCancelled()) {
super.swingHand(event.getHand());
}
networkHandler.sendPacket(new HandSwingC2SPacket(hand));
}
Aggregations