Search in sources :

Example 1 with MultiToolLeftClickMessage

use of com.cjm721.overloaded.network.packets.MultiToolLeftClickMessage in project Overloaded by CJ-MC-Mods.

the class ItemMultiTool method leftClickOnBlockClient.

@SideOnly(Side.CLIENT)
private void leftClickOnBlockClient(BlockPos pos, Vec3d hitVec) {
    IMessage message = new MultiToolLeftClickMessage(pos);
    Overloaded.proxy.networkWrapper.sendToServer(message);
//        EntityPlayerSP player = Minecraft.getMinecraft().player;
//        drawParticleStreamTo(player, hitVec, EnumParticleTypes.SMOKE_NORMAL);//EnumParticleTypes.TOWN_AURA
}
Also used : MultiToolLeftClickMessage(com.cjm721.overloaded.network.packets.MultiToolLeftClickMessage) IMessage(net.minecraftforge.fml.common.network.simpleimpl.IMessage) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

MultiToolLeftClickMessage (com.cjm721.overloaded.network.packets.MultiToolLeftClickMessage)1 IMessage (net.minecraftforge.fml.common.network.simpleimpl.IMessage)1 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)1