A B C D F G H I J K L M N O P S T U V W

A

actionPerformed(GuiButton) - Method in class moapi.gui.ModMenu
Mouse has left clicked the given button
addFormatter(ModOption, DisplayStringFormatter) - Method in class moapi.gui.GuiController
Add a new formatter for this specific option's output string
addKeyBinding(String) - Method in class moapi.ModOptions
Adds a character binding which is unique and will not class with any other character binding.
addKeyOption(String) - Method in class moapi.ModOptions
Adds a character binding which is unique and will not class with any other character binding.
addMappedOption(String, Integer[], String[]) - Method in class moapi.ModOptions
Adds a mapped option
addMappedOption(String, int[], String[]) - Method in class moapi.ModOptions
Adds a mapped option
addMod(ModOptions) - Static method in class moapi.ModOptionsAPI
Adds a mods set of options to a menu in the ModOptions menu.
addMod(String) - Static method in class moapi.ModOptionsAPI
Adds a mod by name and attempts to load it
addMultiOption(String, String[]) - Method in class moapi.ModOptions
Add a multiple selector
addOption(ModOption) - Method in class moapi.ModOptions
Add a manually created option to this menu
addOptionFormatter(String, DisplayStringFormatter) - Method in class moapi.ModOptions
Add a formatter to the set of formatters for the given option
addOptionFormatter(ModOption, DisplayStringFormatter) - Method in class moapi.ModOptions
Add a formatter to the set of formatters for the given option
addSlider(String) - Method in class moapi.ModOptions
Add a numeric slider ranging from 0 to 100
addSlider(String, int, int) - Method in class moapi.ModOptions
Add a numeric slider with a range
addSubOptions(ModOptions) - Method in class moapi.ModOptions
Add a sub menu of options
addTextOption(String) - Method in class moapi.ModOptions
Add a text option with infinite max length
addTextOption(String, String) - Method in class moapi.ModOptions
Add a text option with infinite max length with a default value
addTextOption(String, int) - Method in class moapi.ModOptions
Add a text option with infinite max length
addTextOption(String, String, int) - Method in class moapi.ModOptions
Add a text option with infinite max length with a default value
addTextOption(String, String, Integer) - Method in class moapi.ModOptions
Add a text option with infinite max length with a default value
addToggle(String) - Method in class moapi.ModOptions
Add a toggle/boolean selector
addValue(Integer, String) - Method in class moapi.ModMappedOption
Add a single value to this selector
addValue(int, String) - Method in class moapi.ModMappedOption
Add a single value to this selector
addValue(String) - Method in class moapi.ModMultiOption
Add a single value to this selector
altActionPerformed(GuiButton) - Method in class moapi.gui.ModMenu
Button right clicked on the given button
altMousePressed(Minecraft, int, int, boolean) - Method in class moapi.gui.Slider
Alternate Mouse press action to avoid issues with the obfuscator and to allow right click checks

B

Button - Class in moapi.gui
A MOAPI button representation to allow the storage of the option's ID inside
Button(int, int, int, ModOption, GuiController, boolean) - Constructor for class moapi.gui.Button
Create button with the given option
Button(int, int, int, int, int, ModOption, GuiController, boolean) - Constructor for class moapi.gui.Button
Create button with the given option
Button(int, int, int, ModOptions) - Constructor for class moapi.gui.Button
Create button with the given options menu
Button(int, int, int, int, int, ModOptions) - Constructor for class moapi.gui.Button
Create button with the given options menu
buttonPressed(GuiButton, int, int) - Method in class moapi.gui.ModMenu
Check if a button has been pressed
buttonPressed(GuiButton, int, int, boolean) - Method in class moapi.gui.ModMenu
Check if a button has been pressed

C

callback - Variable in class moapi.ModOption
The callback object
changeScreen(GuiScreen) - Method in class moapi.gui.ModMenu
Change the screen and perform cleanup actions
containsSubOptions(String) - Method in class moapi.ModOptions
Check if this mod options has a given sub options menu
curButton - Variable in class moapi.gui.ModMenu
Currently selected button

D

defaultFormat - Static variable in class moapi.gui.StdFormatters
Default formatter for adding the name label
defaultVal - Static variable in class moapi.ModKeyOption
The default Integer
DisplayStringFormatter - Interface in moapi.gui
Used to manipulate a display string for a Mod Option.
dragging - Variable in class moapi.gui.Slider
 
