2018-09-01 18:09:13 +08:00
From 8bde0c87a214ab11f4cded62f33cd91d56234781 Mon Sep 17 00:00:00 2001
2016-03-31 08:50:23 +08:00
From: Aikar <aikar@aikar.co>
Date: Wed, 30 Mar 2016 19:36:20 -0400
Subject: [PATCH] MC Dev fixes
2018-08-27 02:11:49 +08:00
diff --git a/src/main/java/net/minecraft/server/BaseBlockPosition.java b/src/main/java/net/minecraft/server/BaseBlockPosition.java
2018-09-01 06:56:57 +08:00
index a553fb7476..4048937c63 100644
2018-08-27 02:11:49 +08:00
--- a/src/main/java/net/minecraft/server/BaseBlockPosition.java
+++ b/src/main/java/net/minecraft/server/BaseBlockPosition.java
2018-09-01 06:56:57 +08:00
@@ -99,7 +99,7 @@ public class BaseBlockPosition implements Comparable<BaseBlockPosition> {
2018-08-27 02:11:49 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-27 02:11:49 +08:00
- public int compareTo(Object object) {
+ public int compareTo(BaseBlockPosition object) { // Paper - decompile fix
2018-09-01 06:56:57 +08:00
return this.l((BaseBlockPosition)object);
2018-08-27 02:11:49 +08:00
}
}
2018-07-20 01:50:34 +08:00
diff --git a/src/main/java/net/minecraft/server/BlockPosition.java b/src/main/java/net/minecraft/server/BlockPosition.java
2018-09-01 06:56:57 +08:00
index 7f8802b2ef..6ffc535146 100644
2018-07-20 01:50:34 +08:00
--- a/src/main/java/net/minecraft/server/BlockPosition.java
+++ b/src/main/java/net/minecraft/server/BlockPosition.java
2018-09-01 06:56:57 +08:00
@@ -179,7 +179,7 @@ public class BlockPosition extends BaseBlockPosition {
}
// $FF: synthetic method
- protected Object computeNext() {
+ protected BlockPosition computeNext() { // Paper - decompile fix
return this.a();
}
};
@@ -209,8 +209,11 @@ public class BlockPosition extends BaseBlockPosition {
2018-07-25 09:39:30 +08:00
if (this.g.b < l) {
++this.g.b;
} else if (this.g.c < i1) {
2018-09-01 06:56:57 +08:00
+ this.g.b = ix; // Paper - decompile fix Readd line removed by the decompiler
2018-07-25 09:39:30 +08:00
++this.g.c;
} else if (this.g.d < j1) {
2018-09-01 06:56:57 +08:00
+ this.g.b = ix; // Paper - decompile fix Readd line removed by the decompiler
+ this.g.c = jx; // Paper - decompile fix Readd line removed by the decompiler
2018-07-25 09:39:30 +08:00
++this.g.d;
}
2018-09-01 06:56:57 +08:00
@@ -219,7 +222,7 @@ public class BlockPosition extends BaseBlockPosition {
}
// $FF: synthetic method
- protected Object computeNext() {
+ protected BlockPosition.MutableBlockPosition computeNext() { // Paper - decompile fix
return this.a();
}
};
2018-08-26 10:37:58 +08:00
diff --git a/src/main/java/net/minecraft/server/DataPaletteBlock.java b/src/main/java/net/minecraft/server/DataPaletteBlock.java
2018-09-01 06:56:57 +08:00
index 3bd0c56d46..304e47bf20 100644
2018-08-26 10:37:58 +08:00
--- a/src/main/java/net/minecraft/server/DataPaletteBlock.java
+++ b/src/main/java/net/minecraft/server/DataPaletteBlock.java
2018-09-01 06:56:57 +08:00
@@ -72,11 +72,11 @@ public class DataPaletteBlock<T> implements DataPaletteExpandable<T> {
public int onResize(int ix, T object) {
2018-08-26 10:37:58 +08:00
this.b();
DataBits databits = this.a;
- DataPalette datapalette = this.h;
+ DataPalette<T> datapalette = this.h; // Paper - decompile fix
2018-09-01 06:56:57 +08:00
this.b(ix);
2018-08-26 10:37:58 +08:00
2018-09-01 06:56:57 +08:00
for(int jx = 0; jx < databits.b(); ++jx) {
- Object object1 = datapalette.a(databits.a(jx));
+ T object1 = datapalette.a(databits.a(jx)); // Paper - decompile fix
if (object1 != null) {
this.setBlockIndex(jx, object1);
}
@@ -103,7 +103,7 @@ public class DataPaletteBlock<T> implements DataPaletteExpandable<T> {
2018-08-26 10:37:58 +08:00
}
2018-09-01 06:56:57 +08:00
protected T a(int ix) {
- Object object = this.h.a(this.a.a(ix));
+ T object = this.h.a(this.a.a(ix)); // Paper - decompile fix
return (T)(object == null ? this.g : object);
2018-08-26 10:37:58 +08:00
}
2018-09-01 06:56:57 +08:00
@@ -127,7 +127,7 @@ public class DataPaletteBlock<T> implements DataPaletteExpandable<T> {
long[] along = nbttagcompound.o(s1);
int jx = along.length * 64 / 4096;
2018-08-26 10:37:58 +08:00
if (this.h == this.b) {
2018-09-01 06:56:57 +08:00
- DataPaletteHash datapalettehash = new DataPaletteHash(this.d, ix, this.c, this.e, this.f);
+ DataPaletteHash<T> datapalettehash = new DataPaletteHash(this.d, ix, this.c, this.e, this.f); // Paper - decompile fix
2018-08-26 10:37:58 +08:00
datapalettehash.a(nbttaglist);
2018-09-01 06:56:57 +08:00
DataBits databits = new DataBits(ix, 4096, along);
2018-08-12 01:48:31 +08:00
diff --git a/src/main/java/net/minecraft/server/DedicatedPlayerList.java b/src/main/java/net/minecraft/server/DedicatedPlayerList.java
2018-09-01 06:56:57 +08:00
index 5eded6dc20..11f9642e6e 100644
2018-08-12 01:48:31 +08:00
--- a/src/main/java/net/minecraft/server/DedicatedPlayerList.java
+++ b/src/main/java/net/minecraft/server/DedicatedPlayerList.java
2018-09-01 06:56:57 +08:00
@@ -136,7 +136,7 @@ public class DedicatedPlayerList extends PlayerList {
2018-08-12 01:48:31 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-12 01:48:31 +08:00
- public MinecraftServer getServer() {
2018-09-01 06:56:57 +08:00
+ public MinecraftServer getMinecraftServer() { // Paper - decompile fix
return this.getServer();
}
2018-08-12 01:48:31 +08:00
}
2018-07-20 05:55:27 +08:00
diff --git a/src/main/java/net/minecraft/server/DefinedStructure.java b/src/main/java/net/minecraft/server/DefinedStructure.java
2018-09-01 06:56:57 +08:00
index 4dd4b01c82..987d944dbd 100644
2018-07-20 05:55:27 +08:00
--- a/src/main/java/net/minecraft/server/DefinedStructure.java
+++ b/src/main/java/net/minecraft/server/DefinedStructure.java
2018-09-01 06:56:57 +08:00
@@ -77,7 +77,7 @@ public class DefinedStructure {
2018-07-20 05:55:27 +08:00
}
private void a(World world, BlockPosition blockposition, BlockPosition blockposition1) {
2018-09-01 06:56:57 +08:00
- List list = world.a(Entity.class, new AxisAlignedBB(blockposition, blockposition1), (entity1) -> {
+ List<Entity> list = world.a(Entity.class, new AxisAlignedBB(blockposition, blockposition1),(java.util.function.Predicate<? super Entity>) (entity1) -> { // Paper - decompile fix
return !(entity1 instanceof EntityHuman);
2018-07-20 05:55:27 +08:00
});
2018-09-01 06:56:57 +08:00
this.b.clear();
@@ -145,12 +145,12 @@ public class DefinedStructure {
if (this.a.isEmpty()) {
return false;
} else {
- List list = definedstructureinfo.a(this.a, blockposition);
+ List<BlockInfo> list = definedstructureinfo.a(this.a, blockposition); // Paper - decompile fix
if ((!list.isEmpty() || !definedstructureinfo.h() && !this.b.isEmpty()) && this.c.getX() >= 1 && this.c.getY() >= 1 && this.c.getZ() >= 1) {
Block block = definedstructureinfo.i();
StructureBoundingBox structureboundingbox = definedstructureinfo.j();
- ArrayList arraylist = Lists.newArrayListWithCapacity(definedstructureinfo.m() ? list.size() : 0);
- ArrayList arraylist1 = Lists.newArrayListWithCapacity(list.size());
+ ArrayList<BlockPosition> arraylist = Lists.newArrayListWithCapacity(definedstructureinfo.m() ? list.size() : 0); // Paper - decompile fix
+ ArrayList<Pair> arraylist1 = Lists.newArrayListWithCapacity(list.size()); // Paper - decompile fix
int j = Integer.MAX_VALUE;
int k = Integer.MAX_VALUE;
int l = Integer.MAX_VALUE;
@@ -427,7 +427,7 @@ public class DefinedStructure {
nbttagcompound.set("blocks", new NBTTagList());
nbttagcompound.set("palette", new NBTTagList());
} else {
- ArrayList arraylist = Lists.newArrayList();
+ ArrayList<DefinedStructure.a> arraylist = Lists.newArrayList(); // Paper - decompile fix
DefinedStructure.a definedstructure$a = new DefinedStructure.a();
arraylist.add(definedstructure$a);
diff --git a/src/main/java/net/minecraft/server/EnchantmentManager.java b/src/main/java/net/minecraft/server/EnchantmentManager.java
index 5c2d50f974..fd6df39f17 100644
--- a/src/main/java/net/minecraft/server/EnchantmentManager.java
+++ b/src/main/java/net/minecraft/server/EnchantmentManager.java
@@ -51,7 +51,7 @@ public class EnchantmentManager {
public static void a(Map<Enchantment, Integer> map, ItemStack itemstack) {
NBTTagList nbttaglist = new NBTTagList();
- for(Entry entry : map.entrySet()) {
+ for(Entry<Enchantment, Integer> entry : map.entrySet()) { // Paper - decompile fix
Enchantment enchantment = (Enchantment)entry.getKey();
if (enchantment != null) {
int i = entry.getValue();
@@ -146,7 +146,7 @@ public class EnchantmentManager {
}
2018-07-20 05:55:27 +08:00
2018-09-01 06:56:57 +08:00
public static int a(Enchantment enchantment, EntityLiving entityliving) {
- List list = enchantment.a(entityliving);
+ List<ItemStack> list = enchantment.a(entityliving); // Paper - decompile fix
if (list == null) {
return 0;
} else {
@@ -224,7 +224,7 @@ public class EnchantmentManager {
}
2018-07-20 05:55:27 +08:00
2018-09-01 06:56:57 +08:00
public static ItemStack b(Enchantment enchantment, EntityLiving entityliving) {
- List list = enchantment.a(entityliving);
+ List<ItemStack> list = enchantment.a(entityliving);// Paper - decompile fix
if (list.isEmpty()) {
return ItemStack.a;
} else {
@@ -260,7 +260,7 @@ public class EnchantmentManager {
}
2018-07-20 05:55:27 +08:00
2018-09-01 06:56:57 +08:00
public static ItemStack a(Random random, ItemStack itemstack, int i, boolean flag) {
- List list = b(random, itemstack, i, flag);
+ List<WeightedRandomEnchant> list = b(random, itemstack, i, flag); // Paper - decompile fix
boolean flag1 = itemstack.getItem() == Items.BOOK;
if (flag1) {
itemstack = new ItemStack(Items.ENCHANTED_BOOK);
@@ -328,7 +328,7 @@ public class EnchantmentManager {
}
2018-07-20 05:55:27 +08:00
2018-09-01 06:56:57 +08:00
public static List<WeightedRandomEnchant> a(int i, ItemStack itemstack, boolean flag) {
- ArrayList arraylist = Lists.newArrayList();
+ ArrayList<WeightedRandomEnchant> arraylist = Lists.newArrayList();
Item item = itemstack.getItem();
boolean flag1 = itemstack.getItem() == Items.BOOK;
diff --git a/src/main/java/net/minecraft/server/EntityDragonFireball.java b/src/main/java/net/minecraft/server/EntityDragonFireball.java
index 04cff50cb7..e746a6a0da 100644
--- a/src/main/java/net/minecraft/server/EntityDragonFireball.java
+++ b/src/main/java/net/minecraft/server/EntityDragonFireball.java
@@ -14,7 +14,7 @@ public class EntityDragonFireball extends EntityFireball {
protected void a(MovingObjectPosition movingobjectposition) {
if (movingobjectposition.entity == null || !movingobjectposition.entity.s(this.shooter)) {
if (!this.world.isClientSide) {
- List list = this.world.a(EntityLiving.class, this.getBoundingBox().grow(4.0D, 2.0D, 4.0D));
+ List<EntityLiving> list = this.world.a(EntityLiving.class, this.getBoundingBox().grow(4.0D, 2.0D, 4.0D)); // Paper - decompile fix
EntityAreaEffectCloud entityareaeffectcloud = new EntityAreaEffectCloud(this.world, this.locX, this.locY, this.locZ);
entityareaeffectcloud.setSource(this.shooter);
entityareaeffectcloud.setParticle(Particles.j);
2018-08-01 09:13:40 +08:00
diff --git a/src/main/java/net/minecraft/server/EnumDirection.java b/src/main/java/net/minecraft/server/EnumDirection.java
2018-09-01 06:56:57 +08:00
index 38c85f4ab7..c0853f0fcd 100644
2018-08-01 09:13:40 +08:00
--- a/src/main/java/net/minecraft/server/EnumDirection.java
+++ b/src/main/java/net/minecraft/server/EnumDirection.java
2018-09-01 06:56:57 +08:00
@@ -233,7 +233,7 @@ public enum EnumDirection implements INamable {
2018-08-01 09:13:40 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-01 09:13:40 +08:00
- public boolean test(@Nullable Object object) {
2018-09-01 06:56:57 +08:00
+ public boolean test(@Nullable EnumDirection object) { // Paper - decompile fix
return super.a((EnumDirection)object);
}
2018-08-01 09:13:40 +08:00
},
2018-09-01 06:56:57 +08:00
@@ -247,7 +247,7 @@ public enum EnumDirection implements INamable {
2018-08-01 09:13:40 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-01 09:13:40 +08:00
- public boolean test(@Nullable Object object) {
2018-09-01 06:56:57 +08:00
+ public boolean test(@Nullable EnumDirection object) { // Paper - decompile fix
return super.a((EnumDirection)object);
}
2018-08-01 09:13:40 +08:00
},
2018-09-01 06:56:57 +08:00
@@ -261,7 +261,7 @@ public enum EnumDirection implements INamable {
2018-08-01 09:13:40 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-01 09:13:40 +08:00
- public boolean test(@Nullable Object object) {
2018-09-01 06:56:57 +08:00
+ public boolean test(@Nullable EnumDirection object) { // Paper - decompile fix
return super.a((EnumDirection)object);
}
2018-08-01 09:13:40 +08:00
};
2018-09-01 06:56:57 +08:00
@@ -316,7 +316,7 @@ public enum EnumDirection implements INamable {
public abstract double a(double var1, double var3, double var5);
2018-08-01 09:13:40 +08:00
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-01 09:13:40 +08:00
- public boolean test(@Nullable Object object) {
2018-09-01 06:56:57 +08:00
+ public boolean test(@Nullable EnumDirection object) { // Paper - decompile fix
return this.a((EnumDirection)object);
}
}
@@ -367,7 +367,7 @@ public enum EnumDirection implements INamable {
2018-08-01 09:13:40 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
- public boolean test(@Nullable Object object) {
+ public boolean test(@Nullable EnumDirection object) { // Paper - decompile fix
return this.a((EnumDirection)object);
}
}
2018-09-01 18:09:13 +08:00
diff --git a/src/main/java/net/minecraft/server/IChatBaseComponent.java b/src/main/java/net/minecraft/server/IChatBaseComponent.java
index 3f5d6c3239..286c1b14f6 100644
--- a/src/main/java/net/minecraft/server/IChatBaseComponent.java
+++ b/src/main/java/net/minecraft/server/IChatBaseComponent.java
@@ -390,12 +390,12 @@ public interface IChatBaseComponent extends Message, Iterable<IChatBaseComponent
}
// $FF: synthetic method
- public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) {
+ public JsonElement serialize(IChatBaseComponent object, Type type, JsonSerializationContext jsonserializationcontext) { // Paper - decompile fix
return this.a((IChatBaseComponent)object, type, jsonserializationcontext);
}
// $FF: synthetic method
- public Object deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {
+ public IChatBaseComponent deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException { // Paper - decompile fix
return this.a(jsonelement, type, jsondeserializationcontext);
}
}
2018-07-31 05:07:36 +08:00
diff --git a/src/main/java/net/minecraft/server/LocaleLanguage.java b/src/main/java/net/minecraft/server/LocaleLanguage.java
2018-09-01 06:56:57 +08:00
index 0c9249cd8d..0648c76a07 100644
2018-07-31 05:07:36 +08:00
--- a/src/main/java/net/minecraft/server/LocaleLanguage.java
+++ b/src/main/java/net/minecraft/server/LocaleLanguage.java
2018-09-01 06:56:57 +08:00
@@ -27,7 +27,7 @@ public class LocaleLanguage {
JsonElement jsonelement = (JsonElement)(new Gson()).fromJson(new InputStreamReader(inputstream, StandardCharsets.UTF_8), JsonElement.class);
JsonObject jsonobject = ChatDeserializer.m(jsonelement, "strings");
- for(Entry entry : jsonobject.entrySet()) {
+ for(Entry<String, JsonElement> entry : jsonobject.entrySet()) {// Paper - Decompile fix
String s = b.matcher(ChatDeserializer.a((JsonElement)entry.getValue(), (String)entry.getKey())).replaceAll("%$1s");
this.d.put(entry.getKey(), s);
2018-07-31 05:07:36 +08:00
}
2018-08-27 02:11:49 +08:00
diff --git a/src/main/java/net/minecraft/server/LootSelectorEntry.java b/src/main/java/net/minecraft/server/LootSelectorEntry.java
2018-09-01 06:56:57 +08:00
index 9d01b70c7f..8daccdd6e9 100644
2018-08-27 02:11:49 +08:00
--- a/src/main/java/net/minecraft/server/LootSelectorEntry.java
+++ b/src/main/java/net/minecraft/server/LootSelectorEntry.java
2018-09-01 06:56:57 +08:00
@@ -83,12 +83,12 @@ public abstract class LootSelectorEntry {
2018-08-27 02:11:49 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-27 02:11:49 +08:00
- public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) {
2018-09-01 06:56:57 +08:00
+ public JsonElement serialize(LootSelectorEntry object, Type type, JsonSerializationContext jsonserializationcontext) {// Paper - Decompile fix
return this.a((LootSelectorEntry)object, type, jsonserializationcontext);
2018-08-27 02:11:49 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-27 02:11:49 +08:00
- public Object deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {
2018-09-01 06:56:57 +08:00
+ public LootSelectorEntry deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {// Paper - Decompile fix
2018-08-27 02:11:49 +08:00
return this.a(jsonelement, type, jsondeserializationcontext);
}
}
diff --git a/src/main/java/net/minecraft/server/NBTBase.java b/src/main/java/net/minecraft/server/NBTBase.java
2018-09-01 06:56:57 +08:00
index 7e88bcd6e4..b98dfe27d5 100644
2018-08-27 02:11:49 +08:00
--- a/src/main/java/net/minecraft/server/NBTBase.java
+++ b/src/main/java/net/minecraft/server/NBTBase.java
2018-09-01 06:56:57 +08:00
@@ -87,7 +87,7 @@ public interface NBTBase {
2018-08-27 02:11:49 +08:00
}
}
2018-09-01 06:56:57 +08:00
- NBTBase clone();
+ public NBTBase clone(); // Paper - decompile fix
default String b_() {
return this.toString();
2018-08-27 02:11:49 +08:00
diff --git a/src/main/java/net/minecraft/server/NBTList.java b/src/main/java/net/minecraft/server/NBTList.java
2018-09-01 06:56:57 +08:00
index 456b5f4925..54f2935c08 100644
2018-08-27 02:11:49 +08:00
--- a/src/main/java/net/minecraft/server/NBTList.java
+++ b/src/main/java/net/minecraft/server/NBTList.java
2018-09-01 06:56:57 +08:00
@@ -25,6 +25,7 @@ public abstract class NBTList<T extends NBTBase> extends AbstractList<T> impleme
public abstract void b(int var1);
2018-08-27 02:11:49 +08:00
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
+ /* // Paper start- Decompile fix
public Object set(int i, Object object) {
return this.set(i, (NBTBase)object);
}
@@ -32,5 +33,9 @@ public abstract class NBTList<T extends NBTBase> extends AbstractList<T> impleme
// $FF: synthetic method
public Object get(int i) {
return this.get(i);
2018-08-27 02:11:49 +08:00
- }
2018-09-01 06:56:57 +08:00
+ }*/
+
+ @Override
+ public abstract NBTBase clone();
+ // Paper end- Decompile fix
2018-08-27 02:11:49 +08:00
}
diff --git a/src/main/java/net/minecraft/server/NBTTagByteArray.java b/src/main/java/net/minecraft/server/NBTTagByteArray.java
index 11ffa6c342..5d61cf70bc 100644
--- a/src/main/java/net/minecraft/server/NBTTagByteArray.java
+++ b/src/main/java/net/minecraft/server/NBTTagByteArray.java
@@ -66,7 +66,8 @@ public class NBTTagByteArray extends NBTList<NBTTagByte> {
return stringbuilder.append(']').toString();
}
- public NBTBase clone() {
+ @Override
+ public NBTTagByteArray clone() { // Paper - decompile fix
byte[] abyte = new byte[this.data.length];
System.arraycopy(this.data, 0, abyte, 0, this.data.length);
diff --git a/src/main/java/net/minecraft/server/NBTTagIntArray.java b/src/main/java/net/minecraft/server/NBTTagIntArray.java
index f5c9b97d5c..d121ad4f7a 100644
--- a/src/main/java/net/minecraft/server/NBTTagIntArray.java
+++ b/src/main/java/net/minecraft/server/NBTTagIntArray.java
@@ -132,7 +132,7 @@ public class NBTTagIntArray extends NBTList<NBTTagInt> {
return this.a(i);
}
- public NBTBase clone() {
+ public NBTTagIntArray clone() { // Paper - decompile fix
return this.c();
}
}
diff --git a/src/main/java/net/minecraft/server/NBTTagList.java b/src/main/java/net/minecraft/server/NBTTagList.java
2018-09-01 06:56:57 +08:00
index 5b54cbde18..769d599c59 100644
2018-08-27 02:11:49 +08:00
--- a/src/main/java/net/minecraft/server/NBTTagList.java
+++ b/src/main/java/net/minecraft/server/NBTTagList.java
2018-09-01 06:56:57 +08:00
@@ -12,7 +12,7 @@ import org.apache.logging.log4j.Logger;
2018-08-27 02:11:49 +08:00
2018-09-01 06:56:57 +08:00
public class NBTTagList extends NBTList<NBTBase> {
2018-08-27 02:11:49 +08:00
private static final Logger f = LogManager.getLogger();
- private List<NBTBase> list = Lists.newArrayList();
+ public List<NBTBase> list = Lists.newArrayList(); // Paper
private byte type = 0;
2018-09-01 06:56:57 +08:00
public NBTTagList() {
@@ -286,6 +286,7 @@ public class NBTTagList extends NBTList<NBTBase> {
2018-08-27 02:11:49 +08:00
return this.c();
}
2018-08-26 10:37:58 +08:00
2018-09-01 06:56:57 +08:00
+ /* // Paper start - Decompile fix
// $FF: synthetic method
public Object remove(int i) {
return this.remove(i);
@@ -305,4 +306,5 @@ public class NBTTagList extends NBTList<NBTBase> {
public boolean add(Object object) {
return this.add((NBTBase)object);
2018-08-26 10:37:58 +08:00
}
2018-09-01 06:56:57 +08:00
+ */ // Paper end - Decompile fix
}
diff --git a/src/main/java/net/minecraft/server/Registry.java b/src/main/java/net/minecraft/server/Registry.java
index 5be9f0ff2f..9efec49d66 100644
--- a/src/main/java/net/minecraft/server/Registry.java
+++ b/src/main/java/net/minecraft/server/Registry.java
@@ -1,4 +1,8 @@
package net.minecraft.server;
-public interface Registry extends Iterable {
+import java.util.Iterator;
+public interface Registry<T> extends Iterable<T> { // Paper - decompile fix
+
+ @Override
+ Iterator<T> iterator(); // Paper - decompile fix
}
2018-08-27 02:11:49 +08:00
diff --git a/src/main/java/net/minecraft/server/RegistryBlockID.java b/src/main/java/net/minecraft/server/RegistryBlockID.java
2018-09-01 06:56:57 +08:00
index 8d1f9237aa..a21006290c 100644
2018-08-27 02:11:49 +08:00
--- a/src/main/java/net/minecraft/server/RegistryBlockID.java
+++ b/src/main/java/net/minecraft/server/RegistryBlockID.java
2018-09-01 06:56:57 +08:00
@@ -26,7 +26,7 @@ public class RegistryBlockID<T> implements Registry<T> {
this.b.put(object, i);
2018-08-27 02:11:49 +08:00
2018-09-01 06:56:57 +08:00
while(this.c.size() <= i) {
- this.c.add((Object)null);
2018-08-27 02:11:49 +08:00
+ this.c.add(null); // Paper - decompile fix
}
2018-09-01 06:56:57 +08:00
this.c.set(i, object);
2018-07-24 01:10:06 +08:00
diff --git a/src/main/java/net/minecraft/server/RegistryID.java b/src/main/java/net/minecraft/server/RegistryID.java
2018-09-01 06:56:57 +08:00
index 03c6033622..d03ac0e70c 100644
2018-07-24 01:10:06 +08:00
--- a/src/main/java/net/minecraft/server/RegistryID.java
+++ b/src/main/java/net/minecraft/server/RegistryID.java
2018-09-01 06:56:57 +08:00
@@ -49,7 +49,7 @@ public class RegistryID<K> implements Registry<K> {
2018-07-24 01:10:06 +08:00
}
private void d(int i) {
- Object[] aobject = this.b;
+ K[] aobject = this.b; // Paper - decompile fix
int[] aint = this.c;
2018-09-01 06:56:57 +08:00
this.b = (K[])(new Object[i]);
2018-07-24 01:10:06 +08:00
this.c = new int[i];
2018-08-27 02:11:49 +08:00
diff --git a/src/main/java/net/minecraft/server/ServerPing.java b/src/main/java/net/minecraft/server/ServerPing.java
2018-09-01 06:56:57 +08:00
index 7b8a8064b8..615aa2cd04 100644
2018-08-27 02:11:49 +08:00
--- a/src/main/java/net/minecraft/server/ServerPing.java
+++ b/src/main/java/net/minecraft/server/ServerPing.java
2018-09-01 06:56:57 +08:00
@@ -101,12 +101,12 @@ public class ServerPing {
2018-08-27 02:11:49 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-27 02:11:49 +08:00
- public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) {
2018-09-01 06:56:57 +08:00
+ public JsonElement serialize(ServerPing object, Type type, JsonSerializationContext jsonserializationcontext) {// Paper - Decompile fix
return this.a((ServerPing)object, type, jsonserializationcontext);
2018-08-27 02:11:49 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-27 02:11:49 +08:00
- public Object deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {
2018-09-01 06:56:57 +08:00
+ public ServerPing deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {// Paper - Decompile fix
2018-08-27 02:11:49 +08:00
return this.a(jsonelement, type, jsondeserializationcontext);
}
}
2018-09-01 06:56:57 +08:00
@@ -145,12 +145,12 @@ public class ServerPing {
2018-08-27 02:11:49 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-27 02:11:49 +08:00
- public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) {
2018-09-01 06:56:57 +08:00
+ public JsonElement serialize(ServerPing.ServerData object, Type type, JsonSerializationContext jsonserializationcontext) {// Paper - Decompile fix
return this.a((ServerPing.ServerData)object, type, jsonserializationcontext);
2018-08-27 02:11:49 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-27 02:11:49 +08:00
- public Object deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {
2018-09-01 06:56:57 +08:00
+ public ServerPing.ServerData deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {// Paper - Decompile fix
2018-08-27 02:11:49 +08:00
return this.a(jsonelement, type, jsondeserializationcontext);
}
}
2018-09-01 06:56:57 +08:00
@@ -229,12 +229,12 @@ public class ServerPing {
2018-08-27 02:11:49 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-27 02:11:49 +08:00
- public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) {
2018-09-01 06:56:57 +08:00
+ public JsonElement serialize(ServerPing.ServerPingPlayerSample object, Type type, JsonSerializationContext jsonserializationcontext) {// Paper - Decompile fix
return this.a((ServerPing.ServerPingPlayerSample)object, type, jsonserializationcontext);
2018-08-27 02:11:49 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-27 02:11:49 +08:00
- public Object deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {
2018-09-01 06:56:57 +08:00
+ public ServerPing.ServerPingPlayerSample deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {// Paper - Decompile fix
2018-08-27 02:11:49 +08:00
return this.a(jsonelement, type, jsondeserializationcontext);
}
}
2018-08-01 09:13:40 +08:00
diff --git a/src/main/java/net/minecraft/server/ShapeDetector.java b/src/main/java/net/minecraft/server/ShapeDetector.java
2018-09-01 06:56:57 +08:00
index ef9d8e06fe..0c9910d9a5 100644
2018-08-01 09:13:40 +08:00
--- a/src/main/java/net/minecraft/server/ShapeDetector.java
+++ b/src/main/java/net/minecraft/server/ShapeDetector.java
2018-09-01 06:56:57 +08:00
@@ -107,7 +107,7 @@ public class ShapeDetector {
2018-08-01 09:13:40 +08:00
}
2018-09-01 06:56:57 +08:00
// $FF: synthetic method
2018-08-01 09:13:40 +08:00
- public Object load(Object object) throws Exception {
2018-09-01 06:56:57 +08:00
+ public ShapeDetectorBlock load(BlockPosition object) throws Exception {// Paper - Decompile fix
return this.a((BlockPosition)object);
2018-08-01 09:13:40 +08:00
}
}
2016-03-31 08:50:23 +08:00
--
2018-08-10 10:50:05 +08:00
2.18.0
2016-03-31 08:50:23 +08:00