mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-04 22:14:40 +01:00
56 lines
1.9 KiB
Diff
56 lines
1.9 KiB
Diff
--- a/net/minecraft/server/GameRules.java
|
|
+++ b/net/minecraft/server/GameRules.java
|
|
@@ -92,7 +92,7 @@
|
|
}
|
|
|
|
public <T extends GameRules.GameRuleValue<T>> T get(GameRules.GameRuleKey<T> gamerules_gamerulekey) {
|
|
- return (GameRules.GameRuleValue) this.F.get(gamerules_gamerulekey);
|
|
+ return (T) this.F.get(gamerules_gamerulekey); // CraftBukkit - decompile error
|
|
}
|
|
|
|
public NBTTagCompound a() {
|
|
@@ -120,7 +120,7 @@
|
|
}
|
|
|
|
private static <T extends GameRules.GameRuleValue<T>> void a(GameRules.GameRuleVisitor gamerules_gamerulevisitor, GameRules.GameRuleKey<?> gamerules_gamerulekey, GameRules.GameRuleDefinition<?> gamerules_gameruledefinition) {
|
|
- gamerules_gamerulevisitor.a(gamerules_gamerulekey, gamerules_gameruledefinition);
|
|
+ gamerules_gamerulevisitor.a((GameRules.GameRuleKey<T>) gamerules_gamerulekey, (GameRules.GameRuleDefinition<T>) gamerules_gameruledefinition); // CraftBukkit - decompile error
|
|
}
|
|
|
|
public boolean getBoolean(GameRules.GameRuleKey<GameRules.GameRuleBoolean> gamerules_gamerulekey) {
|
|
@@ -171,7 +171,7 @@
|
|
}
|
|
|
|
@Override
|
|
- protected void setValue(String s) {
|
|
+ public void setValue(String s) { // PAIL - private->public
|
|
this.a = Boolean.parseBoolean(s);
|
|
}
|
|
|
|
@@ -221,7 +221,7 @@
|
|
}
|
|
|
|
@Override
|
|
- protected void setValue(String s) {
|
|
+ public void setValue(String s) { // PAIL - private->public
|
|
this.a = b(s);
|
|
}
|
|
|
|
@@ -270,7 +270,7 @@
|
|
|
|
}
|
|
|
|
- protected abstract void setValue(String s);
|
|
+ public abstract void setValue(String s); // PAIL - private->public
|
|
|
|
protected abstract String getValue();
|
|
|
|
@@ -300,7 +300,7 @@
|
|
}
|
|
|
|
public T getValue() {
|
|
- return (GameRules.GameRuleValue) this.b.apply(this);
|
|
+ return this.b.apply(this); // CraftBukkit - decompile error
|
|
}
|
|
}
|
|
|