Package forestry.core.interfaces

Examples of forestry.core.interfaces.IOwnable


  }

  @Override
  public boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z, boolean willHarvest) {

    IOwnable tile = (IOwnable) world.getTileEntity(x, y, z);
    if (tile == null)
      return world.setBlockToAir(x, y, z);

    if (tile.isOwnable() && !tile.allowsRemoval(player))
      return false;

    if (getDefinition(world, x, y, z).removedByPlayer(world, player, x, y, z))
      return world.setBlockToAir(x, y, z);
    else
View Full Code Here


    setCreativeTab(CreativeTabForestry.tabForestry);
  }

  @Override
  public boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z, boolean willHarvest) {
    IOwnable tile = (IOwnable) world.getTileEntity(x, y, z);
    if (!tile.isOwnable() || tile.allowsRemoval(player))
      return super.removedByPlayer(world, player, x, y, z, willHarvest);
    else
      return false;
  }
View Full Code Here

TOP

Related Classes of forestry.core.interfaces.IOwnable

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.