Package mekanism.common.tile

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


  }

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

        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

    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

  }

  @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

TOP

Related Classes of mekanism.common.tile.TileEntityCardboardBox

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.