Package net.mcft.copy.betterstorage.tile.entity

Examples of net.mcft.copy.betterstorage.tile.entity.TileEntityLockableDoor.onBlockActivated()


  @Override
  public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
    if (world.getBlockMetadata(x, y, z) > 0) y -= 1;
    TileEntityLockableDoor te = WorldUtils.get(world, x, y, z, TileEntityLockableDoor.class);
    return te.onBlockActivated(world, x, y, z, player, side, hitX, hitY, hitZ);
  }
 
  @Override
  public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {
    if (world.getBlockMetadata(x, y, z) > 0) y -= 1;
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.