Files
Script-Factory/src/main/java/scriptfactory/NewGuis/ConditionGuiInfo.java
T
2019-07-16 13:13:02 -04:00

28 lines
1.1 KiB
Java

package scriptfactory.NewGuis;
import scriptfactory.Actions.Action;
import scriptfactory.Consumer;
import java.util.ArrayList;
/**
* Created by SRH on 1/9/2018.
*/
public class ConditionGuiInfo extends NewStatementGUI {
public ConditionGuiInfo(ArrayList<Action> actionList, Consumer<Integer> updateTextfield) {
String[] actionTypes = new String[]{"Item is in Inventory", "Inventory slots used", "Item is on Ground", "Entity is around", "Hitpoints is below", "In Combat"};
Descriptions[] setDescs = {
new Descriptions("Item to detect (eg. 4296 = bones)", "Number of them to detect (blank = 1)"),
new Descriptions("Inventory slots greater than or equal to (eg. \"28\" detects a full inventory)"),
new Descriptions("Item to detect (eg. 314 = feathers)"),
new Descriptions("Entity to detect (eg. \"81,397,1767,1768\" detects cows)"),
new Descriptions("Below health # (eg. 10)"),
new Descriptions(),
};
initGui("Add new condition", actionList, updateTextfield, actionTypes, setDescs);
}
}