Package micdoodle8.mods.galacticraft.api.vector

Examples of micdoodle8.mods.galacticraft.api.vector.BlockVec3


        TileEntity tileEntity = worldObj.getTileEntity(target.blockX, target.blockY, target.blockZ);

        if (tileEntity instanceof TileEntityTelepadFake)
        {
            BlockVec3 mainBlockPosition = ((TileEntityTelepadFake) tileEntity).mainBlockPosition;

            if (mainBlockPosition != null)
            {
                effectRenderer.addBlockHitEffects(mainBlockPosition.x, mainBlockPosition.y, mainBlockPosition.z, target);
            }
View Full Code Here


        for (final ForgeDirection dir : ForgeDirection.values())
        {
            if (dir != ForgeDirection.UNKNOWN)
            {
                final TileEntity pad = new BlockVec3(this).getTileEntityOnSide(this.worldObj, dir);

                if (pad != null && pad instanceof TileEntityMulti)
                {
                    final TileEntity mainTile = ((TileEntityMulti) pad).mainBlockPosition.getTileEntity(this.worldObj);
View Full Code Here

    {
        if (Blocks.air != idBroken && idBroken != GCBlocks.brightAir)
        //Do nothing if an air neighbour was replaced (probably because replacing with breatheableAir)
        //but do a check if replacing breatheableAir as that could be dividing a sealed space
        {
            OxygenPressureProtocol.onEdgeBlockUpdated(world, new BlockVec3(x, y, z));
        }
    }
View Full Code Here

                            }
                            else
                            {
                                boolean valid = true;

                                BlockVec3 blockVec = new BlockVec3(this).translate(x, 3, z);
                                for (double d = 0.0D; d < distance; d++)
                                {
                                    BlockVec3 blockAt = blockVec.clone().translate((int) (d * sinA), (int) (d * cosA), 0);
                                    Block block = blockAt.getBlock(this.worldObj);

                                    if (block.isOpaqueCube())
                                    {
                                        valid = false;
                                        break;
View Full Code Here

    }

    @Override
    public void onCreate(BlockVec3 placedPosition)
    {
        final BlockVec3 vecStrut = new BlockVec3(placedPosition.x, placedPosition.y + 1, placedPosition.z);

        ((BlockMulti) GCBlocks.fakeBlock).makeFakeBlock(this.worldObj, vecStrut, placedPosition, 0);

        for (int x = -1; x < 2; x++)
        {
            for (int z = -1; z < 2; z++)
            {
                final BlockVec3 vecToAdd = new BlockVec3(placedPosition.x + x, placedPosition.y + 2, placedPosition.z + z);

                ((BlockMulti) GCBlocks.fakeBlock).makeFakeBlock(this.worldObj, vecToAdd, placedPosition, (this.getTierGC() == 1) ? 4 : 0);
            }
        }
    }
View Full Code Here

    }

    @Override
    public void onDestroy(TileEntity callingBlock)
    {
        final BlockVec3 thisBlock = new BlockVec3(this);

        for (int y = 1; y <= 2; y++)
        {
            for (int x = -1; x < 2; x++)
            {
View Full Code Here

                metadata = 4;
                par1World.setBlockMetadataWithNotify(x, y, z, metadata, 3);
            }
        }

        BlockVec3 baseBlock;
        switch (metadata)
        {
        case 1:
            baseBlock = new BlockVec3(x - 1, y, z);
            break;
        case 2:
            baseBlock = new BlockVec3(x + 1, y, z);
            break;
        case 3:
            baseBlock = new BlockVec3(x, y, z - 1);
            break;
        case 4:
            baseBlock = new BlockVec3(x, y, z + 1);
            break;
        default:
            this.dropTorchIfCantStay(par1World, x, y, z);
            return;
        }
View Full Code Here

        world.setBlockMetadataWithNotify(x, y, z, change, 2);

        if (world.provider instanceof WorldProviderOrbit && !world.isRemote)
        {
            WorldProviderOrbit worldOrbital = (WorldProviderOrbit) world.provider;
            worldOrbital.checkSS(new BlockVec3(x, y, z), true);
        }
        return true;
    }
View Full Code Here

        {
            final int facing = metadata & 8;
            if (world.provider instanceof WorldProviderOrbit)
            {
                WorldProviderOrbit worldOrbital = (WorldProviderOrbit) world.provider;
                BlockVec3 baseBlock = new BlockVec3(x, y, z);
                worldOrbital.removeThruster(baseBlock, facing == 0);
                worldOrbital.updateSpinSpeed();
            }
        }
    }
View Full Code Here

    {
        if (Blocks.air != idBroken && idBroken != GCBlocks.brightAir)
        //Do nothing if an air neighbour was replaced (probably because replacing with breatheableAir)
        //but do a check if replacing breatheableAir as that could be dividing a sealed space
        {
            OxygenPressureProtocol.onEdgeBlockUpdated(world, new BlockVec3(x, y, z));
        }
    }
View Full Code Here

TOP

Related Classes of micdoodle8.mods.galacticraft.api.vector.BlockVec3

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.