public abstract class ButtonEntry<T extends net.minecraft.client.gui.GuiButton> extends AbstractEntry
| Modifier and Type | Field and Description |
|---|---|
protected T |
valueButton |
beforeValue, mc, metadata, type| Constructor and Description |
|---|
ButtonEntry(ConfigElementMetadata metadata,
java.lang.reflect.Type type,
java.lang.Object beforeValue) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createButton() |
protected static net.minecraftforge.fml.client.config.GuiButtonExt |
createDefaultButton(java.lang.String text) |
void |
drawEntry(int index,
int x,
int y,
int width,
int height,
int mouseX,
int mouseY,
boolean isSelected,
float partialTicks) |
void |
drawToolTip(int mouseX,
int mouseY) |
T |
getButton() |
boolean |
isValueSavable() |
void |
keyTyped(char eventChar,
int eventKey) |
void |
mouseClicked(int x,
int y,
int mouseEvent) |
boolean |
mousePressed(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY) |
void |
mouseReleased(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY) |
void |
updateCursorCounter() |
protected abstract boolean |
valueButtonLeftClicked() |
protected boolean |
valueButtonPressed(int mouseEvent) |
protected boolean |
valueButtonRightClicked() |
create, create, enabled, getValue, isChanged, isDefault, saveChanges, setToDefault, setValue, undoChangesprotected final T extends net.minecraft.client.gui.GuiButton valueButton
public ButtonEntry(ConfigElementMetadata metadata, java.lang.reflect.Type type, java.lang.Object beforeValue)
protected abstract T createButton()
protected static net.minecraftforge.fml.client.config.GuiButtonExt createDefaultButton(java.lang.String text)
public T getButton()
public void drawEntry(int index,
int x,
int y,
int width,
int height,
int mouseX,
int mouseY,
boolean isSelected,
float partialTicks)
drawEntry in class AbstractEntrypublic void drawToolTip(int mouseX,
int mouseY)
drawToolTip in class AbstractEntrypublic boolean mousePressed(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY)
mousePressed in class AbstractEntryprotected boolean valueButtonPressed(int mouseEvent)
protected abstract boolean valueButtonLeftClicked()
protected boolean valueButtonRightClicked()
public void mouseReleased(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY)
mouseReleased in class AbstractEntrypublic void mouseClicked(int x,
int y,
int mouseEvent)
mouseClicked in class AbstractEntrypublic void keyTyped(char eventChar,
int eventKey)
keyTyped in class AbstractEntrypublic void updateCursorCounter()
updateCursorCounter in class AbstractEntrypublic boolean isValueSavable()
isValueSavable in class AbstractEntry