2016-11-10 21:07:15 +01:00
|
|
|
/*
|
|
|
|
* This file ("GuiBookletBase.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
|
2016-11-10 21:07:15 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
package de.ellpeck.actuallyadditions.api.booklet.internal;
|
|
|
|
|
2020-09-07 16:24:04 +02:00
|
|
|
import net.minecraft.client.gui.screen.Screen;
|
|
|
|
import net.minecraft.client.gui.widget.button.Button;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.util.text.ITextComponent;
|
|
|
|
import net.minecraft.util.text.StringTextComponent;
|
|
|
|
|
2019-05-02 09:10:29 +02:00
|
|
|
import java.util.List;
|
|
|
|
|
2020-09-07 16:24:04 +02:00
|
|
|
public abstract class GuiBookletBase extends Screen {
|
2016-11-10 21:07:15 +01:00
|
|
|
|
2020-09-07 16:24:04 +02:00
|
|
|
protected GuiBookletBase(ITextComponent titleIn) {
|
|
|
|
super(new StringTextComponent(""));
|
|
|
|
}
|
2016-11-10 21:07:15 +01:00
|
|
|
|
|
|
|
public abstract void renderScaledAsciiString(String text, int x, int y, int color, boolean shadow, float scale);
|
|
|
|
|
|
|
|
public abstract void renderSplitScaledAsciiString(String text, int x, int y, int color, boolean shadow, float scale, int length);
|
|
|
|
|
2020-09-07 16:24:04 +02:00
|
|
|
public abstract List<Button> getButtonList();
|
2016-11-10 22:06:58 +01:00
|
|
|
|
|
|
|
public abstract int getGuiLeft();
|
|
|
|
|
|
|
|
public abstract int getGuiTop();
|
|
|
|
|
|
|
|
public abstract int getSizeX();
|
|
|
|
|
|
|
|
public abstract int getSizeY();
|
2016-11-10 23:37:40 +01:00
|
|
|
|
2016-11-11 18:55:32 +01:00
|
|
|
public abstract void addOrModifyItemRenderer(ItemStack renderedStack, int x, int y, float scale, boolean shouldTryTransfer);
|
2016-12-07 15:25:04 +01:00
|
|
|
|
|
|
|
public abstract float getSmallFontSize();
|
|
|
|
|
|
|
|
public abstract float getMediumFontSize();
|
|
|
|
|
|
|
|
public abstract float getLargeFontSize();
|
2016-11-10 21:07:15 +01:00
|
|
|
}
|