--- a/net/minecraft/commands/arguments/blocks/ArgumentBlock.java +++ b/net/minecraft/commands/arguments/blocks/ArgumentBlock.java @@ -61,7 +61,7 @@ }; private final StringReader reader; private final boolean forTesting; - private final Map, Comparable> properties = Maps.newHashMap(); + private final Map, Comparable> properties = Maps.newLinkedHashMap(); // CraftBukkit - stable private final Map vagueProperties = Maps.newHashMap(); private MinecraftKey id = new MinecraftKey(""); private BlockStateList definition; @@ -237,7 +237,7 @@ Iterator iterator = iblockstate.getValues().iterator(); while (iterator.hasNext()) { - T t0 = (Comparable) iterator.next(); + T t0 = (T) iterator.next(); // CraftBukkit - decompile error if (t0 instanceof Integer) { suggestionsbuilder.suggest((Integer) t0); @@ -506,7 +506,7 @@ Optional optional = iblockstate.b(s); if (optional.isPresent()) { - this.state = (IBlockData) this.state.set(iblockstate, (Comparable) optional.get()); + this.state = (IBlockData) this.state.set(iblockstate, (T) optional.get()); // CraftBukkit - decompile error this.properties.put(iblockstate, (Comparable) optional.get()); } else { this.reader.setCursor(i); @@ -540,7 +540,7 @@ private static > void a(StringBuilder stringbuilder, IBlockState iblockstate, Comparable comparable) { stringbuilder.append(iblockstate.getName()); stringbuilder.append('='); - stringbuilder.append(iblockstate.a(comparable)); + stringbuilder.append(iblockstate.a((T) comparable)); // CraftBukkit - decompile error } public CompletableFuture a(SuggestionsBuilder suggestionsbuilder, Tags tags) {