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

73 lines
2.2 KiB
Java
Raw Normal View History

/*
2017-01-01 16:23:26 +01:00
* This file ("IBookletPage.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
*
2017-01-01 16:23:26 +01:00
* © 2015-2017 Ellpeck
*/
package de.ellpeck.actuallyadditions.api.booklet;
import java.util.List;
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;
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);
2017-02-18 00:54:58 +01:00
@SideOnly(Side.CLIENT)
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();
String getWebLink();
IBookletPage addTextReplacement(String key, String value);
IBookletPage addTextReplacement(String key, float value);
IBookletPage addTextReplacement(String key, int value);
2016-11-22 22:54:35 +01:00
int getSortingPriority();
}