Package mekanism.common.tile

Examples of mekanism.common.tile.TileEntityBoundingBlock


  @Override
  public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer entityplayer, int facing, float playerX, float playerY, float playerZ)
  {
    try {
      TileEntityBoundingBlock tileEntity = (TileEntityBoundingBlock)world.getTileEntity(x, y, z);
      return world.getBlock(tileEntity.mainX, tileEntity.mainY, tileEntity.mainZ).onBlockActivated(world, tileEntity.mainX, tileEntity.mainY, tileEntity.mainZ, entityplayer, facing, playerX, playerY, playerZ);
    } catch(Exception e) {
      return false;
    }
  }
View Full Code Here


  @Override
  public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z)
  {
    try {
      TileEntityBoundingBlock tileEntity = (TileEntityBoundingBlock)world.getTileEntity(x, y, z);
      return world.getBlock(tileEntity.mainX, tileEntity.mainY, tileEntity.mainZ).getPickBlock(target, world, tileEntity.mainX, tileEntity.mainY, tileEntity.mainZ);
    } catch(Exception e) {
      return null;
    }
  }
View Full Code Here

  @Override
  public boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z, boolean willHarvest)
  {
    try {
      TileEntityBoundingBlock tileEntity = (TileEntityBoundingBlock)world.getTileEntity(x, y, z);
      return world.getBlock(tileEntity.mainX, tileEntity.mainY, tileEntity.mainZ).removedByPlayer(world, player, tileEntity.mainX, tileEntity.mainY, tileEntity.mainZ, willHarvest);
    } catch(Exception e) {
      return false;
    }
  }
View Full Code Here

  @Override
  public void onNeighborBlockChange(World world, int x, int y, int z, Block block)
  {
    try {
      TileEntityBoundingBlock tileEntity = (TileEntityBoundingBlock)world.getTileEntity(x, y, z);
      tileEntity.onNeighborChange(block);
      world.getBlock(tileEntity.mainX, tileEntity.mainY, tileEntity.mainZ).onNeighborBlockChange(world, tileEntity.mainX, tileEntity.mainY, tileEntity.mainZ, this);
    } catch(Exception e) {}
  }
View Full Code Here

  @Override
  public TileEntity createTileEntity(World world, int metadata)
  {
    if(metadata == 0)
    {
      return new TileEntityBoundingBlock();
    }
    else if(metadata == 1)
    {
      return new TileEntityAdvancedBoundingBlock();
    }
View Full Code Here

TOP

Related Classes of mekanism.common.tile.TileEntityBoundingBlock

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.