Package mods.railcraft.common.util.network

Examples of mods.railcraft.common.util.network.PacketEffect


    public void teleportEffect(Entity entity, double destX, double destY, double destZ) {
        if (Game.isNotHost(entity.worldObj))
            return;

        try {
            PacketEffect pkt = new PacketEffect(Effect.TELEPORT);
            DataOutputStream data = pkt.getOutputStream();
            data.writeDouble(entity.posX);
            data.writeDouble(entity.posY);
            data.writeDouble(entity.posZ);
            data.writeDouble(destX);
            data.writeDouble(destY);
            data.writeDouble(destZ);
            pkt.sendPacket(entity.worldObj, entity.posX, entity.posY, entity.posZ);
        } catch (IOException ex) {
        }


        SoundHelper.playSoundAtEntity(entity, "mob.endermen.portal", 0.25F, 1.0F);
View Full Code Here


    public void fireSparkEffect(World world, double startX, double startY, double startZ, double endX, double endY, double endZ) {
        if (Game.isNotHost(world))
            return;

        try {
            PacketEffect pkt = new PacketEffect(Effect.FIRESPARK);
            DataOutputStream data = pkt.getOutputStream();
            data.writeDouble(startX);
            data.writeDouble(startY);
            data.writeDouble(startZ);
            data.writeDouble(endX);
            data.writeDouble(endY);
            data.writeDouble(endZ);
            pkt.sendPacket(world, startX, startY, startZ);
        } catch (IOException ex) {
        }
    }
View Full Code Here

TOP

Related Classes of mods.railcraft.common.util.network.PacketEffect

Copyright © 2018 www.massapicom. 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.