SPIGOT-5809: block.getState() wall signs too

Dieser Commit ist enthalten in:
md_5 2020-06-25 20:08:32 +10:00
Ursprung 68b98b3d24
Commit 3f0c333870
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: E8E901AC7C617C11
4 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -316,6 +316,7 @@ public class CraftBlock implements Block {
case BIRCH_SIGN:
case BIRCH_WALL_SIGN:
case CRIMSON_SIGN:
case CRIMSON_WALL_SIGN:
case DARK_OAK_SIGN:
case DARK_OAK_WALL_SIGN:
case JUNGLE_SIGN:
@ -325,6 +326,7 @@ public class CraftBlock implements Block {
case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN:
case WARPED_SIGN:
case WARPED_WALL_SIGN:
return new CraftSign(this);
case CHEST:
case TRAPPED_CHEST:

Datei anzeigen

@ -201,6 +201,7 @@ public final class CraftItemFactory implements ItemFactory {
case BIRCH_SIGN:
case BIRCH_WALL_SIGN:
case CRIMSON_SIGN:
case CRIMSON_WALL_SIGN:
case DARK_OAK_SIGN:
case DARK_OAK_WALL_SIGN:
case JUNGLE_SIGN:
@ -210,6 +211,7 @@ public final class CraftItemFactory implements ItemFactory {
case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN:
case WARPED_SIGN:
case WARPED_WALL_SIGN:
case SPAWNER:
case BREWING_STAND:
case ENCHANTING_TABLE:

Datei anzeigen

@ -470,6 +470,7 @@ public final class CraftItemStack extends ItemStack {
case BIRCH_SIGN:
case BIRCH_WALL_SIGN:
case CRIMSON_SIGN:
case CRIMSON_WALL_SIGN:
case DARK_OAK_SIGN:
case DARK_OAK_WALL_SIGN:
case JUNGLE_SIGN:
@ -479,6 +480,7 @@ public final class CraftItemStack extends ItemStack {
case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN:
case WARPED_SIGN:
case WARPED_WALL_SIGN:
case SPAWNER:
case BREWING_STAND:
case ENCHANTING_TABLE:

Datei anzeigen

@ -196,6 +196,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case BIRCH_SIGN:
case BIRCH_WALL_SIGN:
case CRIMSON_SIGN:
case CRIMSON_WALL_SIGN:
case DARK_OAK_SIGN:
case DARK_OAK_WALL_SIGN:
case JUNGLE_SIGN:
@ -205,6 +206,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN:
case WARPED_SIGN:
case WARPED_WALL_SIGN:
case SPAWNER:
case BREWING_STAND:
case ENCHANTING_TABLE:
@ -303,6 +305,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case BIRCH_SIGN:
case BIRCH_WALL_SIGN:
case CRIMSON_SIGN:
case CRIMSON_WALL_SIGN:
case DARK_OAK_SIGN:
case DARK_OAK_WALL_SIGN:
case JUNGLE_SIGN:
@ -312,6 +315,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN:
case WARPED_SIGN:
case WARPED_WALL_SIGN:
if (te == null) {
te = new TileEntitySign();
}
@ -534,6 +538,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case BIRCH_SIGN:
case BIRCH_WALL_SIGN:
case CRIMSON_SIGN:
case CRIMSON_WALL_SIGN:
case DARK_OAK_SIGN:
case DARK_OAK_WALL_SIGN:
case JUNGLE_SIGN:
@ -543,6 +548,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN:
case WARPED_SIGN:
case WARPED_WALL_SIGN:
valid = blockState instanceof CraftSign;
break;
case CHEST: