Class WorldUtils

java.lang.Object
dev.sefiraat.sefilib.world.WorldUtils

public class WorldUtils extends Object
  • Method Details

    • inOverworld

      public static boolean inOverworld(@Nonnull Entity entity)
      Checks if the world is provided is NORMAL
      Parameters:
      entity - The Entity who's world will be checked
      Returns:
      true if the World.Environment is NORMAL
    • inOverworld

      public static boolean inOverworld(@Nonnull World world)
      Checks if the world is provided is NORMAL
      Parameters:
      world - The World to check the environment of
      Returns:
      true if the World.Environment is NORMAL
    • inNether

      public static boolean inNether(@Nonnull Entity entity)
      Checks if the world is provided is NETHER
      Parameters:
      entity - The Entity who's world will be checked
      Returns:
      true if the World.Environment is NETHER
    • inNether

      public static boolean inNether(@Nonnull World world)
      Checks if the world is provided is NETHER
      Parameters:
      world - The World to check the environment of
      Returns:
      true if the World.Environment is NETHER
    • inEnd

      public static boolean inEnd(@Nonnull Entity entity)
      Checks if the world is provided is END
      Parameters:
      entity - The Entity who's world will be checked
      Returns:
      true if the World.Environment is END
    • inEnd

      public static boolean inEnd(@Nonnull World world)
      Checks if the world is provided is END
      Parameters:
      world - The World to check the environment of
      Returns:
      true if the World.Environment is END