public class TerminalButtonItemStackCraftingGridAutoRefill<T> extends java.lang.Object implements ITerminalButton<TerminalStorageTabIngredientComponentClient<T,?>,TerminalStorageTabIngredientComponentItemStackCraftingCommon,org.cyclops.cyclopscore.client.gui.component.button.ButtonImage>
| Modifier and Type | Class and Description |
|---|---|
static class |
TerminalButtonItemStackCraftingGridAutoRefill.AutoRefillType |
| Constructor and Description |
|---|
TerminalButtonItemStackCraftingGridAutoRefill(TerminalStorageState state,
ITerminalStorageTabClient<?> clientTab) |
| Modifier and Type | Method and Description |
|---|---|
org.cyclops.cyclopscore.client.gui.component.button.ButtonImage |
createButton(int x,
int y)
Create a gui button for displaying this button.
|
void |
getTooltip(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.client.util.ITooltipFlag tooltipFlag,
java.util.List<net.minecraft.util.text.ITextComponent> lines)
Get the tooltip of this sorter.
|
java.lang.String |
getTranslationKey() |
protected void |
notifyServer(TerminalStorageTabIngredientComponentClient<T,?> clientTab) |
void |
onClick(TerminalStorageTabIngredientComponentClient<T,?> clientTab,
TerminalStorageTabIngredientComponentItemStackCraftingCommon commomTab,
org.cyclops.cyclopscore.client.gui.component.button.ButtonImage guiButton,
int channel,
int mouseButton)
Callback for when the gui button has been clicked.
|
void |
reloadFromState()
Reload the button's visual representation based on the container's state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetX, getY, isInLeftColumnpublic TerminalButtonItemStackCraftingGridAutoRefill(TerminalStorageState state, ITerminalStorageTabClient<?> clientTab)
public void reloadFromState()
ITerminalButtonreloadFromState in interface ITerminalButton<TerminalStorageTabIngredientComponentClient<T,?>,TerminalStorageTabIngredientComponentItemStackCraftingCommon,org.cyclops.cyclopscore.client.gui.component.button.ButtonImage>protected void notifyServer(TerminalStorageTabIngredientComponentClient<T,?> clientTab)
public org.cyclops.cyclopscore.client.gui.component.button.ButtonImage createButton(int x,
int y)
ITerminalButtoncreateButton in interface ITerminalButton<TerminalStorageTabIngredientComponentClient<T,?>,TerminalStorageTabIngredientComponentItemStackCraftingCommon,org.cyclops.cyclopscore.client.gui.component.button.ButtonImage>x - The button X position.y - The button Y position.public void onClick(TerminalStorageTabIngredientComponentClient<T,?> clientTab, TerminalStorageTabIngredientComponentItemStackCraftingCommon commomTab, org.cyclops.cyclopscore.client.gui.component.button.ButtonImage guiButton, int channel, int mouseButton)
ITerminalButtononClick in interface ITerminalButton<TerminalStorageTabIngredientComponentClient<T,?>,TerminalStorageTabIngredientComponentItemStackCraftingCommon,org.cyclops.cyclopscore.client.gui.component.button.ButtonImage>clientTab - The client tab in which the button was clicked.commomTab - The common tab in which the button was clicked.guiButton - The gui button.channel - The active channel.mouseButton - The mouse button that was used to click with.public java.lang.String getTranslationKey()
getTranslationKey in interface ITerminalButton<TerminalStorageTabIngredientComponentClient<T,?>,TerminalStorageTabIngredientComponentItemStackCraftingCommon,org.cyclops.cyclopscore.client.gui.component.button.ButtonImage>public void getTooltip(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.client.util.ITooltipFlag tooltipFlag,
java.util.List<net.minecraft.util.text.ITextComponent> lines)
ITerminalButtongetTooltip in interface ITerminalButton<TerminalStorageTabIngredientComponentClient<T,?>,TerminalStorageTabIngredientComponentItemStackCraftingCommon,org.cyclops.cyclopscore.client.gui.component.button.ButtonImage>player - The player that is requesting the tooltip.tooltipFlag - The tooltip flag.lines - The tooltip lines.