drawButton(Minecraft, int, int) - Method in class moapi.gui.KeyBindingField
Draw a textarea with a label inside and an editable text space
drawButton(Minecraft, int, int) - Method in class moapi.gui.TextField
Draw a textarea with a label inside and an editable text space
drawButton(Minecraft, int, int) - Method in class moapi.gui.TextInputField
Draw a textarea with a label inside and an editable text space at i,j
drawScreen(int, int, float) - Method in class moapi.gui.ModMenu
Draw our slider based options screen

F

fontRenderer - Variable in class moapi.gui.TextInputField
For rendering text

G

getAllMods() - Static method in class moapi.ModOptionsAPI
Gets all mods that have been added
getCallback() - Method in class moapi.ModOption
Returns the callback
getCursorCounter() - Method in class moapi.gui.TextInputField
Get the current cursor counter value
getDisplayString(ModOption) - Method in class moapi.gui.GuiController
Get the display string for an option, which will use a string formatter to decide the output of the text for a global value
getDisplayString(ModOption, boolean) - Method in class moapi.gui.GuiController
Get the display string for an option, which will use a string formatter to decide the output of the text Value is local value if localMode is true, otherwise global
getGlobalValue() - Method in class moapi.ModOption
Returs the global value of this option
getGuiController() - Method in class moapi.ModOptions
Return the GUI controller for this menu
getHighVal() - Method in class moapi.ModSliderOption
Get the highest value of the slider
getHoverState(boolean) - Method in class moapi.gui.Slider
 
getID() - Method in class moapi.gui.Button
Get the ID of the option this button represents
getID() - Method in class moapi.ModOption
Get the ID of this option selector
getID() - Method in class moapi.ModOptions
Return the ID for this menu
getKeyName(Integer) - Static method in class moapi.ModKeyOption
Get a name of a key.
getLocalValue() - Method in class moapi.ModOption
Get the local value
getLowVal() - Method in class moapi.ModSliderOption
Get the lowest value of the slider
getMappedValue(String) - Method in class moapi.ModOptions
Returns a single named mapped option's value
getMaxLength() - Method in class moapi.ModTextOption
Get the maximum value for the input length
getModOptions(String) - Static method in class moapi.ModOptionsAPI
Returns a set of options for a mod by the name of the mod.
getMultiplayerMods() - Static method in class moapi.ModOptionsAPI
Returns all mods that identify as a multiplayer mod
getMultiplayerSubOptions() - Method in class moapi.ModOptions
Get all sets of sub-options for this set for multiplayer return Array of all sub options for this set
getName() - Method in class moapi.gui.Slider
Return the name for this slider button
getName() - Method in class moapi.ModOption
Return the name of this option selector
getName() - Method in class moapi.ModOptions
Return name for this menu
getNextValue(Integer) - Method in class moapi.ModMappedOption
Gets the next value in this selector
getNextValue(int) - Method in class moapi.ModMappedOption
Gets the next value in this selector
getNextValue(String) - Method in class moapi.ModMultiOption
Gets the next value in this selector
getOption() - Method in class moapi.gui.TextInputField
Get the option related to this getText() field
getOption(String) - Method in class moapi.ModOptions
Return a single named option
getOptions() - Method in class moapi.ModOptions
Return all option selectors for this menu
getOptionValue(String) - Method in class moapi.ModOptions
Returns a single named option's internal value
getParent() - Method in class moapi.ModOptions
Get parent for this menu
getSingleplayerMods() - Static method in class moapi.ModOptionsAPI
Returns all mods that identify as a singleplayer mod
getSingleplayerSubOptions() - Method in class moapi.ModOptions
Get all sets of sub-options for this set for singleplayer return Array of all sub options for this set
getSliderValue(String) - Method in class moapi.ModOptions
Returns a single named slider option's value
getStringValue(boolean) - Method in class moapi.ModBooleanOption
Returns the string value of boolean based on this option
getStringValue(Integer) - Method in class moapi.ModMappedOption
Gets the string representation
getStringValue(int) - Method in class moapi.ModMappedOption
Gets the string representation
getSubOption(String) - Method in class moapi.ModOptions
Get a named set of sub-options
getSubOptions() - Method in class moapi.ModOptions
Get all sets of sub-options for this set return Array of all sub options for this set
getText() - Method in class moapi.gui.TextField
Return getText() value for this field
getTextValue(String) - Method in class moapi.ModOptions
Get the value of a text input field
getToggleValue(String) - Method in class moapi.ModOptions
Returns a single named toggle value
getValue() - Method in class moapi.ModOption
Get value of this option selector
getValue(boolean) - Method in class moapi.ModOption
Get the value of this selector from the scope given in the first parameter
global - Variable in class moapi.gui.TextInputField
Whether to use global mode or not
global - Variable in class moapi.ModOption
If we should use the global value
globalReset(boolean) - Method in class moapi.ModOptions
Sets all values global values to the parameter
gui - Variable in class moapi.gui.TextInputField
The GUI for controlling MOAPI output
GuiController - Class in moapi.gui
Gui controller for a single mod and all of it's suboption menus Moved from GuiController to Controller
GuiController() - Constructor for class moapi.gui.GuiController
Create the controller

