Skip to content

Instantly share code, notes, and snippets.

@ruabmbua
Created February 13, 2014 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruabmbua/c0b2ad93d96162b6be70 to your computer and use it in GitHub Desktop.
Save ruabmbua/c0b2ad93d96162b6be70 to your computer and use it in GitHub Desktop.
@Override
public boolean onBlockActivated(World world, int x, int z, int y,
EntityPlayer entity, int face, float p_149727_7_,
float p_149727_8_, float p_149727_9_) {
TileEntity tileEntity = world.getTileEntity(x, z, y);
if(tileEntity == null || entity.isSneaking())
return false;
entity.openGui(RuabmMod.ruabmMod, 0, world, x, z, y);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment