ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/api/booklet/IBookletPage.java

66 lines
2 KiB
Java
Raw Normal View History

/*
* 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;
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;
import java.util.List;
public interface IBookletPage{
2016-11-11 18:55:32 +01:00
void getItemStacksForPage(List<ItemStack> list);
2016-11-11 18:55:32 +01:00
void getFluidStacksForPage(List<FluidStack> list);
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)
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();
String getIdentifier();
IBookletPage addTextReplacement(String key, String value);
IBookletPage addTextReplacement(String key, float value);
}