make WorldSavedData implement NBTSerializable (#2745)
This commit is contained in:
parent
2a3774def3
commit
68cd48287b
1 changed files with 28 additions and 0 deletions
|
@ -0,0 +1,28 @@
|
||||||
|
--- ../src-base/minecraft/net/minecraft/world/WorldSavedData.java
|
||||||
|
+++ ../src-work/minecraft/net/minecraft/world/WorldSavedData.java
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
|
||||||
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
|
||||||
|
-public abstract class WorldSavedData
|
||||||
|
+public abstract class WorldSavedData implements net.minecraftforge.common.util.INBTSerializable<NBTTagCompound>
|
||||||
|
{
|
||||||
|
public final String field_76190_i;
|
||||||
|
private boolean field_76189_a;
|
||||||
|
@@ -30,4 +30,16 @@
|
||||||
|
{
|
||||||
|
return this.field_76189_a;
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ public void deserializeNBT(NBTTagCompound nbt)
|
||||||
|
+ {
|
||||||
|
+ this.func_76184_a(nbt);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public NBTTagCompound serializeNBT()
|
||||||
|
+ {
|
||||||
|
+ NBTTagCompound ret = new NBTTagCompound();
|
||||||
|
+ this.func_76187_b(ret);
|
||||||
|
+ return ret;
|
||||||
|
+ }
|
||||||
|
}
|
Loading…
Reference in a new issue