Package dev.sefiraat.sefilib.world
Class WorldUtils
java.lang.Object
dev.sefiraat.sefilib.world.WorldUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks if the world is provided is ENDstatic booleanChecks if the world is provided is ENDstatic booleanChecks if the world is provided is NETHERstatic booleanChecks if the world is provided is NETHERstatic booleaninOverworld(Entity entity) Checks if the world is provided is NORMALstatic booleaninOverworld(World world) Checks if the world is provided is NORMAL
-
Method Details
-
inOverworld
Checks if the world is provided is NORMAL- Parameters:
entity- TheEntitywho's world will be checked- Returns:
- true if the
World.Environmentis NORMAL
-
inOverworld
Checks if the world is provided is NORMAL- Parameters:
world- TheWorldto check the environment of- Returns:
- true if the
World.Environmentis NORMAL
-
inNether
Checks if the world is provided is NETHER- Parameters:
entity- TheEntitywho's world will be checked- Returns:
- true if the
World.Environmentis NETHER
-
inNether
Checks if the world is provided is NETHER- Parameters:
world- TheWorldto check the environment of- Returns:
- true if the
World.Environmentis NETHER
-
inEnd
Checks if the world is provided is END- Parameters:
entity- TheEntitywho's world will be checked- Returns:
- true if the
World.Environmentis END
-
inEnd
Checks if the world is provided is END- Parameters:
world- TheWorldto check the environment of- Returns:
- true if the
World.Environmentis END
-