From 4e856ef3964fe8616b7db61ba2df9a242d03f8b0 Mon Sep 17 00:00:00 2001 From: EnZaXD <60033407+FlorianMichael@users.noreply.github.com> Date: Wed, 27 Mar 2024 13:27:19 +0100 Subject: [PATCH] Various API changes to LegacyBlockItemRewriter (#703) --- .../BackwardsStructuredItemRewriter.java | 4 +- .../api/rewriters/ItemRewriter.java | 6 +- .../api/rewriters/ItemRewriterBase.java | 18 ++-- .../rewriters/LegacyBlockItemRewriter.java | 76 ++++++++++++---- .../packets/BlockItemPackets1_11.java | 39 ++------ .../packets/EntityPackets1_11.java | 19 +--- .../packets/BlockItemPackets1_12.java | 33 +------ .../packets/EntityPackets1_12.java | 19 +--- .../packets/ItemPackets1_11_1.java | 8 +- .../packets/BlockItemPackets1_13.java | 2 +- .../packets/BlockItemPackets1_20.java | 4 +- .../packets/BlockItemPackets1_10.java | 35 +------- .../packets/EntityPackets1_10.java | 19 +--- .../viabackwards/data/item-mappings-1.10.json | 33 +++++++ .../data/item-mappings-1.11.1.json | 6 ++ .../viabackwards/data/item-mappings-1.11.json | 21 +++++ .../viabackwards/data/item-mappings-1.12.json | 27 ++++++ .../viabackwards/data/legacy-mappings.json | 89 ------------------- 18 files changed, 187 insertions(+), 271 deletions(-) create mode 100644 common/src/main/resources/assets/viabackwards/data/item-mappings-1.10.json create mode 100644 common/src/main/resources/assets/viabackwards/data/item-mappings-1.11.1.json create mode 100644 common/src/main/resources/assets/viabackwards/data/item-mappings-1.11.json create mode 100644 common/src/main/resources/assets/viabackwards/data/item-mappings-1.12.json delete mode 100644 common/src/main/resources/assets/viabackwards/data/legacy-mappings.json diff --git a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/BackwardsStructuredItemRewriter.java b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/BackwardsStructuredItemRewriter.java index 710c80d0..a59264c4 100644 --- a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/BackwardsStructuredItemRewriter.java +++ b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/BackwardsStructuredItemRewriter.java @@ -67,7 +67,7 @@ public class BackwardsStructuredItemRewriter> extends ItemRewriter { - protected final String nbtTagName; protected final boolean jsonNameFormat; + protected final String protocolName; protected ItemRewriterBase(T protocol, Type itemType, Type itemArrayType, Type mappedItemType, Type mappedItemArrayType, boolean jsonFormat) { super(protocol, itemType, itemArrayType, mappedItemType, mappedItemArrayType); this.jsonNameFormat = jsonFormat; - nbtTagName = "VB|" + protocol.getClass().getSimpleName(); + protocolName = protocol.getClass().getSimpleName(); } protected ItemRewriterBase(T protocol, Type itemType, Type itemArrayType, boolean jsonNameFormat) { @@ -55,12 +55,12 @@ public abstract class ItemRewriterBase original, String name) { // Multiple places might try to backup data - String backupName = nbtTagName + "|o" + name; + String backupName = getNbtTagName() + "|o" + name; if (!displayTag.contains(backupName)) { displayTag.put(backupName, original.copy()); } @@ -80,7 +80,7 @@ public abstract class ItemRewriterBase) original).copy()); } } public String getNbtTagName() { - return nbtTagName; + return "VB|" + protocolName; } } diff --git a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java index 18e6444c..2578253f 100644 --- a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java +++ b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java @@ -23,13 +23,17 @@ import com.viaversion.viabackwards.api.data.MappedLegacyBlockItem; import com.viaversion.viabackwards.api.data.BackwardsMappingDataLoader; import com.viaversion.viabackwards.protocol.protocol1_11_1to1_12.data.BlockColors; import com.viaversion.viabackwards.utils.Block; +import com.viaversion.viaversion.api.minecraft.BlockChangeRecord; import com.viaversion.viaversion.api.minecraft.chunks.Chunk; import com.viaversion.viaversion.api.minecraft.chunks.ChunkSection; import com.viaversion.viaversion.api.minecraft.chunks.DataPalette; import com.viaversion.viaversion.api.minecraft.chunks.PaletteType; +import com.viaversion.viaversion.api.minecraft.entities.EntityTypes1_12; import com.viaversion.viaversion.api.minecraft.item.Item; import com.viaversion.viaversion.api.protocol.packet.ClientboundPacketType; import com.viaversion.viaversion.api.protocol.packet.ServerboundPacketType; +import com.viaversion.viaversion.api.protocol.remapper.PacketHandler; +import com.viaversion.viaversion.api.protocol.remapper.PacketHandlers; import com.viaversion.viaversion.api.type.Type; import com.viaversion.viaversion.libs.fastutil.ints.Int2ObjectMap; import com.viaversion.viaversion.libs.fastutil.ints.Int2ObjectOpenHashMap; @@ -43,26 +47,27 @@ import com.viaversion.viaversion.libs.opennbt.tag.builtin.StringTag; import com.viaversion.viaversion.util.ComponentUtil; import java.util.HashMap; import java.util.Map; +import java.util.Optional; import org.checkerframework.checker.nullness.qual.Nullable; public abstract class LegacyBlockItemRewriter> extends ItemRewriterBase { - private static final Map> LEGACY_MAPPINGS = new HashMap<>(); - protected final Int2ObjectMap replacementData; // Raw id -> mapped data + protected final Int2ObjectMap replacementData = new Int2ObjectOpenHashMap<>(8); // Raw id -> mapped data - static { - JsonObject jsonObject = BackwardsMappingDataLoader.INSTANCE.loadFromDataDir("legacy-mappings.json"); - for (Map.Entry entry : jsonObject.entrySet()) { - Int2ObjectMap mappings = new Int2ObjectOpenHashMap<>(8); - LEGACY_MAPPINGS.put(entry.getKey(), mappings); - for (Map.Entry dataEntry : entry.getValue().getAsJsonObject().entrySet()) { - addMapping(dataEntry.getKey(), dataEntry.getValue().getAsJsonObject(), mappings); - } + protected LegacyBlockItemRewriter(T protocol, String name) { + super(protocol, Type.ITEM1_8, Type.ITEM1_8_SHORT_ARRAY, false); + final JsonObject jsonObject = readMappingsFile("item-mappings-" + name + ".json"); + for (Map.Entry dataEntry : jsonObject.entrySet()) { + addMapping(dataEntry.getKey(), dataEntry.getValue().getAsJsonObject(), replacementData); } } - private static void addMapping(String key, JsonObject object, Int2ObjectMap mappings) { + protected JsonObject readMappingsFile(final String name) { + return BackwardsMappingDataLoader.INSTANCE.loadFromDataDir(name); + } + + private void addMapping(String key, JsonObject object, Int2ObjectMap mappings) { int id = object.getAsJsonPrimitive("id").getAsInt(); JsonPrimitive jsonData = object.getAsJsonPrimitive("data"); short data = jsonData != null ? jsonData.getAsShort() : 0; @@ -104,9 +109,36 @@ public abstract class LegacyBlockItemRewriter { + int idx = wrapper.get(Type.VAR_INT, 0); + wrapper.set(Type.VAR_INT, 0, handleBlockID(idx)); + }); + } + }); + } + + public void registerMultiBlockChange(C packetType) { + protocol.registerClientbound(packetType, new PacketHandlers() { + @Override + public void register() { + map(Type.INT); // 0 - Chunk X + map(Type.INT); // 1 - Chunk Z + map(Type.BLOCK_CHANGE_RECORD_ARRAY); + + handler(wrapper -> { + for (BlockChangeRecord record : wrapper.get(Type.BLOCK_CHANGE_RECORD_ARRAY, 0)) { + record.setBlockId(handleBlockID(record.getBlockId())); + } + }); + } + }); } @Override @@ -141,7 +173,7 @@ public abstract class LegacyBlockItemRewriter { + final Optional type = EntityTypes1_12.ObjectType.findById(wrapper.get(Type.BYTE, 0)); + if (type.isPresent() && type.get() == EntityTypes1_12.ObjectType.FALLING_BLOCK) { + final int objectData = wrapper.get(Type.INT, 0); + + final Block block = handleBlock(objectData & 4095, objectData >> 12 & 15); + if (block == null) return; + + wrapper.set(Type.INT, 0, block.getId() | block.getData() << 12); + } + }; + } + public @Nullable Block handleBlock(int blockId, int data) { MappedLegacyBlockItem settings = getMappedBlockItem(blockId, data); if (settings == null || !settings.isBlock()) return null; diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_10to1_11/packets/BlockItemPackets1_11.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_10to1_11/packets/BlockItemPackets1_11.java index 62396466..c92864d1 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_10to1_11/packets/BlockItemPackets1_11.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_10to1_11/packets/BlockItemPackets1_11.java @@ -49,11 +49,14 @@ public class BlockItemPackets1_11 extends LegacyBlockItemRewriter { - int idx = wrapper.get(Type.VAR_INT, 0); - wrapper.set(Type.VAR_INT, 0, handleBlockID(idx)); - }); - } - }); - - protocol.registerClientbound(ClientboundPackets1_9_3.MULTI_BLOCK_CHANGE, new PacketHandlers() { - @Override - public void register() { - map(Type.INT); // 0 - Chunk X - map(Type.INT); // 1 - Chunk Z - map(Type.BLOCK_CHANGE_RECORD_ARRAY); - - handler(wrapper -> { - for (BlockChangeRecord record : wrapper.get(Type.BLOCK_CHANGE_RECORD_ARRAY, 0)) { - record.setBlockId(handleBlockID(record.getBlockId())); - } - }); - } - }); - protocol.registerClientbound(ClientboundPackets1_9_3.BLOCK_ENTITY_DATA, new PacketHandlers() { @Override public void register() { @@ -305,7 +280,7 @@ public class BlockItemPackets1_11 extends LegacyBlockItemRewriter { @@ -86,21 +83,7 @@ public class EntityPackets1_11 extends LegacyEntityRewriter EntityTypes1_11.ObjectType.findById(id).orElse(null))); - // Handle FallingBlock blocks - handler(wrapper -> { - Optional type = EntityTypes1_12.ObjectType.findById(wrapper.get(Type.BYTE, 0)); - if (type.isPresent() && type.get() == EntityTypes1_12.ObjectType.FALLING_BLOCK) { - int objectData = wrapper.get(Type.INT, 0); - int objType = objectData & 4095; - int data = objectData >> 12 & 15; - - Block block = protocol.getItemRewriter().handleBlock(objType, data); - if (block == null) - return; - - wrapper.set(Type.INT, 0, block.getId() | block.getData() << 12); - } - }); + handler(protocol.getItemRewriter().getFallingBlockHandler()); } }); diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11_1to1_12/packets/BlockItemPackets1_12.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11_1to1_12/packets/BlockItemPackets1_12.java index f7e9abe8..345125b6 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11_1to1_12/packets/BlockItemPackets1_12.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11_1to1_12/packets/BlockItemPackets1_12.java @@ -43,11 +43,14 @@ import org.checkerframework.checker.nullness.qual.Nullable; public class BlockItemPackets1_12 extends LegacyBlockItemRewriter { public BlockItemPackets1_12(Protocol1_11_1To1_12 protocol) { - super(protocol); + super(protocol, "1.12"); } @Override protected void registerPackets() { + registerBlockChange(ClientboundPackets1_12.BLOCK_CHANGE); + registerMultiBlockChange(ClientboundPackets1_12.MULTI_BLOCK_CHANGE); + protocol.registerClientbound(ClientboundPackets1_12.MAP_DATA, new PacketHandlers() { @Override public void register() { @@ -159,34 +162,6 @@ public class BlockItemPackets1_12 extends LegacyBlockItemRewriter { - int idx = wrapper.get(Type.VAR_INT, 0); - wrapper.set(Type.VAR_INT, 0, handleBlockID(idx)); - }); - } - }); - - protocol.registerClientbound(ClientboundPackets1_12.MULTI_BLOCK_CHANGE, new PacketHandlers() { - @Override - public void register() { - map(Type.INT); // 0 - Chunk X - map(Type.INT); // 1 - Chunk Z - map(Type.BLOCK_CHANGE_RECORD_ARRAY); - - handler(wrapper -> { - for (BlockChangeRecord record : wrapper.get(Type.BLOCK_CHANGE_RECORD_ARRAY, 0)) { - record.setBlockId(handleBlockID(record.getBlockId())); - } - }); - } - }); - protocol.registerClientbound(ClientboundPackets1_12.BLOCK_ENTITY_DATA, new PacketHandlers() { @Override public void register() { diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11_1to1_12/packets/EntityPackets1_12.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11_1to1_12/packets/EntityPackets1_12.java index 5693b8e6..ddf0fbf4 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11_1to1_12/packets/EntityPackets1_12.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11_1to1_12/packets/EntityPackets1_12.java @@ -22,7 +22,6 @@ import com.viaversion.viabackwards.api.rewriters.LegacyEntityRewriter; import com.viaversion.viabackwards.protocol.protocol1_11_1to1_12.Protocol1_11_1To1_12; import com.viaversion.viabackwards.protocol.protocol1_11_1to1_12.data.ParrotStorage; import com.viaversion.viabackwards.protocol.protocol1_11_1to1_12.data.ShoulderTracker; -import com.viaversion.viabackwards.utils.Block; import com.viaversion.viaversion.api.data.entity.StoredEntityData; import com.viaversion.viaversion.api.minecraft.entities.EntityType; import com.viaversion.viaversion.api.minecraft.entities.EntityTypes1_12; @@ -36,7 +35,6 @@ import com.viaversion.viaversion.libs.gson.JsonElement; import com.viaversion.viaversion.libs.opennbt.tag.builtin.CompoundTag; import com.viaversion.viaversion.protocols.protocol1_12to1_11_1.ClientboundPackets1_12; import com.viaversion.viaversion.protocols.protocol1_9_3to1_9_1_2.ClientboundPackets1_9_3; -import java.util.Optional; public class EntityPackets1_12 extends LegacyEntityRewriter { @@ -63,22 +61,7 @@ public class EntityPackets1_12 extends LegacyEntityRewriter EntityTypes1_12.ObjectType.findById(id).orElse(null))); - // Handle FallingBlock blocks - handler(wrapper -> { - Optional type = EntityTypes1_12.ObjectType.findById(wrapper.get(Type.BYTE, 0)); - if (type.isPresent() && type.get() == EntityTypes1_12.ObjectType.FALLING_BLOCK) { - int objectData = wrapper.get(Type.INT, 0); - int objType = objectData & 4095; - int data = objectData >> 12 & 15; - - Block block = protocol.getItemRewriter().handleBlock(objType, data); - if (block == null) { - return; - } - - wrapper.set(Type.INT, 0, block.getId() | block.getData() << 12); - } - }); + handler(protocol.getItemRewriter().getFallingBlockHandler()); } }); diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11to1_11_1/packets/ItemPackets1_11_1.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11to1_11_1/packets/ItemPackets1_11_1.java index e04c4a90..ce784c5d 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11to1_11_1/packets/ItemPackets1_11_1.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11to1_11_1/packets/ItemPackets1_11_1.java @@ -33,7 +33,7 @@ public class ItemPackets1_11_1 extends LegacyBlockItemRewriter { public BlockItemPackets1_10(Protocol1_9_4To1_10 protocol) { - super(protocol); + super(protocol, "1.10"); } @Override protected void registerPackets() { + registerBlockChange(ClientboundPackets1_9_3.BLOCK_CHANGE); + registerMultiBlockChange(ClientboundPackets1_9_3.MULTI_BLOCK_CHANGE); + registerSetSlot(ClientboundPackets1_9_3.SET_SLOT); registerWindowItems(ClientboundPackets1_9_3.WINDOW_ITEMS); @@ -83,36 +86,6 @@ public class BlockItemPackets1_10 extends LegacyBlockItemRewriter { - int idx = wrapper.get(Type.VAR_INT, 0); - wrapper.set(Type.VAR_INT, 0, handleBlockID(idx)); - }); - } - }); - - // Multi Block Change Packet - protocol.registerClientbound(ClientboundPackets1_9_3.MULTI_BLOCK_CHANGE, new PacketHandlers() { - @Override - public void register() { - map(Type.INT); // 0 - Chunk X - map(Type.INT); // 1 - Chunk Z - map(Type.BLOCK_CHANGE_RECORD_ARRAY); - - handler(wrapper -> { - for (BlockChangeRecord record : wrapper.get(Type.BLOCK_CHANGE_RECORD_ARRAY, 0)) { - record.setBlockId(handleBlockID(record.getBlockId())); - } - }); - } - }); - // Rewrite metadata items protocol.getEntityRewriter().filter().handler((event, meta) -> { if (meta.metaType().type().equals(Type.ITEM1_8)) // Is Item diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_9_4to1_10/packets/EntityPackets1_10.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_9_4to1_10/packets/EntityPackets1_10.java index 5dbf9e92..3c6f419e 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_9_4to1_10/packets/EntityPackets1_10.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_9_4to1_10/packets/EntityPackets1_10.java @@ -22,11 +22,9 @@ import com.viaversion.viabackwards.api.entities.storage.EntityData; import com.viaversion.viabackwards.api.entities.storage.WrappedMetadata; import com.viaversion.viabackwards.api.rewriters.LegacyEntityRewriter; import com.viaversion.viabackwards.protocol.protocol1_9_4to1_10.Protocol1_9_4To1_10; -import com.viaversion.viabackwards.utils.Block; import com.viaversion.viaversion.api.minecraft.entities.EntityType; import com.viaversion.viaversion.api.minecraft.entities.EntityTypes1_10; import com.viaversion.viaversion.api.minecraft.entities.EntityTypes1_11; -import com.viaversion.viaversion.api.minecraft.entities.EntityTypes1_12; import com.viaversion.viaversion.api.minecraft.metadata.Metadata; import com.viaversion.viaversion.api.minecraft.metadata.types.MetaType1_9; import com.viaversion.viaversion.api.protocol.remapper.PacketHandlers; @@ -34,7 +32,6 @@ import com.viaversion.viaversion.api.type.Type; import com.viaversion.viaversion.api.type.types.version.Types1_9; import com.viaversion.viaversion.protocols.protocol1_9_3to1_9_1_2.ClientboundPackets1_9_3; import java.util.List; -import java.util.Optional; public class EntityPackets1_10 extends LegacyEntityRewriter { @@ -61,21 +58,7 @@ public class EntityPackets1_10 extends LegacyEntityRewriter EntityTypes1_11.ObjectType.findById(id).orElse(null))); - // Handle FallingBlock blocks - handler(wrapper -> { - Optional type = EntityTypes1_12.ObjectType.findById(wrapper.get(Type.BYTE, 0)); - if (type.isPresent() && type.get() == EntityTypes1_12.ObjectType.FALLING_BLOCK) { - int objectData = wrapper.get(Type.INT, 0); - int objType = objectData & 4095; - int data = objectData >> 12 & 15; - - Block block = protocol.getItemRewriter().handleBlock(objType, data); - if (block == null) - return; - - wrapper.set(Type.INT, 0, block.getId() | block.getData() << 12); - } - }); + handler(protocol.getItemRewriter().getFallingBlockHandler()); } }); diff --git a/common/src/main/resources/assets/viabackwards/data/item-mappings-1.10.json b/common/src/main/resources/assets/viabackwards/data/item-mappings-1.10.json new file mode 100644 index 00000000..909adbf5 --- /dev/null +++ b/common/src/main/resources/assets/viabackwards/data/item-mappings-1.10.json @@ -0,0 +1,33 @@ +{ + "255": { + "id": 217, + "name": "1.10 Structure Block" + }, + "217": { + "id": 287, + "name": "1.10 Structure Void", + "block": true + }, + "213": { + "id": 159, + "data": 1, + "name": "1.10 Magma Block", + "block": true + }, + "214": { + "id": 159, + "data": 14, + "name": "1.10 Nether Wart Block", + "block": true + }, + "215": { + "id": 112, + "name": "1.10 Red Nether Bricks", + "block": true + }, + "216": { + "id": 155, + "name": "1.10 Bone Block", + "block": true + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/viabackwards/data/item-mappings-1.11.1.json b/common/src/main/resources/assets/viabackwards/data/item-mappings-1.11.1.json new file mode 100644 index 00000000..2c29ef68 --- /dev/null +++ b/common/src/main/resources/assets/viabackwards/data/item-mappings-1.11.1.json @@ -0,0 +1,6 @@ +{ + "452": { + "id": 265, + "name": "1.11.1 Iron Nugget" + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/viabackwards/data/item-mappings-1.11.json b/common/src/main/resources/assets/viabackwards/data/item-mappings-1.11.json new file mode 100644 index 00000000..1c81065c --- /dev/null +++ b/common/src/main/resources/assets/viabackwards/data/item-mappings-1.11.json @@ -0,0 +1,21 @@ +{ + "218": { + "id": 23, + "data": -1, + "name": "1.11 Observer", + "block": true + }, + "449": { + "id": 418, + "name": "1.11 Totem of Undying" + }, + "450": { + "id": 433, + "name": "1.11 Shulker Shell" + }, + "219-234": { + "id": 158, + "name": "1.11 %color% Shulker Box", + "block": true + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/viabackwards/data/item-mappings-1.12.json b/common/src/main/resources/assets/viabackwards/data/item-mappings-1.12.json new file mode 100644 index 00000000..f496c075 --- /dev/null +++ b/common/src/main/resources/assets/viabackwards/data/item-mappings-1.12.json @@ -0,0 +1,27 @@ +{ + "251": { + "id": 159, + "data": -1, + "name": "1.12 %vb_color% Concrete", + "block": true + }, + "252": { + "id": 35, + "data": -1, + "name": "1.12 %vb_color% Concrete Powder", + "block": true + }, + "453": { + "id": 340, + "name": "1.12 Knowledge Book" + }, + "355": { + "id": 355, + "name": "1.12 %vb_color% Bed" + }, + "235-250": { + "id": 159, + "name": "1.12 %color% Glazed Terracotta", + "block": true + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/viabackwards/data/legacy-mappings.json b/common/src/main/resources/assets/viabackwards/data/legacy-mappings.json deleted file mode 100644 index ca56bed6..00000000 --- a/common/src/main/resources/assets/viabackwards/data/legacy-mappings.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "1.12": { - "251": { - "id": 159, - "data": -1, - "name": "1.12 %vb_color% Concrete", - "block": true - }, - "252": { - "id": 35, - "data": -1, - "name": "1.12 %vb_color% Concrete Powder", - "block": true - }, - "453": { - "id": 340, - "name": "1.12 Knowledge Book" - }, - "355": { - "id": 355, - "name": "1.12 %vb_color% Bed" - }, - "235-250": { - "id": 159, - "name": "1.12 %color% Glazed Terracotta", - "block": true - } - }, - "1.11.1": { - "452": { - "id": 265, - "name": "1.11.1 Iron Nugget" - } - }, - "1.11": { - "218": { - "id": 23, - "data": -1, - "name": "1.11 Observer", - "block": true - }, - "449": { - "id": 418, - "name": "1.11 Totem of Undying" - }, - "450": { - "id": 433, - "name": "1.11 Shulker Shell" - }, - "219-234": { - "id": 158, - "name": "1.11 %color% Shulker Box", - "block": true - } - }, - "1.10": { - "255": { - "id": 217, - "name": "1.10 Structure Block" - }, - "217": { - "id": 287, - "name": "1.10 Structure Void", - "block": true - }, - "213": { - "id": 159, - "data": 1, - "name": "1.10 Magma Block", - "block": true - }, - "214": { - "id": 159, - "data": 14, - "name": "1.10 Nether Wart Block", - "block": true - }, - "215": { - "id": 112, - "name": "1.10 Red Nether Bricks", - "block": true - }, - "216": { - "id": 155, - "name": "1.10 Bone Block", - "block": true - } - } -} \ No newline at end of file