Package net.minecraft.block

Examples of net.minecraft.block.Block


        }

        while (it.hasNext())
        {
          Vector3 vector = it.next();
          Block block = Block.blocksList[vector.getBlockID(this.worldObj)];

          if (block == ModularForceFieldSystem.blockForceField)
          {
            this.worldObj.setBlock(vector.intX(), vector.intY(), vector.intZ(), 0, 0, 3);
          }
View Full Code Here


      if (!world.isRemote)
      {
        for (Vector3 point : projector.getInteriorPoints())
        {
          Block block = Block.blocksList[point.getBlockID(world)];

          if (block instanceof BlockFluid || block instanceof BlockFluidBase)
          {
            point.setBlock(world, 0);
          }
View Full Code Here

                    try
                    {
                      if (world.canPlaceEntityOnSide(((ItemBlock) checkStack.getItem()).getBlockID(), position.intX(), position.intY(), position.intZ(), false, 0, null, checkStack))
                      {
                        int metadata = blockInfo != null ? blockInfo[1] : (checkStack.getHasSubtypes() ? checkStack.getItemDamage() : 0);
                        Block block = blockInfo != null ? Block.blocksList[blockInfo[0]] : null;

                        if (Blacklist.stabilizationBlacklist.contains(block) || block instanceof BlockFluid || block instanceof IFluidBlock)
                        {
                          return 1;
                        }
View Full Code Here

  public void updateRedstoneStates()
  {
    for (ForgeDirection currentSide : ForgeDirection.values())
    {
      Block neighbor = Block.blocksList[worldObj.getBlockId(xCoord + currentSide.offsetX, yCoord + currentSide.offsetY, zCoord + currentSide.offsetZ)];
      if (neighbor != null)
        neighbor.onNeighborBlockChange(worldObj, xCoord + currentSide.offsetX, yCoord + currentSide.offsetY, zCoord + currentSide.offsetZ, BlockEnum.FLUIDLEVELEMITTER.getBlockInstance().blockID);
    }
    PacketDispatcher.sendPacketToAllPlayers(getDescriptionPacket());
    worldObj.updateAllLightTypes(xCoord, yCoord, zCoord);
  }
View Full Code Here

      float scale = ((TileEntityCertusTank) tileEntity).getRenderScale();
      if (storedFluid != null && scale > 0)
      {
        GL11.glEnable(GL11.GL_BLEND);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
        Block id = Block.blocksList[FluidRegistry.WATER.getBlockID()];
        Icon fluidIcon = storedFluid.getIcon();
        if (fluidIcon == null)
          fluidIcon = FluidRegistry.LAVA.getIcon();
        renderer.setRenderBounds(0.08F, 0.001F, 0.08F, 0.92, scale * 0.999F, 0.92F);
        tessellator.setNormal(0.0F, -1F, 0.0F);
View Full Code Here

    return 0;
  }

  @Override
  public int getLightValue(IBlockAccess world, int x, int y, int z) {
    Block block = world.getBlock(x, y, z);
    if(block != this) {
      return super.getLightValue(world, x, y, z);
    }
    int meta = world.getBlockMetadata(x, y, z);
    if(meta > 1) {
View Full Code Here

    }
  }

  @Override
  public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) {
    Block i1 = par1IBlockAccess.getBlock(par2, par3, par4);
    return i1 == this ? false : super.shouldSideBeRendered(par1IBlockAccess, par2, par3, par4, par5);
  }
View Full Code Here

  }

  @Override
  public List<String> getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) {

    Block block = accessor.getBlock();
    TileEntity te = accessor.getTileEntity();
    Item item = Item.getItemFromBlock(block);
    EntityPlayer player = accessor.getPlayer();
    World world = player.worldObj;
    MovingObjectPosition pos = accessor.getPosition();
View Full Code Here

    return false;
  }

  @Override
  public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) {
    Block i1 = par1IBlockAccess.getBlock(par2, par3, par4);
    return i1 == this ? false : super.shouldSideBeRendered(par1IBlockAccess, par2, par3, par4, par5);
  }
View Full Code Here

    return renderId;
  }

  @Override
  public int getLightValue(IBlockAccess world, int x, int y, int z) {
    Block block = world.getBlock(x, y, z);
    if(block != null && block != this) {
      return block.getLightValue(world, x, y, z);
    }
    return world.getBlockMetadata(x, y, z) > 0 ? 15 : 0;
  }
View Full Code Here

TOP

Related Classes of net.minecraft.block.Block

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.