--- a/net/minecraft/server/GameRules.java +++ b/net/minecraft/server/GameRules.java @@ -106,7 +106,7 @@ } public > T get(GameRules.GameRuleKey gamerules_gamerulekey) { - return (GameRules.GameRuleValue) this.J.get(gamerules_gamerulekey); + return (T) this.J.get(gamerules_gamerulekey); // CraftBukkit - decompile error } public NBTTagCompound a() { @@ -137,8 +137,8 @@ } private static > void a(GameRules.GameRuleVisitor gamerules_gamerulevisitor, GameRules.GameRuleKey gamerules_gamerulekey, GameRules.GameRuleDefinition gamerules_gameruledefinition) { - gamerules_gamerulevisitor.a(gamerules_gamerulekey, gamerules_gameruledefinition); - gamerules_gameruledefinition.a(gamerules_gamerulevisitor, gamerules_gamerulekey); + gamerules_gamerulevisitor.a((GameRules.GameRuleKey) gamerules_gamerulekey, (GameRules.GameRuleDefinition) gamerules_gameruledefinition); // CraftBukkit - decompile error + ((GameRules.GameRuleDefinition) gamerules_gameruledefinition).a(gamerules_gamerulevisitor, (GameRules.GameRuleKey) gamerules_gamerulekey); // CraftBukkit - decompile error } public boolean getBoolean(GameRules.GameRuleKey gamerules_gamerulekey) { @@ -189,7 +189,7 @@ } @Override - protected void setValue(String s) { + public void setValue(String s) { // PAIL - protected->public this.b = Boolean.parseBoolean(s); } @@ -244,7 +244,7 @@ } @Override - protected void setValue(String s) { + public void setValue(String s) { // PAIL - protected->public this.b = c(s); } @@ -298,7 +298,7 @@ } - protected abstract void setValue(String s); + public abstract void setValue(String s); // PAIL - private->public public abstract String getValue(); @@ -332,7 +332,7 @@ } public T getValue() { - return (GameRules.GameRuleValue) this.b.apply(this); + return this.b.apply(this); // CraftBukkit - decompile error } public void a(GameRules.GameRuleVisitor gamerules_gamerulevisitor, GameRules.GameRuleKey gamerules_gamerulekey) {