Examples of TileEntityCardboardBox


Examples of mekanism.common.tile.TileEntityCardboardBox

  public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer entityplayer, int facing, float hitX, float hitY, float hitZ)
  {
    if(!world.isRemote && entityplayer.isSneaking())
    {
      ItemStack itemStack = new ItemStack(Mekanism.CardboardBox);
      TileEntityCardboardBox tileEntity = (TileEntityCardboardBox)world.getTileEntity(x, y, z);

      if(tileEntity.storedData != null)
      {
        BlockData data = tileEntity.storedData;
       
View Full Code Here

Examples of mekanism.common.tile.TileEntityCardboardBox

  }

  @Override
  public TileEntity createNewTileEntity(World world, int meta)
  {
    return new TileEntityCardboardBox();
  }
View Full Code Here

Examples of mekanism.common.tile.TileEntityCardboardBox

        world.setBlock(x, y, z, Mekanism.CardboardBox, 1, 3);

        isMonitoring = false;

        TileEntityCardboardBox tileEntity = (TileEntityCardboardBox)world.getTileEntity(x, y, z);

        if(tileEntity != null)
        {
          tileEntity.storedData = data;
        }
View Full Code Here

Examples of mekanism.common.tile.TileEntityCardboardBox

    boolean place = super.placeBlockAt(stack, player, world, x, y, z, side, hitX, hitY, hitZ, metadata);

    if(place)
    {
      TileEntityCardboardBox tileEntity = (TileEntityCardboardBox)world.getTileEntity(x, y, z);

      if(tileEntity != null)
      {
        tileEntity.storedData = getBlockData(stack);
      }
View Full Code Here

Examples of mekanism.common.tile.TileEntityCardboardBox

  }

  @Override
  public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z)
  {
    TileEntityCardboardBox tileEntity = (TileEntityCardboardBox)world.getTileEntity(x, y, z);

    ItemStack itemStack = new ItemStack(Mekanism.CardboardBox, 1, world.getBlockMetadata(x, y, z));

    if(itemStack.getItemDamage() == 1)
    {
View Full Code Here

Examples of net.mcft.copy.betterstorage.tile.entity.TileEntityCardboardBox

  }
 
  @Override
  @SideOnly(Side.CLIENT)
  public int colorMultiplier(IBlockAccess world, int x, int y, int z) {
    TileEntityCardboardBox box = WorldUtils.get(world, x, y, z, TileEntityCardboardBox.class);
    return (((box != null) && (box.color >= 0)) ? box.color : 0x705030);
  }
View Full Code Here

Examples of net.mcft.copy.betterstorage.tile.entity.TileEntityCardboardBox

  @Override
  public int quantityDropped(Random rand) { return 0; }
 
  @Override
  public TileEntity createTileEntity(World world, int metadata) {
    return new TileEntityCardboardBox();
  }
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.