java.lang.Object
tfagaming.projects.minecraft.homestead.flags.WorldFlags

public final class WorldFlags extends Object
  • Field Details

  • Method Details

    • getFlags

      public static List<String> getFlags()
      Get list of flag names.
    • valueOf

      public static long valueOf(String name)
      Get bitwise value of a flag name. If the flag is undefined, it will return a 0.
      Parameters:
      name - The flag name
    • from

      public static String from(long flag)
      Get flag name from a bitwise value. If the bitwise value is undefined, it will return an unknown-flag.
      Parameters:
      flag - The bitwise value
    • getSet

      public static List<String> getSet(long flags)
      Get list of flag names that exist in the bitwise value.
      Parameters:
      flags - The flags
    • getUnset

      public static List<String> getUnset(long flags)
      Get list of flag names that does not exist in the bitwise value.
      Parameters:
      flags - The flags