H

hasCallback() - Method in class moapi.ModOption
Check if this option has a callback

I

IncompatibleOptionTypeException - Exception in moapi
 
IncompatibleOptionTypeException(String) - Constructor for exception moapi.IncompatibleOptionTypeException
 
IncompatibleOptionTypeException() - Constructor for exception moapi.IncompatibleOptionTypeException
 
initGui() - Method in class moapi.gui.ModMenu
 
integerSlider - Static variable in class moapi.gui.StdFormatters
Integer formatter for sliders
isFocused() - Method in class moapi.gui.TextInputField
Check whether this text input field is focused or not
isKeyBound(Integer) - Static method in class moapi.ModKeyOption
Check if a key is already bound
isMultiplayerMod() - Method in class moapi.ModOptions
Checks if this mod is available in multiplayer server menus
isMultiplayerWorld() - Static method in class moapi.ModOptionsAPI
Check if the world is a multiplayer world
isSingleplayerMod() - Method in class moapi.ModOptions
Checks if this mod is available in single player world menus
isWide(ModOption) - Method in class moapi.gui.GuiController
Check if the given option is in a wide bar format

J

joinedMultiplayerWorld(String) - Static method in class moapi.ModOptionsAPI
Set that we are in a multiplayer world

K

KeyAlreadyBoundException - Exception in moapi
Is thrown when a key is already bound
KeyAlreadyBoundException(Integer) - Constructor for exception moapi.KeyAlreadyBoundException
 
KeyBindingField - Class in moapi.gui
GUI for getText() field within MOAPI
KeyBindingField(int, GuiScreen, FontRenderer, int, int, ModKeyOption, GuiController, boolean) - Constructor for class moapi.gui.KeyBindingField
 
keyTyped(char, int) - Method in class moapi.gui.ModMenu
Ensures that when escape is pressed that the changed options are saved.

L

loadValues() - Method in class moapi.ModOptions
Loads global values from disk into memory for this and all sub-menus
loadValues(String, boolean) - Method in class moapi.ModOptions
Loads values from disk into memory for this and all sub-menus
localValue - Variable in class moapi.ModOption
Local/ server value f this option

M

manipulate(ModOption, String) - Method in interface moapi.gui.DisplayStringFormatter
Manipulates the display string according
manipulate(ModOption, String) - Method in class moapi.gui.StdFormatters.IntegerSliderFormat
Format the input into a readable string
manipulate(ModOption, String) - Method in class moapi.gui.StdFormatters.SuffixFormat
Format the input into a readable string
moapi - package moapi
 
moapi.gui - package moapi.gui
 
MOCallback - Class in moapi
The callback interface for modoptions API
MOCallback() - Constructor for class moapi.MOCallback
 
