mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
I is derp
This commit is contained in:
parent
7e0d524b0f
commit
23e23f5836
2 changed files with 2 additions and 5 deletions
|
@ -15,7 +15,6 @@ import codechicken.nei.NEIServerUtils;
|
||||||
import codechicken.nei.PositionedStack;
|
import codechicken.nei.PositionedStack;
|
||||||
import codechicken.nei.recipe.RecipeInfo;
|
import codechicken.nei.recipe.RecipeInfo;
|
||||||
import codechicken.nei.recipe.TemplateRecipeHandler;
|
import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||||
import ellpeck.actuallyadditions.items.InitItems;
|
|
||||||
import ellpeck.actuallyadditions.recipe.HairyBallHandler;
|
import ellpeck.actuallyadditions.recipe.HairyBallHandler;
|
||||||
import ellpeck.actuallyadditions.util.ModUtil;
|
import ellpeck.actuallyadditions.util.ModUtil;
|
||||||
import ellpeck.actuallyadditions.util.StringUtil;
|
import ellpeck.actuallyadditions.util.StringUtil;
|
||||||
|
@ -38,7 +37,8 @@ public class HairyBallRecipeHandler extends TemplateRecipeHandler implements INe
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ItemStack getStackForInfo(){
|
public ItemStack getStackForInfo(){
|
||||||
return new ItemStack(InitItems.itemHairyBall);
|
//TODO Add Hairy Ball Page
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class CachedBallRecipe extends CachedRecipe{
|
public class CachedBallRecipe extends CachedRecipe{
|
||||||
|
|
|
@ -19,8 +19,6 @@ import ellpeck.actuallyadditions.booklet.page.BookletPage;
|
||||||
import ellpeck.actuallyadditions.util.ItemUtil;
|
import ellpeck.actuallyadditions.util.ItemUtil;
|
||||||
import ellpeck.actuallyadditions.util.StringUtil;
|
import ellpeck.actuallyadditions.util.StringUtil;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.audio.PositionedSoundRecord;
|
|
||||||
import net.minecraft.util.ResourceLocation;
|
|
||||||
import net.minecraftforge.client.event.GuiScreenEvent;
|
import net.minecraftforge.client.event.GuiScreenEvent;
|
||||||
|
|
||||||
public class NeiScreenEvents{
|
public class NeiScreenEvents{
|
||||||
|
@ -68,7 +66,6 @@ public class NeiScreenEvents{
|
||||||
for(BookletPage page : InitBooklet.pagesWithItemStackData){
|
for(BookletPage page : InitBooklet.pagesWithItemStackData){
|
||||||
if(ItemUtil.contains(page.getItemStacksForPage(), ((INeiRecipeHandler)handler).getStackForInfo(), true)){
|
if(ItemUtil.contains(page.getItemStacksForPage(), ((INeiRecipeHandler)handler).getStackForInfo(), true)){
|
||||||
GuiBooklet book = new GuiBooklet(Minecraft.getMinecraft().currentScreen);
|
GuiBooklet book = new GuiBooklet(Minecraft.getMinecraft().currentScreen);
|
||||||
Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F));
|
|
||||||
Minecraft.getMinecraft().displayGuiScreen(book);
|
Minecraft.getMinecraft().displayGuiScreen(book);
|
||||||
book.openIndexEntry(page.getChapter().entry, InitBooklet.entries.indexOf(page.getChapter().entry)/GuiBooklet.CHAPTER_BUTTONS_AMOUNT+1, true);
|
book.openIndexEntry(page.getChapter().entry, InitBooklet.entries.indexOf(page.getChapter().entry)/GuiBooklet.CHAPTER_BUTTONS_AMOUNT+1, true);
|
||||||
book.openChapter(page.getChapter(), page);
|
book.openChapter(page.getChapter(), page);
|
||||||
|
|
Loading…
Reference in a new issue