2016-11-10 19:50:01 +01:00
|
|
|
/*
|
|
|
|
* This file ("BookletPage.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://ellpeck.de/actaddlicense
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
|
|
|
* © 2015-2016 Ellpeck
|
|
|
|
*/
|
|
|
|
|
|
|
|
package de.ellpeck.actuallyadditions.api.booklet;
|
|
|
|
|
2016-11-10 21:07:15 +01:00
|
|
|
import de.ellpeck.actuallyadditions.api.booklet.internal.GuiBookletBase;
|
|
|
|
import net.minecraft.client.gui.GuiButton;
|
2016-11-10 19:50:01 +01:00
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraftforge.fluids.FluidStack;
|
2016-11-10 21:07:15 +01:00
|
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
2016-11-10 19:50:01 +01:00
|
|
|
|
2016-11-10 23:37:40 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
2016-11-10 19:50:01 +01:00
|
|
|
public interface IBookletPage{
|
|
|
|
|
2016-11-11 18:55:32 +01:00
|
|
|
void getItemStacksForPage(List<ItemStack> list);
|
2016-11-10 19:50:01 +01:00
|
|
|
|
2016-11-11 18:55:32 +01:00
|
|
|
void getFluidStacksForPage(List<FluidStack> list);
|
2016-11-10 19:50:01 +01:00
|
|
|
|
|
|
|
IBookletChapter getChapter();
|
|
|
|
|
|
|
|
void setChapter(IBookletChapter chapter);
|
|
|
|
|
|
|
|
String getInfoText();
|
2016-11-10 21:07:15 +01:00
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
void mouseClicked(GuiBookletBase gui, int mouseX, int mouseY, int mouseButton);
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
void mouseReleased(GuiBookletBase gui, int mouseX, int mouseY, int state);
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
void mouseClickMove(GuiBookletBase gui, int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick);
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
void actionPerformed(GuiBookletBase gui, GuiButton button);
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
2016-11-10 23:37:40 +01:00
|
|
|
void initGui(GuiBookletBase gui, int startX, int startY);
|
2016-11-10 21:07:15 +01:00
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
2016-11-11 18:55:32 +01:00
|
|
|
void updateScreen(GuiBookletBase gui, int startX, int startY, int pageTimer);
|
2016-11-10 21:07:15 +01:00
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
2016-11-10 22:06:58 +01:00
|
|
|
void drawScreenPre(GuiBookletBase gui, int startX, int startY, int mouseX, int mouseY, float partialTicks);
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
void drawScreenPost(GuiBookletBase gui, int startX, int startY, int mouseX, int mouseY, float partialTicks);
|
|
|
|
|
|
|
|
boolean shouldBeOnLeftSide();
|
2016-11-12 13:54:49 +01:00
|
|
|
|
|
|
|
String getIdentifier();
|
2016-11-12 22:55:07 +01:00
|
|
|
|
2016-11-17 17:36:00 +01:00
|
|
|
String getWebLink();
|
|
|
|
|
2016-11-12 22:55:07 +01:00
|
|
|
IBookletPage addTextReplacement(String key, String value);
|
|
|
|
|
|
|
|
IBookletPage addTextReplacement(String key, float value);
|
2016-11-12 23:10:41 +01:00
|
|
|
|
|
|
|
IBookletPage addTextReplacement(String key, int value);
|
2016-11-22 22:54:35 +01:00
|
|
|
|
|
|
|
int getSortingPriority();
|
2016-11-10 19:50:01 +01:00
|
|
|
}
|