Search in sources :

Example 1 with ExtendedExplosion

use of convenientadditions.api.ExtendedExplosion in project ConvenientAdditions by Necr0.

the class PacketExtendedExplosion method onClientReceive.

@SideOnly(Side.CLIENT)
public void onClientReceive(PacketExtendedExplosion message, MessageContext ctx) {
    ExtendedExplosion explosion = new ExtendedExplosion(Helper.getClientWorld(), null, message.posX, message.posY, message.posZ, message.strength, message.affectedBlockPositions);
    explosion.doExplosionB(true);
    Helper.getClientPlayer().addVelocity(message.getMotionX(), (double) message.getMotionY(), (double) message.getMotionZ());
}
Also used : ExtendedExplosion(convenientadditions.api.ExtendedExplosion) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

ExtendedExplosion (convenientadditions.api.ExtendedExplosion)1 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)1