Examples of PacketSimpleAsteroids


Examples of micdoodle8.mods.galacticraft.planets.asteroids.network.PacketSimpleAsteroids

    public void onTextChanged(GuiElementTextBox textBox, String newText)
    {
        if (textBox.equals(this.address))
        {
            this.telepad.address = textBox.getIntegerValue();
            GalacticraftCore.packetPipeline.sendToServer(new PacketSimpleAsteroids(PacketSimpleAsteroids.EnumSimplePacketAsteroids.S_UPDATE_ADVANCED_GUI, new Object[] { 0, this.telepad.xCoord, this.telepad.yCoord, this.telepad.zCoord, this.telepad.address }));
        }
        else if (textBox.equals(this.targetAddress))
        {
            this.telepad.targetAddress = textBox.getIntegerValue();
            GalacticraftCore.packetPipeline.sendToServer(new PacketSimpleAsteroids(PacketSimpleAsteroids.EnumSimplePacketAsteroids.S_UPDATE_ADVANCED_GUI, new Object[] { 1, this.telepad.xCoord, this.telepad.yCoord, this.telepad.zCoord, this.telepad.targetAddress }));
        }
    }
View Full Code Here

Examples of micdoodle8.mods.galacticraft.planets.asteroids.network.PacketSimpleAsteroids

                            if (teleportResult == 0)
                            {
                                for (EntityLivingBase e : containedEntities)
                                {
                                    e.setPosition(finalPos.x + 0.5F, finalPos.y + 1.0F, finalPos.z + 0.5F);
                                    GalacticraftCore.packetPipeline.sendToDimension(new PacketSimpleAsteroids(PacketSimpleAsteroids.EnumSimplePacketAsteroids.C_TELEPAD_SEND, new Object[] { finalPos, e.getEntityId() }), this.worldObj.provider.dimensionId);
                                }

                                if (containedEntities.size() > 0)
                                {
                                    this.storage.setEnergyStored(this.storage.getEnergyStoredGC() - ENERGY_USE_ON_TELEPORT);
View Full Code Here

Examples of micdoodle8.mods.galacticraft.planets.asteroids.network.PacketSimpleAsteroids

            this.func_145775_I();
        }

        if (!this.worldObj.isRemote && (this.ticksInGround - 1) % 10 == 0)
        {
            GalacticraftCore.packetPipeline.sendToAllAround(new PacketSimpleAsteroids(PacketSimpleAsteroids.EnumSimplePacketAsteroids.C_UPDATE_GRAPPLE_POS, new Object[] { this.getEntityId(), new Vector3(this) }), new NetworkRegistry.TargetPoint(this.worldObj.provider.dimensionId, this.posX, this.posY, this.posZ, 150));
        }
    }
View Full Code Here
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.