ModBooleanOption - Class in moapi
Boolean Option API
ModBooleanOption(String) - Constructor for class moapi.ModBooleanOption
Creates an On/Off toggle
ModBooleanOption(String, String, String) - Constructor for class moapi.ModBooleanOption
Creates an On/Off toggle with specified labels
ModBooleanOption(String, String, String, String) - Constructor for class moapi.ModBooleanOption
Creates an On/Off toggle with the specified labels and ID
ModBooleanOption(String, String) - Constructor for class moapi.ModBooleanOption
Creates an On/Off toggle with the given ID
ModKeyOption - Class in moapi
An option for keybindings Enforces the concept of only one key per binding type.
ModKeyOption(String) - Constructor for class moapi.ModKeyOption
Constructor for key binding option
ModKeyOption(String, String) - Constructor for class moapi.ModKeyOption
Constructor with ID for key binding option
ModMappedOption - Class in moapi
Multiple Selector API with Integer -> String mappings
ModMappedOption(String) - Constructor for class moapi.ModMappedOption
Create a multiple selector with no values
ModMappedOption(String, Integer[], String[]) - Constructor for class moapi.ModMappedOption
Create a multiple selector with the given keys and labels
ModMappedOption(String, int[], String[]) - Constructor for class moapi.ModMappedOption
Create a multiple selector with the given keys and labels
ModMappedOption(String, String, Integer[], String[]) - Constructor for class moapi.ModMappedOption
Create a multiple selector with the given keys and labels and ID/name
ModMappedOption(String, String, int[], String[]) - Constructor for class moapi.ModMappedOption
Create a multiple selector with the given keys and labels
ModMappedOption(String, String) - Constructor for class moapi.ModMappedOption
Creates a multi selector with the given name/ id and no values
ModMenu - Class in moapi.gui
A scrollable screen for modoptionsapi
ModMenu(GuiScreen) - Constructor for class moapi.gui.ModMenu
Initilise options menu gui screen
ModMenu(GuiIngameMenu, String, boolean) - Constructor for class moapi.gui.ModMenu
Initialise world options menu with a named world
ModMenu(GuiScreen, ModOptions, String, boolean) - Constructor for class moapi.gui.ModMenu
Initialise a particular set of options gui
ModMenu(GuiScreen, ModOptions) - Constructor for class moapi.gui.ModMenu
Initialise a particular set of options gui
ModMultiOption - Class in moapi
Multiple Selector API
ModMultiOption(String) - Constructor for class moapi.ModMultiOption
Create a multiple selector with no values
ModMultiOption(String, String[]) - Constructor for class moapi.ModMultiOption
Creates a multiple selector with given values
ModMultiOption(String, String, String[]) - Constructor for class moapi.ModMultiOption
Creates a multiple selector with given values and given name/id
ModMultiOption(String, String) - Constructor for class moapi.ModMultiOption
Creates a multiple selector with no values and the given name/id
ModOption<E> - Class in moapi
Abstract base class for individual option classes
ModOption(String) - Constructor for class moapi.ModOption
Default constructor, requires an ID
ModOption(String, String) - Constructor for class moapi.ModOption
Default constructor with a name
ModOptions - Class in moapi
An abstract representation of a set of options for a single mod
ModOptions(String) - Constructor for class moapi.ModOptions
Create a new set of options with no parent.
ModOptions(String, ModOptions) - Constructor for class moapi.ModOptions
Create a sub options menu for a mod package
ModOptions(String, String) - Constructor for class moapi.ModOptions
Create a sub option menu with no parent
ModOptionsAPI - Class in moapi
Controller class for the API.
ModOptionsAPI() - Constructor for class moapi.ModOptionsAPI
 
ModSliderOption - Class in moapi
Provides an interface to create a simple bounded slider
ModSliderOption(String) - Constructor for class moapi.ModSliderOption
Create a slider with given name
ModSliderOption(String, int, int) - Constructor for class moapi.ModSliderOption
Create a bounded slider
ModSliderOption(String, String, int, int) - Constructor for class moapi.ModSliderOption
Create a bounded slider with a given ID
ModSliderOption(String, String) - Constructor for class moapi.ModSliderOption
Create a slider option with a given id and name
ModTextOption - Class in moapi
A text input field option for modoptionsapi with customisable maximum length
ModTextOption(String) - Constructor for class moapi.ModTextOption
Constructor for the text option
ModTextOption(String, String) - Constructor for class moapi.ModTextOption
Constructor with a given name and ID
ModTextOption(String, Integer) - Constructor for class moapi.ModTextOption
Constructor for the text option specifying max length
ModTextOption(String, String, Integer) - Constructor for class moapi.ModTextOption
Constructor for the text option specifying max length, name and ID
ModTextOption(String, int) - Constructor for class moapi.ModTextOption
Constructor for the text option specifying max length
ModTextOption(String, String, int) - Constructor for class moapi.ModTextOption
Constructor for text option with given name and ID and a given max length
MOMissingModException - Exception in moapi
 
