Class Core
java.lang.Object
io.github.javaezlib.javaez.extensions.Core
The core functions of JavaEZ, usually implemented in every JavaEZ project.
- Since:
- 1.0
- Author:
- Red050911
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringAsks for input from the user.static voidChecks if something is true and does something if it is.static voidChecks if something is true and does something if it is.static voidRuns code foreverstatic StringGets a variablestatic StringJoins text togetherstatic voidDeletes a variablestatic voidSays something in the console.static voidSets/adds a variablestatic voidwaitFor(int seconds) Waits for a number of seconds
-
Constructor Details
-
Core
public Core()
-
-
Method Details
-
say
Says something in the console. An example of using this:say("Hello");- Parameters:
text- The text you want to be said in the console.- Since:
- 1.0
-
doIf
Checks if something is true and does something if it is.- Parameters:
condition- The condition to checkifTrue- What to do if true- Since:
- 1.0
- See Also:
-
doIf
Checks if something is true and does something if it is. This one also runs something if not true.- Parameters:
condition- The condition to checkifTrue- What to do if trueelseDo- What to do if false- Since:
- 1.0
- See Also:
-
set
Sets/adds a variable- Parameters:
name- The name of the variableval- The value of the variable- Since:
- 1.0
-
get
Gets a variable- Parameters:
name- Name of the variable- Returns:
- The variable's value, blank if none
- Since:
- 1.0
-
remove
Deletes a variable- Parameters:
name- The name of the variable- Since:
- 1.0
-
forever
Runs code forever- Parameters:
toRun- What to run- Since:
- 1.0
-
waitFor
public static void waitFor(int seconds) Waits for a number of seconds- Parameters:
seconds- The seconds to wait for- Since:
- 1.0
-
ask
Asks for input from the user. This function will wait until input is received.- Parameters:
prompt- The prompt to prompt the user with- Returns:
- What the user entered
- Since:
- 1.1
-
join
Joins text together- Parameters:
one- one bit of texttwo- another bit of text- Returns:
- the text joined together
- Since:
- 1.2
-