public class RecipeTransferButton extends GuiIconButtonSmall
NO_TOOLTIP, onPress, onTooltip
Constructor and Description |
---|
RecipeTransferButton(int xPos,
int yPos,
int width,
int height,
IDrawable icon,
RecipeLayout<?> recipeLayout) |
Modifier and Type | Method and Description |
---|---|
void |
drawToolTip(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY) |
void |
init(RecipeTransferManager recipeTransferManager,
net.minecraft.inventory.container.Container container,
net.minecraft.entity.player.PlayerEntity player) |
boolean |
isMouseOver(double mouseX,
double mouseY) |
void |
onRelease(double mouseX,
double mouseY) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks) |
void |
setOnClickHandler(IOnClickHandler onClickHandler) |
getArea
onPress, renderButton, renderToolTip
keyPressed, onClick
changeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, playDownSound, queueNarration, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
public RecipeTransferButton(int xPos, int yPos, int width, int height, IDrawable icon, RecipeLayout<?> recipeLayout)
public void init(RecipeTransferManager recipeTransferManager, @Nullable net.minecraft.inventory.container.Container container, net.minecraft.entity.player.PlayerEntity player)
public void drawToolTip(com.mojang.blaze3d.matrix.MatrixStack matrixStack, int mouseX, int mouseY)
public boolean isMouseOver(double mouseX, double mouseY)
isMouseOver
in interface net.minecraft.client.gui.IGuiEventListener
isMouseOver
in class net.minecraft.client.gui.widget.Widget
public void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class GuiIconButtonSmall
public void setOnClickHandler(IOnClickHandler onClickHandler)
public void onRelease(double mouseX, double mouseY)
onRelease
in class net.minecraft.client.gui.widget.Widget