Package buildcraft.api.events

Examples of buildcraft.api.events.BlockPlacedDownEvent



  @Override
  public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entity, ItemStack stack) {
    super.onBlockPlacedBy(world, x, y, z, entity, stack);
    FMLCommonHandler.instance().bus().post(new BlockPlacedDownEvent((EntityPlayer) entity, world.getBlock(x, y, z), world.getBlockMetadata(x, y, z), x, y, z));
    TileEntity tile = world.getTileEntity(x, y, z);
    if (tile instanceof TileBuildCraft) {
      ((TileBuildCraft) tile).onBlockPlacedBy(entity, stack);
    }
  }
View Full Code Here

TOP

Related Classes of buildcraft.api.events.BlockPlacedDownEvent

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.