public void set(String s, String s1) { GameRuleValue gamerulevalue = (GameRuleValue) this.a.get(s); if (gamerulevalue != null) { gamerulevalue.a(s1); } else { this.a(s, s1); } }
public NBTTagCompound a() { NBTTagCompound nbttagcompound = new NBTTagCompound("GameRules"); Iterator iterator = this.a.keySet().iterator(); while (iterator.hasNext()) { String s = (String) iterator.next(); GameRuleValue gamerulevalue = (GameRuleValue) this.a.get(s); nbttagcompound.setString(s, gamerulevalue.a()); } return nbttagcompound; }
public boolean getBoolean(String s) { GameRuleValue gamerulevalue = (GameRuleValue) this.a.get(s); return gamerulevalue != null ? gamerulevalue.b() : false; }
public String get(String s) { GameRuleValue gamerulevalue = (GameRuleValue) this.a.get(s); return gamerulevalue != null ? gamerulevalue.a() : ""; }