public boolean areSameType(String key, GameRules.ValueType otherValue) { GameRules.Value var3 = (GameRules.Value) this.theGameRules.get(key); return var3 != null && (var3.getType() == otherValue || otherValue == GameRules.ValueType.ANY_VALUE); }