Class WidgetTab
java.lang.Object
org.cyclops.evilcraft.core.client.gui.container.WidgetTab
- Direct Known Subclasses:
WidgetUpgradeTab
Simple tab gui element.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWidgetTab(int width, int height, int posX, int posY, int u, int v, net.minecraft.client.gui.screens.inventory.AbstractContainerScreen gui) -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawBackground(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y) Draw the tab.protected abstract net.minecraft.resources.ResourceLocation
-
Field Details
-
posX
protected int posX -
posY
protected int posY -
gui
protected net.minecraft.client.gui.screens.inventory.AbstractContainerScreen gui
-
-
Constructor Details
-
WidgetTab
public WidgetTab(int width, int height, int posX, int posY, int u, int v, net.minecraft.client.gui.screens.inventory.AbstractContainerScreen gui)
-
-
Method Details
-
getResourceLocation
protected abstract net.minecraft.resources.ResourceLocation getResourceLocation() -
drawBackground
public void drawBackground(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y) Draw the tab.- Parameters:
matrixStack- The matrix stack.x- Origin X.y- Origin Y.
-