コード例 #1
0
  public boolean onBlockActivated(
      World world,
      int x,
      int y,
      int z,
      EntityPlayer player,
      int side,
      float hitX,
      float hitY,
      float hitZ) {
    if (!world.isRemote) {
      FMLNetworkHandler.openGui(player, Plague.instance, 8, world, x, y, z);
    }

    return true;
  }
コード例 #2
0
  // temp
  @Override
  public boolean onBlockActivated(
      World world,
      int x,
      int y,
      int z,
      EntityPlayer player,
      int par6,
      float par7,
      float par8,
      float par9) {
    if (world.isRemote) {
      return true;
    }

    FMLNetworkHandler.openGui(
        player, Watercraft.instance, GuiHandler.FREEZER_GUI_ID, world, x, y, z);
    return true;
  }