Updated Upstream (Bukkit/CraftBukkit/Spigot)
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 78568d11 Tweak Block.getTemperature to return actual block temperature 9ad459ca SPIGOT-2151: Add support for getting simple bounding box of a block ad28b19f Add BlockData#getAsString(boolean) to hide unspecified states CraftBukkit Changes: 1b982fd6 Tweak Block.getTemperature to return actual block temperature f55c8191 SPIGOT-2151: Add support for getting simple bounding box of a block 4b843638 Add BlockData#getAsString(boolean) to hide unspecified states Spigot Changes: 573cdf2c BUILDTOOLS-425: Disable commit.gpgSign in applyPatches.sh 667bdd6b Deprecate Spigot version of Entity.isInvulnerable
This commit is contained in:
@@ -39,7 +39,7 @@ index b3c5766a2..29fe031d8 100644
|
||||
return null;
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
|
||||
index 1fadbf054..96cbaef52 100644
|
||||
index d40127075..e7ccee480 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
|
||||
@@ -0,0 +0,0 @@ public class CraftBlock implements Block {
|
||||
|
||||
@@ -5,12 +5,12 @@ Subject: [PATCH] Implement an API for CanPlaceOn and CanDestroy NBT values
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/ArgumentBlock.java b/src/main/java/net/minecraft/server/ArgumentBlock.java
|
||||
index 35c436d19..fcfb17e4e 100644
|
||||
index 00026eef7..207f95dcf 100644
|
||||
--- a/src/main/java/net/minecraft/server/ArgumentBlock.java
|
||||
+++ b/src/main/java/net/minecraft/server/ArgumentBlock.java
|
||||
@@ -0,0 +0,0 @@ public class ArgumentBlock {
|
||||
private final boolean j;
|
||||
private final Map<IBlockState<?>, Comparable<?>> k = Maps.newHashMap();
|
||||
private final Map<IBlockState<?>, Comparable<?>> k = Maps.newLinkedHashMap(); // CraftBukkit - stable
|
||||
private final Map<String, String> l = Maps.newHashMap();
|
||||
- private MinecraftKey m = new MinecraftKey("");
|
||||
+ private MinecraftKey m = new MinecraftKey(""); public MinecraftKey getBlockKey() { return this.m; } // Paper - OBFHELPER
|
||||
@@ -30,77 +30,9 @@ index 35c436d19..fcfb17e4e 100644
|
||||
+ public ArgumentBlock parse(boolean parseTile) throws CommandSyntaxException { return this.a(parseTile); } // Paper - OBFHELPER
|
||||
public ArgumentBlock a(boolean flag) throws CommandSyntaxException {
|
||||
this.s = this::l;
|
||||
if (this.i.canRead() && this.i.peek() == '#') {
|
||||
@@ -0,0 +0,0 @@ public class ArgumentBlock {
|
||||
if (this.q != null && !this.q.getKey().isEmpty()) {
|
||||
Tag tag = TagsBlock.a().a(this.q);
|
||||
if (tag != null) {
|
||||
- for(Block block : tag.a()) {
|
||||
+ for(Block block : (java.util.Collection<Block>) tag.a()) { // Paper - decompiler fix
|
||||
for(IBlockState iblockstate : block.getStates().d()) {
|
||||
if (!this.l.containsKey(iblockstate.a()) && iblockstate.a().startsWith(sx)) {
|
||||
suggestionsbuilder.suggest(iblockstate.a() + '=');
|
||||
@@ -0,0 +0,0 @@ public class ArgumentBlock {
|
||||
if (this.q != null) {
|
||||
Tag tag = TagsBlock.a().a(this.q);
|
||||
if (tag != null) {
|
||||
- for(Block block : tag.a()) {
|
||||
+ for(Block block : (java.util.Collection<Block>) tag.a()) { // Paper - decompiler fix
|
||||
if (block.isTileEntity()) {
|
||||
return true;
|
||||
}
|
||||
@@ -0,0 +0,0 @@ public class ArgumentBlock {
|
||||
private static <T extends Comparable<T>> SuggestionsBuilder a(SuggestionsBuilder suggestionsbuilder, IBlockState<T> iblockstate) {
|
||||
for(Comparable comparable : iblockstate.d()) {
|
||||
if (comparable instanceof Integer) {
|
||||
- suggestionsbuilder.suggest(comparable);
|
||||
+ suggestionsbuilder.suggest((Integer) comparable); // Paper - decompiler fix
|
||||
} else {
|
||||
- suggestionsbuilder.suggest(iblockstate.a(comparable));
|
||||
+ suggestionsbuilder.suggest(iblockstate.a((T) comparable)); // Paper - decompiler fix
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +0,0 @@ public class ArgumentBlock {
|
||||
Tag tag = TagsBlock.a().a(this.q);
|
||||
if (tag != null) {
|
||||
label40:
|
||||
- for(Block block : tag.a()) {
|
||||
+ for(Block block : (java.util.Collection<Block>) tag.a()) { // Paper - decompiler fix
|
||||
IBlockState iblockstate = block.getStates().a(sx);
|
||||
if (iblockstate != null) {
|
||||
a(suggestionsbuilder, iblockstate);
|
||||
@@ -0,0 +0,0 @@ public class ArgumentBlock {
|
||||
boolean flag = false;
|
||||
boolean flag1 = false;
|
||||
|
||||
- for(Block block : tag.a()) {
|
||||
+ for(Block block : (java.util.Collection<Block>) tag.a()) { // Paper - decompiler fix
|
||||
flag |= !block.getStates().d().isEmpty();
|
||||
flag1 |= block.isTileEntity();
|
||||
if (flag && flag1) {
|
||||
@@ -0,0 +0,0 @@ public class ArgumentBlock {
|
||||
private <T extends Comparable<T>> void a(IBlockState<T> iblockstate, String sx, int ix) throws CommandSyntaxException {
|
||||
Optional optional = iblockstate.b(sx);
|
||||
if (optional.isPresent()) {
|
||||
- this.o = (IBlockData)this.o.set(iblockstate, (Comparable)optional.get());
|
||||
- this.k.put(iblockstate, optional.get());
|
||||
+ this.o = (IBlockData)this.o.set(iblockstate, (T)optional.get()); // Paper - decompiler fix
|
||||
+ this.k.put(iblockstate, (Comparable<?>) optional.get()); // Paper - decompiler fix
|
||||
} else {
|
||||
this.i.setCursor(ix);
|
||||
throw e.createWithContext(this.i, this.m.toString(), iblockstate.a(), sx);
|
||||
@@ -0,0 +0,0 @@ public class ArgumentBlock {
|
||||
private static <T extends Comparable<T>> void a(StringBuilder stringbuilder, IBlockState<T> iblockstate, Comparable<?> comparable) {
|
||||
stringbuilder.append(iblockstate.a());
|
||||
stringbuilder.append('=');
|
||||
- stringbuilder.append(iblockstate.a(comparable));
|
||||
+ stringbuilder.append(iblockstate.a((T) comparable)); // Paper - decompile fix
|
||||
}
|
||||
|
||||
public CompletableFuture<Suggestions> a(SuggestionsBuilder suggestionsbuilder) {
|
||||
if (this.i.canRead() && this.i.peek() == 35) {
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||
index 197563552..d34b017f9 100644
|
||||
index 2446badd8..356390db7 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||
@@ -0,0 +0,0 @@ import javax.annotation.Nullable;
|
||||
|
||||
@@ -47,7 +47,7 @@ index 1423419b9..2d855aae6 100644
|
||||
return this.getBlock().n(this);
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/block/data/CraftBlockData.java b/src/main/java/org/bukkit/craftbukkit/block/data/CraftBlockData.java
|
||||
index d470e2b34..b9279d925 100644
|
||||
index 57f483367..8ac8969e2 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/block/data/CraftBlockData.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/block/data/CraftBlockData.java
|
||||
@@ -0,0 +0,0 @@ public class CraftBlockData implements BlockData {
|
||||
|
||||
Reference in New Issue
Block a user