mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-05-06 02:47:05 +02:00
64 lines
1.8 KiB
Java
64 lines
1.8 KiB
Java
package de.ellpeck.actuallyadditions.api.booklet;
|
|
|
|
import de.ellpeck.actuallyadditions.api.booklet.internal.GuiBookletBase;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraftforge.api.distmarker.Dist;
|
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
|
import net.minecraftforge.fluids.FluidStack;
|
|
|
|
import java.awt.*;
|
|
import java.util.List;
|
|
|
|
public interface IBookletPage {
|
|
|
|
void getItemStacksForPage(List<ItemStack> list);
|
|
|
|
void getFluidStacksForPage(List<FluidStack> list);
|
|
|
|
IBookletChapter getChapter();
|
|
|
|
void setChapter(IBookletChapter chapter);
|
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
String getInfoText();
|
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
void mouseClicked(GuiBookletBase gui, int mouseX, int mouseY, int mouseButton);
|
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
void mouseReleased(GuiBookletBase gui, int mouseX, int mouseY, int state);
|
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
void mouseClickMove(GuiBookletBase gui, int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick);
|
|
|
|
// todo: this won't be needed anymore
|
|
@OnlyIn(Dist.CLIENT)
|
|
void actionPerformed(GuiBookletBase gui, Button button);
|
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
void initGui(GuiBookletBase gui, int startX, int startY);
|
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
void updateScreen(GuiBookletBase gui, int startX, int startY, int pageTimer);
|
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
void drawScreenPre(GuiBookletBase gui, int startX, int startY, int mouseX, int mouseY, float partialTicks);
|
|
|
|
@OnlyIn(Dist.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);
|
|
|
|
int getSortingPriority();
|
|
}
|