MOMissingModException(String) - Constructor for exception moapi.MOMissingModException
 
mouseClicked(int, int, int) - Method in class moapi.gui.ModMenu
Control the mouse clicks so that we can let right click turn on "global" mode
mouseDragged(Minecraft, int, int) - Method in class moapi.gui.Slider
Perform action on mouse drag
mouseMovedOrUp(int, int, int) - Method in class moapi.gui.ModMenu
More control over the mouse Called when mouse is unclicked
mousePressed(Minecraft, int, int) - Method in class moapi.gui.Slider
Mouse press action
mouseReleased(int, int) - Method in class moapi.gui.Slider
 

N

name - Variable in class moapi.ModOption
Given name for this option selector
noFormat - Static variable in class moapi.gui.StdFormatters
Formatter for an option that only displays the option value
NoSuchOptionException - Exception in moapi
This exception will occur when an option was not found or the types mismatch
NoSuchOptionException() - Constructor for exception moapi.NoSuchOptionException
Construct a no such option exception with a null message
NoSuchOptionException(String) - Constructor for exception moapi.NoSuchOptionException
Construct a no such option exception with a message

O

onClick(ModOption) - Method in class moapi.MOCallback
What to do upon clicking a button
onGlobalChange(boolean, ModOption) - Method in class moapi.MOCallback
What to do upon setting a global value
option - Variable in class moapi.gui.TextInputField
Option relevant to this getText() field

P

parentGuiScreen - Variable in class moapi.gui.TextInputField
For tabbing functionality

S

save(String, boolean) - Method in class moapi.ModOptions
Save options to disk for a particular world
save() - Method in class moapi.ModOptions
Saves options to disk
screenTitle - Variable in class moapi.gui.ModMenu
Title of this menu
selectedWorld(String) - Static method in class moapi.ModOptionsAPI
Set that we are in a singleplayer world
setCallback(MOCallback) - Method in class moapi.ModOption
Set the callback for this option
setFocused(boolean) - Method in class moapi.gui.TextInputField
Set whether the textarea is in focus or not
setFormatter(ModOption, DisplayStringFormatter) - Method in class moapi.gui.GuiController
Set the text formatting class for a specific option's output string and removes all other formatters
setGlobal(boolean) - Method in class moapi.ModOption
Set the scope of the value
setGlobalValue(E) - Method in class moapi.ModOption
Sets global value of this option
setGlobalValue(Float) - Method in class moapi.ModSliderOption
Set the global value
setGlobalValue(int) - Method in class moapi.ModSliderOption
Set the global value using an int
setLocalValue(E) - Method in class moapi.ModOption
Sets the local value of this option
setLocalValue(Float) - Method in class moapi.ModSliderOption
Set the float value
setLocalValue(int) - Method in class moapi.ModSliderOption
Set the local value using an int
setMaxLength(int) - Method in class moapi.ModTextOption
Set maximum length for the input
setMaxLength(Integer) - Method in class moapi.ModTextOption
Set maximum length for the input
setMultiplayerMode(boolean) - Method in class moapi.ModOptions
Set multiplayer value
setName(String) - Method in class moapi.ModOption
Set the name of this option
setOptionStringFormat(String, DisplayStringFormatter) - Method in class moapi.ModOptions
Set an option's string format, will remove any other formatters
setOptionStringFormat(ModOption, DisplayStringFormatter) - Method in class moapi.ModOptions
Set an option's string format, will remove any other formatters
setOptionValue(String, boolean) - Method in class moapi.ModOptions
Set a single named boolean options global value
setOptionValue(String, Integer) - Method in class moapi.ModOptions
Set a single slider or mapped multi option's global value
setOptionValue(String, int) - Method in class moapi.ModOptions
Set a single slider or mapped multi option's global value
setOptionValue(String, String) - Method in class moapi.ModOptions
Set a single multi option's global value
setParent(ModOptions) - Method in class moapi.ModOptions
Set the parent for this menu
setSingleplayerMode(boolean) - Method in class moapi.ModOptions
Set singleplayer value
setText(String) - Method in class moapi.gui.TextField
Sets the getText() for this option and button
setValue(int) - Method in class moapi.ModKeyOption
Set the current used value of this option selector
setValue(Integer) - Method in class moapi.ModKeyOption
Set the current used value of this option selector fr a given scope
setValue(int, boolean) - Method in class moapi.ModKeyOption
Set the current used value of this option selector for a given scope
setValue(Integer, boolean) - Method in class moapi.ModKeyOption
Set the current used value of this option selector
setValue(E) - Method in class moapi.ModOption
Set the current used value of this option selector
setValue(E, boolean) - Method in class moapi.ModOption
Set the current value used for the given scope
setValue(Float) - Method in class moapi.ModSliderOption
Set the float value
setValue(int) - Method in class moapi.ModSliderOption
Set the integer value
setWide(String) - Method in class moapi.gui.GuiController
Sets the named option to show as a full width bar instead of the default half-width
setWide(ModOption) - Method in class moapi.gui.GuiController
Sets the named option to show as a full width bar instead of the default half-width
setWide(boolean) - Method in class moapi.gui.KeyBindingField
Set wide
setWide(boolean) - Method in class moapi.gui.Slider
Set this slider to "wide" mode
setWideOption(String) - Method in class moapi.ModOptions
Set a named Option to wide
setWideOption(ModOption) - Method in class moapi.ModOptions
Set a given option to wide
Slider - Class in moapi.gui
A replacement for the default MC Slider.
Slider(int, int, int, ModSliderOption, GuiController, boolean) - Constructor for class moapi.gui.Slider
Construct a gui slider
StdFormatters - Class in moapi.gui
Standard formatters which are used by the API as defaults Moved from StdFormatters to gui.StdFormatters on version 0.8
StdFormatters() - Constructor for class moapi.gui.StdFormatters
 
