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

Method fromInt

game/src/main/java/jake2/game/WeaponStates.java:15–22  ·  view source on GitHub ↗
(int in)

Source from the content-addressed store, hash-verified

13 }
14
15 static WeaponStates fromInt(int in) {
16 for (WeaponStates value : WeaponStates.values()) {
17 if (value.intValue == in)
18 return value;
19 }
20
21 return WEAPON_READY;
22 }
23}

Callers 1

readMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected