Codota Logo
StringTable.getNameByIndex
Code IndexAdd Codota to your IDE (free)

How to use
getNameByIndex
method
in
skadistats.clarity.model.StringTable

Best Java code snippets using skadistats.clarity.model.StringTable.getNameByIndex (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: skadistats/clarity

private String readCombatLogName(int idx) {
  return idx == 0 ? null : combatLogNames.getNameByIndex(idx);
}
origin: com.skadistats/clarity

private String readCombatLogName(int idx) {
  return idx == 0 ? null : combatLogNames.getNameByIndex(idx);
}
origin: skadistats/clarity

private String readCombatLogName(int idx) {
  return combatLogNames.hasIndex(idx) ? combatLogNames.getNameByIndex(idx) : null;
}
origin: com.skadistats/clarity

private String readCombatLogName(int idx) {
  return combatLogNames.hasIndex(idx) ? combatLogNames.getNameByIndex(idx) : null;
}
origin: com.skadistats/clarity

protected void setSingleEntry(StringTable table, int mode, int index, String name, ByteString value) {
  if (name.isEmpty() && table.hasIndex(index)) {
    // With console recorded replays, the replay sometimes has no name entry,
    // and supposedly expects us to use the one that is existing
    // see: https://github.com/skadistats/clarity/issues/147#issuecomment-409619763
    //      and Slack communication with Lukas
    // reuse the old key, and see if that works
    name = table.getNameByIndex(index);
  }
  table.set(mode, index, name, value);
  raise(table, index, name, value);
}
origin: skadistats/clarity

protected void setSingleEntry(StringTable table, int mode, int index, String name, ByteString value) {
  if (name.isEmpty() && table.hasIndex(index)) {
    // With console recorded replays, the replay sometimes has no name entry,
    // and supposedly expects us to use the one that is existing
    // see: https://github.com/skadistats/clarity/issues/147#issuecomment-409619763
    //      and Slack communication with Lukas
    // reuse the old key, and see if that works
    name = table.getNameByIndex(index);
  }
  table.set(mode, index, name, value);
  raise(table, index, name, value);
}
origin: skadistats/clarity-examples

DTClass dtClass = dtClasses.forClassId(Integer.valueOf(baselines.getNameByIndex(i)));
String fileName = String.format("%s%s%s.txt", dir.getPath(), File.separator, dtClass.getDtName());
log.info("writing {}", fileName);
origin: skadistats/clarity

@OnReset
public void onReset(Demo.CDemoStringTables packet, ResetPhase phase) {
  if (phase == ResetPhase.CLEAR) {
    resetStringTables.clear();
    for (StringTable table : stringTables.byName.values()) {
      table.reset();
    }
  } else if (phase == ResetPhase.ACCUMULATE) {
    for (Demo.CDemoStringTables.table_t tt : packet.getTablesList()) {
      if (!stringTables.byName.containsKey(tt.getTableName())) {
        continue;
      }
      resetStringTables.put(tt.getTableName(), tt);
    }
  } else if (phase == ResetPhase.APPLY) {
    for (StringTable table : stringTables.byName.values()) {
      Demo.CDemoStringTables.table_t tt = resetStringTables.get(table.getName());
      if (tt != null) {
        for (int i = 0; i < tt.getItemsCount(); i++) {
          Demo.CDemoStringTables.items_t it = tt.getItems(i);
          setSingleEntry(table, 2, i, it.getStr(), it.getData());
        }
      } else {
        for (int i = 0; i < table.getEntryCount(); i++) {
          raise(table, i, table.getNameByIndex(i), table.getValueByIndex(i));
        }
      }
    }
  }
}
origin: com.skadistats/clarity

@OnReset
public void onReset(Demo.CDemoStringTables packet, ResetPhase phase) {
  if (phase == ResetPhase.CLEAR) {
    resetStringTables.clear();
    for (StringTable table : stringTables.byName.values()) {
      table.reset();
    }
  } else if (phase == ResetPhase.ACCUMULATE) {
    for (Demo.CDemoStringTables.table_t tt : packet.getTablesList()) {
      if (!stringTables.byName.containsKey(tt.getTableName())) {
        continue;
      }
      resetStringTables.put(tt.getTableName(), tt);
    }
  } else if (phase == ResetPhase.APPLY) {
    for (StringTable table : stringTables.byName.values()) {
      Demo.CDemoStringTables.table_t tt = resetStringTables.get(table.getName());
      if (tt != null) {
        for (int i = 0; i < tt.getItemsCount(); i++) {
          Demo.CDemoStringTables.items_t it = tt.getItems(i);
          setSingleEntry(table, 2, i, it.getStr(), it.getData());
        }
      } else {
        for (int i = 0; i < table.getEntryCount(); i++) {
          raise(table, i, table.getNameByIndex(i), table.getValueByIndex(i));
        }
      }
    }
  }
}
origin: odota/parser

  throw new UnknownItemFoundException(String.format("Can't find item by its handle (%d)", hItem));
String itemName = stEntityNames.getNameByIndex(eItem.getProperty("m_pEntity.m_nameStringableIndex"));
if(itemName == null) {
  throw new UnknownItemFoundException("Can't get item name from EntityName string table");
skadistats.clarity.modelStringTablegetNameByIndex

Popular methods of StringTable

  • getEntryCount
  • getName
  • getValueByIndex
  • <init>
  • ensureSize
  • getFlags
  • getMaxEntries
  • getUserDataFixedSize
  • getUserDataSizeBits
  • hasIndex
  • reset
  • set
  • reset,
  • set,
  • toString

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now