StdFormatters.IntegerSliderFormat - Class in moapi.gui
Formatting class for turning a float numeric string to an int one
StdFormatters.IntegerSliderFormat() - Constructor for class moapi.gui.StdFormatters.IntegerSliderFormat
Creates a string formatter which formats slider values to integer values
StdFormatters.SuffixFormat - Class in moapi.gui
Formatting class for a given suffix with a space between
StdFormatters.SuffixFormat(String) - Constructor for class moapi.gui.StdFormatters.SuffixFormat
Creates a string formatter with a suffix

T

textboxKeyTyped(char, int) - Method in class moapi.gui.KeyBindingField
Method for handling keyboard input
textboxKeyTyped(char, int) - Method in class moapi.gui.TextField
 
textboxKeyTyped(char, int) - Method in class moapi.gui.TextInputField
Method for handling keyboard input
TextField - Class in moapi.gui
GUI for getText() field within MOAPI
TextField(int, GuiScreen, FontRenderer, int, int, ModTextOption, GuiController, boolean) - Constructor for class moapi.gui.TextField
 
TextInputField - Class in moapi.gui
A part of the inheritance chain for buttons for text input fields to be group identified
TextInputField(int, int, int, FontRenderer, GuiController) - Constructor for class moapi.gui.TextInputField
To interface child with parent
transformValue(float, int, int) - Method in class moapi.ModSliderOption
Transforms the given value from it's current upper and lower bounds to the corresponding place in the ones provided

U

untransformValue(float, int, int) - Method in class moapi.ModSliderOption
Transforms a value back from a given range into the local range
updateCursorCounter() - Method in class moapi.gui.TextInputField
Update the cursor counter value
updateDisplayString() - Method in class moapi.gui.Slider
Update the display string
updateScreen() - Method in class moapi.gui.ModMenu
What to do on screen updates
useGlobalValue() - Method in class moapi.ModOption
Set this option to only use the global value

V

value - Variable in class moapi.ModOption
Global Value of this option selector
viewingMainMenu() - Static method in class moapi.ModOptionsAPI
Set that we are in the main menu

W

worldLoaded() - Static method in class moapi.ModOptionsAPI
Check if we are ingame

A B C D F G H I J K L M N O P S T U V W