public class TerminalButtonSort<T> extends java.lang.Object implements ITerminalButton<TerminalStorageTabIngredientComponentClient<T,?>,ITerminalStorageTabCommon,ButtonSort>
IIngredientInstanceSorter.| Constructor and Description |
|---|
TerminalButtonSort(IIngredientInstanceSorter<T> instanceSorter,
TerminalStorageState state,
ITerminalStorageTabClient<?> clientTab) |
| Modifier and Type | Method and Description |
|---|---|
ButtonSort |
createButton(int x,
int y)
Create a gui button for displaying this button.
|
java.util.Comparator<T> |
getEffectiveSorter() |
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() |
void |
onClick(TerminalStorageTabIngredientComponentClient<T,?> clientTab,
ITerminalStorageTabCommon commonTab,
ButtonSort guiButton,
int channel,
int mouseButton)
Callback for when the gui button has been clicked.
|
protected void |
updateSorter() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetX, getY, isInLeftColumnpublic TerminalButtonSort(IIngredientInstanceSorter<T> instanceSorter, TerminalStorageState state, ITerminalStorageTabClient<?> clientTab)
public ButtonSort createButton(int x, int y)
ITerminalButtoncreateButton in interface ITerminalButton<TerminalStorageTabIngredientComponentClient<T,?>,ITerminalStorageTabCommon,ButtonSort>x - The button X position.y - The button Y position.public void onClick(TerminalStorageTabIngredientComponentClient<T,?> clientTab, ITerminalStorageTabCommon commonTab, ButtonSort guiButton, int channel, int mouseButton)
ITerminalButtononClick in interface ITerminalButton<TerminalStorageTabIngredientComponentClient<T,?>,ITerminalStorageTabCommon,ButtonSort>clientTab - The client tab in which the button was clicked.commonTab - 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.protected void updateSorter()
public java.lang.String getTranslationKey()
getTranslationKey in interface ITerminalButton<TerminalStorageTabIngredientComponentClient<T,?>,ITerminalStorageTabCommon,ButtonSort>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,?>,ITerminalStorageTabCommon,ButtonSort>player - The player that is requesting the tooltip.tooltipFlag - The tooltip flag.lines - The tooltip lines.@Nullable public java.util.Comparator<T> getEffectiveSorter()