Guest User

Untitled

a guest
Oct 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int i, float a, float b, float c) {
  2. if( !(player instanceof EntityPlayerMP) )
  3. ModLoader.openGUI((EntityPlayerSP)player, new YourGUI([constructor args]));
  4. else
  5. ModLoader.serverOpenWindow((EntityPlayerMP)player, new YourGUIsContainer([constructor args]), YourGUIsID, x, y, z );
  6. return true;
  7. }
Add Comment
Please, Sign In to add comment