mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Removed a bunch of needless entries from the Tutorial. Added a BotaniaTutorialStartEvent to the API.
This commit is contained in:
1 parent
5758385e87
commit
4335615b49
2 files changed
+34
-9
No files matched your search
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* 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 @ [04/12/2015, 18:29:56 (GMT)]
|
||||
*/
|
||||
package vazkii.botania.api.lexicon;
|
||||
|
||||
import java.util.Queue;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Event;
|
||||
|
||||
/**
|
||||
* Fired when the Lexica Botania's tutorial is started. You can add your
|
||||
* own entries to the tutorial here. Please use this responsibly.
|
||||
*/
|
||||
public class BotaniaTutorialStartEvent extends Event {
|
||||
|
||||
public final Queue<LexiconEntry> tutorial;
|
||||
|
||||
public BotaniaTutorialStartEvent(Queue<LexiconEntry> tutorial) {
|
||||
this.tutorial = tutorial;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -32,11 +32,13 @@ import net.minecraft.util.ChatAllowedCharacters;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
import org.lwjgl.input.Keyboard;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.lexicon.BotaniaTutorialStartEvent;
|
||||
import vazkii.botania.api.lexicon.LexiconCategory;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.client.core.handler.ClientTickHandler;
|
||||
@@ -507,6 +509,7 @@ public class GuiLexicon extends GuiScreen {
|
||||
|
||||
public static void startTutorial() {
|
||||
tutorial.clear();
|
||||
|
||||
tutorial.add(LexiconData.lexicon);
|
||||
tutorial.add(LexiconData.flowers);
|
||||
tutorial.add(LexiconData.apothecary);
|
||||
@@ -518,17 +521,10 @@ public class GuiLexicon extends GuiScreen {
|
||||
tutorial.add(LexiconData.generatingIntro);
|
||||
tutorial.add(LexiconData.passiveGen);
|
||||
tutorial.add(LexiconData.daybloom);
|
||||
tutorial.add(LexiconData.endoflame);
|
||||
tutorial.add(LexiconData.openCrate);
|
||||
tutorial.add(LexiconData.functionalIntro);
|
||||
tutorial.add(LexiconData.runicAltar);
|
||||
tutorial.add(LexiconData.baublesIntro);
|
||||
tutorial.add(LexiconData.manaTablet);
|
||||
tutorial.add(LexiconData.manasteelGear);
|
||||
tutorial.add(LexiconData.dispenserTweaks);
|
||||
if(SheddingHandler.hasShedding())
|
||||
tutorial.add(LexiconData.shedding);
|
||||
tutorial.add(LexiconData.challenges);
|
||||
|
||||
MinecraftForge.EVENT_BUS.post(new BotaniaTutorialStartEvent(tutorial));
|
||||
}
|
||||
|
||||
public final void putTutorialArrow() {
|
||||
|
||||
Reference in new issue
Block a user