mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-24 05:54:49 +00:00
34 lines
1.1 KiB
Java
34 lines
1.1 KiB
Java
/**
|
|
* This class was created by <Vazkii>. It's distributed as
|
|
* part of the Botania Mod. Get the Source Code in github:
|
|
* https://github.com/Vazkii/Botania
|
|
*
|
|
* Botania is Open Source and distributed under the
|
|
* Botania License: http://botaniamod.net/license.php
|
|
*
|
|
* File Created @ [Apr 3, 2015, 5:55:36 PM (GMT)]
|
|
*/
|
|
package vazkii.botania.client.gui;
|
|
|
|
import net.minecraft.client.gui.GuiButton;
|
|
import net.minecraft.client.gui.GuiScreen;
|
|
import net.minecraft.client.gui.achievement.GuiAchievements;
|
|
import net.minecraft.stats.StatFileWriter;
|
|
import vazkii.botania.common.achievement.ModAchievements;
|
|
import net.minecraftforge.fml.relauncher.ReflectionHelper;
|
|
|
|
public class GuiAchievementsHacky extends GuiAchievements {
|
|
|
|
public GuiAchievementsHacky(GuiScreen p_i45026_1_, StatFileWriter p_i45026_2_) {
|
|
super(p_i45026_1_, p_i45026_2_);
|
|
ReflectionHelper.setPrivateValue(GuiAchievements.class, this, ModAchievements.pageIndex, "currentPage");
|
|
}
|
|
|
|
@Override
|
|
public void initGui() {
|
|
super.initGui();
|
|
((GuiButton) buttonList.get(1)).displayString = ModAchievements.botaniaPage.getName();
|
|
}
|
|
|
|
}
|