ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/api/internal/IBookletGui.java

52 lines
1.5 KiB
Java
Raw Normal View History

2016-01-05 14:57:50 +01:00
/*
2016-05-16 22:52:27 +02:00
* This file ("IBookletGui.java") is part of the Actually Additions mod for Minecraft.
2016-01-05 14:57:50 +01:00
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-05-16 22:52:27 +02:00
* http://ellpeck.de/actaddlicense
2016-01-05 14:57:50 +01:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2016-05-16 22:54:42 +02:00
* © 2015-2016 Ellpeck
2016-01-05 14:57:50 +01:00
*/
package de.ellpeck.actuallyadditions.api.internal;
import de.ellpeck.actuallyadditions.api.booklet.BookletPage;
2016-06-12 13:39:26 +02:00
import net.minecraft.client.gui.GuiButton;
2016-01-05 14:57:50 +01:00
import net.minecraft.item.ItemStack;
2016-01-07 18:20:59 +01:00
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
2016-01-05 14:57:50 +01:00
2016-06-12 13:39:26 +02:00
import java.util.List;
2016-01-05 14:57:50 +01:00
/**
* This is a helper interface for BookletPage
* This is not supposed to be implemented.
* <p>
* Can be cast to GuiScreen.
*/
public interface IBookletGui{
/**
* This method should be used when drawing an ItemStack to a booklet page
* It displays the hoverover text of the item and also contains the "show more info"-text and clickable part
*
2016-06-12 13:39:26 +02:00
* @param renderTransferButton if the "show more info"-text and clickable part should exist
2016-01-05 14:57:50 +01:00
*/
@SideOnly(Side.CLIENT)
void renderTooltipAndTransferButton(BookletPage from, ItemStack stack, int x, int y, boolean renderTransferButton, boolean mousePressed);
int getXSize();
int getYSize();
int getGuiLeft();
int getGuiTop();
void drawRect(int startX, int startY, int u, int v, int xSize, int ySize);
2016-01-05 14:57:50 +01:00
2016-05-14 13:51:18 +02:00
IEntrySet getCurrentEntrySet();
2016-06-12 13:39:26 +02:00
List<GuiButton> getButtonList();
2016-01-05 14:57:50 +01:00
}