MCPcopy Create free account
hub / github.com/demoth/jake2 / writeItem

Method writeItem

game/src/main/java/jake2/game/items/GameItems.java:1375–1380  ·  view source on GitHub ↗

Writes an item reference.

(QuakeFile f, GameItem item)

Source from the content-addressed store, hash-verified

1373 * Writes an item reference.
1374 */
1375 public static void writeItem(QuakeFile f, GameItem item) throws IOException {
1376 if (item == null)
1377 f.writeInt(-1);
1378 else
1379 f.writeInt(item.index);
1380 }
1381
1382 /**
1383 * Reads the item index and returns the game item.

Callers 3

writeMethod · 0.95
writeMethod · 0.95
writeMethod · 0.95

Calls 1

writeIntMethod · 0.80

Tested by

no test coverage detected