public class SlotsScreenAddon<T extends IComponentHarness> extends BasicScreenAddon
| Constructor and Description |
|---|
SlotsScreenAddon(InventoryComponent<T> handler) |
| Modifier and Type | Method and Description |
|---|---|
static void |
drawAsset(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int handlerPosX,
int handlerPosY,
int guiX,
int guiY,
int slots,
java.util.function.Function<java.lang.Integer,org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer>> positionFunction,
java.util.function.Function<java.lang.Integer,net.minecraft.item.ItemStack> slotToStackRenderMap,
boolean drawColor,
java.util.function.Function<java.lang.Integer,java.awt.Color> slotToColorRenderMap,
java.util.function.Predicate<java.lang.Integer> slotEnabled) |
void |
drawBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int guiX,
int guiY,
int mouseX,
int mouseY,
float partialTicks)
Draws the component in the background layer
|
void |
drawForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int guiX,
int guiY,
int mouseX,
int mouseY)
Draws the component in the foreground layer
|
int |
getXSize() |
int |
getYSize() |
getPosX, getPosY, isInside, setPosX, setPosYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTooltipLines, init, isBackground, keyPressedpublic SlotsScreenAddon(InventoryComponent<T> handler)
public int getXSize()
getXSize in class BasicScreenAddonpublic int getYSize()
getYSize in class BasicScreenAddonpublic static void drawAsset(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int handlerPosX,
int handlerPosY,
int guiX,
int guiY,
int slots,
java.util.function.Function<java.lang.Integer,org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer>> positionFunction,
java.util.function.Function<java.lang.Integer,net.minecraft.item.ItemStack> slotToStackRenderMap,
boolean drawColor,
java.util.function.Function<java.lang.Integer,java.awt.Color> slotToColorRenderMap,
java.util.function.Predicate<java.lang.Integer> slotEnabled)
public void drawBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int guiX,
int guiY,
int mouseX,
int mouseY,
float partialTicks)
IScreenAddonscreen - The current open screenprovider - The current asset provider used in the GUIguiX - The gui X in the top left cornerguiY - The gui Y in the top left cornermouseX - The current mouse XmouseY - The current mouse YpartialTicks - Partial tickspublic void drawForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int guiX,
int guiY,
int mouseX,
int mouseY)
IScreenAddonscreen - The current open screenprovider - The current asset provider used in the GUIguiX - The gui X in the top left cornerguiY - The gui Y in the top left cornermouseX - The current mouse XmouseY - The current mouse Y