Package codechicken.multipart.minecraft

Source Code of codechicken.multipart.minecraft.McMultipartSPH

package codechicken.multipart.minecraft;

import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.network.play.INetHandlerPlayServer;
import net.minecraft.world.World;
import codechicken.lib.packet.PacketCustom;
import codechicken.lib.packet.PacketCustom.IServerPacketHandler;

public class McMultipartSPH implements IServerPacketHandler
{
    public static Object channel = MinecraftMultipartMod.instance;

    @Override
    public void handlePacket(PacketCustom packet, EntityPlayerMP sender, INetHandlerPlayServer netHandler) {
        switch (packet.getType()) {
            case 1:
                EventHandler.place(sender, sender.worldObj);
                break;
        }
    }

    public static void spawnBurnoutSmoke(World world, int x, int y, int z) {
        new PacketCustom(channel, 1).writeCoord(x, y, z).sendToChunk(world, x >> 4, z >> 4);
    }
}
TOP

Related Classes of codechicken.multipart.minecraft.McMultipartSPH

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.