Class MolangVars

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.armature.molang.MolangVars

public final class MolangVars extends Object
Every variable name ever compiled, as a slot number, so a running expression reads an array instead of a map. v.speed and variable.speed share a slot; temp variables have their own (t.x is not v.x).
  • Method Details

    • slot

      public static int slot(String name)
      The slot of a variable, by its whole name in any spelling (v.x, variable.x, t.x).
    • existing

      public static int existing(String name)
      The slot of a variable if it was ever compiled or set, else -1.
    • normalize

      public static String normalize(String name)
      v.x as variable.x, t.x as temp.x, c.x as context.x, lower case.