mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 06:24:37 +00:00
Broad tool fixes, Drawbridge and Igniter
This commit is contained in:
1 parent
aab20a98fc
commit
c32b755bf5
101 files changed
+2521
-792
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package mods.tinker.tconstruct.skill;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
|
||||
public class SkillRegistry
|
||||
{
|
||||
public static HashMap<String, Skill> skills = new HashMap<String, Skill>();
|
||||
|
||||
static int skillID = 0;
|
||||
public static HashMap<Integer, Skill> skillMapping = new HashMap<Integer, Skill>(); //Simplifies network transmission
|
||||
|
||||
public static void registerSkill(String name, Skill skill)
|
||||
{
|
||||
skills.put(name, skill);
|
||||
skillMapping.put(getNextAvailableID(), skill);
|
||||
}
|
||||
|
||||
static Integer getNextAvailableID ()
|
||||
{
|
||||
return skillID++;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user