public class FacingHandlerScreenAddon extends BasicScreenAddon implements IClickable
| Constructor and Description |
|---|
FacingHandlerScreenAddon(SidedComponentManager manager,
IFacingComponent facingHandler,
IAssetType<?> assetType,
net.minecraft.util.Direction blockDirection) |
| Modifier and Type | Method and Description |
|---|---|
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
|
static java.awt.Point |
getPointFromFacing(FacingUtil.Sideness sideness,
java.awt.Point inventory) |
java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltipLines()
A list of strings that will be drawn as a tooltip when `isInside` returns true
|
int |
getXSize() |
int |
getYSize() |
void |
handleClick(net.minecraft.client.gui.screen.Screen screen,
int guiX,
int guiY,
double mouseX,
double mouseY,
int button) |
boolean |
isClicked() |
void |
setClicked(IScreenAddonConsumer information,
java.util.function.Consumer<java.lang.Boolean> disable,
boolean clicked) |
getPosX, getPosY, isInside, setPosX, setPosYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, isBackground, keyPressedpublic FacingHandlerScreenAddon(SidedComponentManager manager, IFacingComponent facingHandler, IAssetType<?> assetType, net.minecraft.util.Direction blockDirection)
public static java.awt.Point getPointFromFacing(FacingUtil.Sideness sideness, java.awt.Point inventory)
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)
IScreenAddondrawBackgroundLayer in interface 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)
IScreenAddondrawForegroundLayer in interface 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 Ypublic java.util.List<net.minecraft.util.text.ITextComponent> getTooltipLines()
IScreenAddongetTooltipLines in interface IScreenAddonpublic int getXSize()
getXSize in class BasicScreenAddonpublic int getYSize()
getYSize in class BasicScreenAddonpublic void handleClick(net.minecraft.client.gui.screen.Screen screen,
int guiX,
int guiY,
double mouseX,
double mouseY,
int button)
handleClick in interface IClickablepublic boolean isClicked()
public void setClicked(IScreenAddonConsumer information, java.util.function.Consumer<java.lang.Boolean> disable, boolean clicked)