2015-08-29 14:33:25 +02:00
|
|
|
/*
|
|
|
|
* This file ("GuiAAAchievements.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2015-11-02 20:55:19 +01:00
|
|
|
* © 2015 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2015-08-29 23:01:13 +02:00
|
|
|
package ellpeck.actuallyadditions.booklet;
|
2015-08-28 21:17:09 +02:00
|
|
|
|
|
|
|
import cpw.mods.fml.relauncher.ReflectionHelper;
|
|
|
|
import ellpeck.actuallyadditions.achievement.InitAchievements;
|
|
|
|
import net.minecraft.client.gui.GuiButton;
|
|
|
|
import net.minecraft.client.gui.GuiScreen;
|
|
|
|
import net.minecraft.client.gui.achievement.GuiAchievements;
|
|
|
|
import net.minecraft.stats.StatFileWriter;
|
|
|
|
|
2015-09-30 19:18:13 +02:00
|
|
|
/**
|
|
|
|
* (Partially excerpted from Botania by Vazkii with permission, thanks!)
|
|
|
|
*/
|
2015-08-28 21:17:09 +02:00
|
|
|
public class GuiAAAchievements extends GuiAchievements{
|
|
|
|
|
|
|
|
public GuiAAAchievements(GuiScreen screen, StatFileWriter writer){
|
|
|
|
super(screen, writer);
|
2015-09-30 19:18:13 +02:00
|
|
|
ReflectionHelper.setPrivateValue(GuiAchievements.class, this, InitAchievements.pageNumber, 21);
|
2015-08-28 21:17:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void initGui(){
|
|
|
|
super.initGui();
|
|
|
|
((GuiButton)buttonList.get(1)).displayString = InitAchievements.theAchievementPage.getName();
|
|
|
|
}
|
|
|
|
}
|