Class GameVals

java.lang.Object
dev.twilite.game.common.GameVals

public class GameVals extends Object
Helpers for resolving cache gameval names to their generated Java constant names.
  • Constructor Details

    • GameVals

      public GameVals()
  • Method Details

    • name

      public static Optional<String> name(dev.twilite.cache.gameval.GameValType type, int id)
      Returns the raw gameval name for id.
    • constantName

      public static Optional<String> constantName(dev.twilite.cache.gameval.GameValType type, int id)
      Returns the generated Java constant name for id.
    • qualifiedName

      public static Optional<String> qualifiedName(dev.twilite.cache.gameval.GameValType type, int id)
      Returns the generated Java class and constant name for id.
    • constant

      public static Optional<GameVals.Constant> constant(dev.twilite.cache.gameval.GameValType type, int id)
      Returns the generated Java constant for id.
    • loaded

      public static boolean loaded(dev.twilite.cache.gameval.GameValType type)
      Returns whether the constant index for type has been loaded.
    • warmup

      public static void warmup(dev.twilite.cache.gameval.GameValType type)
      Starts loading the constant index for type if it has not already been loaded.
    • interfaceComponent

      public static Optional<GameVals.Constant> interfaceComponent(int id)
      Returns the generated Java constant for an interface component uid.
    • interfaceComponent

      public static Optional<GameVals.Constant> interfaceComponent(int group, int component)
      Returns the generated Java constant for an interface component.
    • interfaceComponentName

      public static Optional<String> interfaceComponentName(int id)
      Returns the generated Java constant name for an interface component uid.
    • interfaceComponentQualifiedName

      public static Optional<String> interfaceComponentQualifiedName(int id)
      Returns the generated Java class and constant name for an interface component uid.