Examples of canPlaceTorchOnTop()


Examples of net.minecraft.block.Block.canPlaceTorchOnTop()

    {
        if(side == 0)
            return null;
        pos = pos.copy().offset(side^1);
        Block block = world.getBlock(pos.x, pos.y, pos.z);
        if(!block.isSideSolid(world, pos.x, pos.y, pos.z, ForgeDirection.getOrientation(side)) && (side != 1 || block.canPlaceTorchOnTop(world, pos.x, pos.y, pos.z)))
            return null;

        return new TorchPart(sideMetaMap[side^1]);
    }
View Full Code Here

Examples of net.minecraft.block.Block.canPlaceTorchOnTop()

            return true;
        }
        else
        {
            final Block var5 = par1World.getBlock(par2, par3, par4);
            return var5.canPlaceTorchOnTop(par1World, par2, par3, par4);
        }
    }

    @Override
    public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
View Full Code Here

Examples of net.minecraft.block.Block.canPlaceTorchOnTop()

            return true;
        }
        else
        {
            Block l = par1World.getBlock(par2, par3, par4);
            return l.canPlaceTorchOnTop(par1World, par2, par3, par4);
        }
    }

    @Override
    public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
View Full Code Here

Examples of net.minecraft.block.Block.canPlaceTorchOnTop()

      return true;
    }
    else
    {
      Block block = par1World.getBlock(par2, par3, par4);
      return block.canPlaceTorchOnTop(par1World, par2, par3, par4);
    }
  }

  protected int getColourValueFromItemStack(ItemStack itemStack) {
    int value = 0xffffff; // default to white.
View Full Code Here

Examples of net.minecraft.block.Block.canPlaceTorchOnTop()

        if (side == ForgeDirection.DOWN) {
            if (World.doesBlockHaveSolidTopSurface(world, sx, sy, sz))
                return true;
            if (world instanceof ChunkCache) {
                Block block = WorldPlugin.getBlock(world, sx, sy, sz);
                if (block != null && block.canPlaceTorchOnTop(Minecraft.getMinecraft().theWorld, sx, sy, sz))
                    return true;
            }
        }
        Block block = WorldPlugin.getBlock(world, sx, sy, sz);
        if (block instanceof BlockPostBase)
View Full Code Here

Examples of net.minecraft.block.Block.canPlaceTorchOnTop()

        max = 10 * pix;
        Block below = WorldPlugin.getBlock(iBlockAccess, x, y - 1, z);
        World world = Game.getWorld();
        if (PostConnectionHelper.connect(iBlockAccess, x, y, z, ForgeDirection.DOWN) != ConnectStyle.NONE
                || iBlockAccess.isSideSolid(x, y - 1, z, ForgeDirection.UP, true)
                || (below != null && below.canPlaceTorchOnTop(world, x, y - 1, z))) {
            info.setBlockBounds(min, 0, min, max, 15 * pix, max);
            RenderFakeBlock.renderBlock(info, iBlockAccess, x, y, z, true, false);
        }

        // Post Connections
View Full Code Here

Examples of net.minecraft.block.Block.canPlaceTorchOnTop()

            return true;
        }
        else
        {
            Block b = par1World.getBlock(par2, par3, par4);
            return (b != null && b.canPlaceTorchOnTop(par1World, par2, par3, par4));
        }
    }

    /**
     * Checks to see if its valid to put this block at the specified
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.