mirror of
https://github.com/PaperMC/Paper.git
synced 2024-08-31 09:09:56 +02:00
The data provided is always from the regionfile thread, which does not copy the data out. So if two separate calls need the data, then there's going to be a problem.
21688 lines
1.6 MiB
21688 lines
1.6 MiB
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
|
|
Date: Sat, 19 Jun 2021 10:43:01 -0700
|
|
Subject: [PATCH] Rewrite dataconverter system
|
|
|
|
Please see https://github.com/PaperMC/DataConverter
|
|
for details.
|
|
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/converters/DataConverter.java b/src/main/java/ca/spottedleaf/dataconverter/converters/DataConverter.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..1863c606be715683d53863a0c9293525d199c9cf
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/converters/DataConverter.java
|
|
@@ -0,0 +1,54 @@
|
|
+package ca.spottedleaf.dataconverter.converters;
|
|
+
|
|
+import java.util.Comparator;
|
|
+
|
|
+public abstract class DataConverter<T, R> {
|
|
+
|
|
+ public static final Comparator<DataConverter<?, ?>> LOWEST_VERSION_COMPARATOR = (x, y) -> {
|
|
+ return Long.compare(x.getEncodedVersion(), y.getEncodedVersion());
|
|
+ };
|
|
+
|
|
+ protected final int toVersion;
|
|
+ protected final int versionStep;
|
|
+
|
|
+ public DataConverter(final int toVersion) {
|
|
+ this.toVersion = toVersion;
|
|
+ this.versionStep = 0;
|
|
+ }
|
|
+
|
|
+ public DataConverter(final int toVersion, final int versionStep) {
|
|
+ this.toVersion = toVersion;
|
|
+ this.versionStep = versionStep;
|
|
+ }
|
|
+
|
|
+ public final int getToVersion() {
|
|
+ return this.toVersion;
|
|
+ }
|
|
+
|
|
+ public final int getVersionStep() {
|
|
+ return this.versionStep;
|
|
+ }
|
|
+
|
|
+ public final long getEncodedVersion() {
|
|
+ return encodeVersions(this.toVersion, this.versionStep);
|
|
+ }
|
|
+
|
|
+ public abstract R convert(final T data, final long sourceVersion, final long toVersion);
|
|
+
|
|
+ // step must be in the lower bits, so that encodeVersions(version, step) < encodeVersions(version, step + 1)
|
|
+ public static long encodeVersions(final int version, final int step) {
|
|
+ return ((long)version << 32) | (step & 0xFFFFFFFFL);
|
|
+ }
|
|
+
|
|
+ public static int getVersion(final long encoded) {
|
|
+ return (int)(encoded >>> 32);
|
|
+ }
|
|
+
|
|
+ public static int getStep(final long encoded) {
|
|
+ return (int)encoded;
|
|
+ }
|
|
+
|
|
+ public static String encodedToString(final long encoded) {
|
|
+ return getVersion(encoded) + "." + getStep(encoded);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/converters/datatypes/DataHook.java b/src/main/java/ca/spottedleaf/dataconverter/converters/datatypes/DataHook.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..0b92c5c66ad3a5198873f98287a5ced71c231d09
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/converters/datatypes/DataHook.java
|
|
@@ -0,0 +1,9 @@
|
|
+package ca.spottedleaf.dataconverter.converters.datatypes;
|
|
+
|
|
+public interface DataHook<T, R> {
|
|
+
|
|
+ public R preHook(final T data, final long fromVersion, final long toVersion);
|
|
+
|
|
+ public R postHook(final T data, final long fromVersion, final long toVersion);
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/converters/datatypes/DataType.java b/src/main/java/ca/spottedleaf/dataconverter/converters/datatypes/DataType.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..b56a7f9ace3b947fed49101b6e9936721fb99ea5
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/converters/datatypes/DataType.java
|
|
@@ -0,0 +1,7 @@
|
|
+package ca.spottedleaf.dataconverter.converters.datatypes;
|
|
+
|
|
+public abstract class DataType<T, R> {
|
|
+
|
|
+ public abstract R convert(final T data, final long fromVersion, final long toVersion);
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/converters/datatypes/DataWalker.java b/src/main/java/ca/spottedleaf/dataconverter/converters/datatypes/DataWalker.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..cf9fae4451ead4860343b915fb70e3a7cdf0de31
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/converters/datatypes/DataWalker.java
|
|
@@ -0,0 +1,9 @@
|
|
+package ca.spottedleaf.dataconverter.converters.datatypes;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public interface DataWalker<K> {
|
|
+
|
|
+ public MapType<String> walk(final MapType<K> data, final long fromVersion, final long toVersion);
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/MCDataConverter.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/MCDataConverter.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..25f1f4c355c1b4aca12e366f100922c53b4db1c6
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/MCDataConverter.java
|
|
@@ -0,0 +1,90 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataType;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCDataType;
|
|
+import ca.spottedleaf.dataconverter.types.json.JsonMapType;
|
|
+import ca.spottedleaf.dataconverter.types.nbt.NBTMapType;
|
|
+import com.google.gson.JsonObject;
|
|
+import it.unimi.dsi.fastutil.longs.LongArrayList;
|
|
+import net.minecraft.nbt.CompoundTag;
|
|
+
|
|
+public final class MCDataConverter {
|
|
+
|
|
+ private static final LongArrayList BREAKPOINTS = MCVersionRegistry.getBreakpoints();
|
|
+
|
|
+ public static <T> T copy(final T type) {
|
|
+ if (type instanceof CompoundTag) {
|
|
+ return (T)((CompoundTag)type).copy();
|
|
+ } else if (type instanceof JsonObject) {
|
|
+ return (T)((JsonObject)type).deepCopy();
|
|
+ }
|
|
+
|
|
+ return type;
|
|
+ }
|
|
+
|
|
+ public static <T, R> R convertUnwrapped(final DataType<T, R> type, final T data, final boolean compressedJson, final int fromVersion, final int toVersion) {
|
|
+ if (data instanceof CompoundTag) {
|
|
+ return (R)convertTag((MCDataType)type, (CompoundTag)data, fromVersion, toVersion);
|
|
+ }
|
|
+ if (data instanceof JsonObject) {
|
|
+ return (R)convertJson((MCDataType)type, (JsonObject)data, compressedJson, fromVersion, toVersion);
|
|
+ }
|
|
+
|
|
+ return convert(type, data, fromVersion, toVersion);
|
|
+ }
|
|
+
|
|
+ public static CompoundTag convertTag(final MCDataType type, final CompoundTag data, final int fromVersion, final int toVersion) {
|
|
+ final NBTMapType wrapped = new NBTMapType(data);
|
|
+
|
|
+ final NBTMapType replaced = (NBTMapType)convert(type, wrapped, fromVersion, toVersion);
|
|
+
|
|
+ return replaced == null ? wrapped.getTag() : replaced.getTag();
|
|
+ }
|
|
+
|
|
+ public static JsonObject convertJson(final MCDataType type, final JsonObject data, final boolean compressed, final int fromVersion, final int toVersion) {
|
|
+ final JsonMapType wrapped = new JsonMapType(data, compressed);
|
|
+
|
|
+ final JsonMapType replaced = (JsonMapType)convert(type, wrapped, fromVersion, toVersion);
|
|
+
|
|
+ return replaced == null ? wrapped.getJson() : replaced.getJson();
|
|
+ }
|
|
+
|
|
+ public static <T, R> R convert(final DataType<T, R> type, final T data, int fromVersion, final int toVersion) {
|
|
+ Object ret = data;
|
|
+
|
|
+ long currentVersion = DataConverter.encodeVersions(fromVersion < 99 ? 99 : fromVersion, Integer.MAX_VALUE);
|
|
+ final long nextVersion = DataConverter.encodeVersions(toVersion, Integer.MAX_VALUE);
|
|
+
|
|
+ for (int i = 0, len = BREAKPOINTS.size(); i < len; ++i) {
|
|
+ final long breakpoint = BREAKPOINTS.getLong(i);
|
|
+
|
|
+ if (currentVersion >= breakpoint) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final Object converted = type.convert((T)ret, currentVersion, Math.min(nextVersion, breakpoint - 1));
|
|
+ if (converted != null) {
|
|
+ ret = converted;
|
|
+ }
|
|
+
|
|
+ currentVersion = Math.min(nextVersion, breakpoint - 1);
|
|
+
|
|
+ if (currentVersion == nextVersion) {
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ if (currentVersion != nextVersion) {
|
|
+ final Object converted = type.convert((T)ret, currentVersion, nextVersion);
|
|
+ if (converted != null) {
|
|
+ ret = converted;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return (R)ret;
|
|
+ }
|
|
+
|
|
+ private MCDataConverter() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/MCVersionRegistry.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/MCVersionRegistry.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..016420effa89f3243479a966bf7aed286e82be1c
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/MCVersionRegistry.java
|
|
@@ -0,0 +1,343 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap;
|
|
+import it.unimi.dsi.fastutil.ints.IntArrayList;
|
|
+import it.unimi.dsi.fastutil.ints.IntLinkedOpenHashSet;
|
|
+import it.unimi.dsi.fastutil.ints.IntRBTreeSet;
|
|
+import it.unimi.dsi.fastutil.longs.LongArrayList;
|
|
+import it.unimi.dsi.fastutil.longs.LongLinkedOpenHashSet;
|
|
+import org.apache.logging.log4j.LogManager;
|
|
+import org.apache.logging.log4j.Logger;
|
|
+import java.lang.reflect.Field;
|
|
+import java.util.Arrays;
|
|
+import java.util.Comparator;
|
|
+import java.util.Locale;
|
|
+
|
|
+public final class MCVersionRegistry {
|
|
+
|
|
+ private static final Logger LOGGER = LogManager.getLogger();
|
|
+
|
|
+ protected static final Int2ObjectLinkedOpenHashMap<String> VERSION_NAMES = new Int2ObjectLinkedOpenHashMap<>();
|
|
+ protected static final IntArrayList VERSION_LIST;
|
|
+ protected static final LongArrayList DATA_VERSION_LIST;
|
|
+
|
|
+ protected static final IntArrayList DATACONVERTER_VERSIONS_LIST;
|
|
+ protected static final IntLinkedOpenHashSet DATACONVERTER_VERSIONS_MAJOR = new IntLinkedOpenHashSet();
|
|
+ protected static final LongLinkedOpenHashSet DATACONVERTER_VERSIONS = new LongLinkedOpenHashSet();
|
|
+ protected static final Int2ObjectLinkedOpenHashMap<IntArrayList> SUBVERSIONS = new Int2ObjectLinkedOpenHashMap<>();
|
|
+ protected static final LongArrayList BREAKPOINTS = new LongArrayList();
|
|
+ static {
|
|
+ // Note: Some of these are nameless.
|
|
+ // Unless a data version is specified here, it will NOT have converters ran for it. Please add them on update!
|
|
+ final int[] converterVersions = new int[] {
|
|
+ 99,
|
|
+ 100,
|
|
+ 101,
|
|
+ 102,
|
|
+ 105,
|
|
+ 106,
|
|
+ 107,
|
|
+ 108,
|
|
+ 109,
|
|
+ 110,
|
|
+ 111,
|
|
+ 113,
|
|
+ 135,
|
|
+ 143,
|
|
+ 147,
|
|
+ 165,
|
|
+ 501,
|
|
+ 502,
|
|
+ 505,
|
|
+ 700,
|
|
+ 701,
|
|
+ 702,
|
|
+ 703,
|
|
+ 704,
|
|
+ 705,
|
|
+ 804,
|
|
+ 806,
|
|
+ 808,
|
|
+ 808,
|
|
+ 813,
|
|
+ 816,
|
|
+ 820,
|
|
+ 1022,
|
|
+ 1125,
|
|
+ 1344,
|
|
+ 1446,
|
|
+ 1450,
|
|
+ 1451,
|
|
+ 1451,
|
|
+ 1451,
|
|
+ 1451,
|
|
+ 1451,
|
|
+ 1451,
|
|
+ 1451,
|
|
+ 1451,
|
|
+ 1451,
|
|
+ 1456,
|
|
+ 1458,
|
|
+ 1460,
|
|
+ 1466,
|
|
+ 1470,
|
|
+ 1474,
|
|
+ 1475,
|
|
+ 1480,
|
|
+ 1481,
|
|
+ 1483,
|
|
+ 1484,
|
|
+ 1486,
|
|
+ 1487,
|
|
+ 1488,
|
|
+ 1490,
|
|
+ 1492,
|
|
+ 1494,
|
|
+ 1496,
|
|
+ 1500,
|
|
+ 1501,
|
|
+ 1502,
|
|
+ 1506,
|
|
+ 1510,
|
|
+ 1514,
|
|
+ 1515,
|
|
+ 1624,
|
|
+ 1800,
|
|
+ 1801,
|
|
+ 1802,
|
|
+ 1803,
|
|
+ 1904,
|
|
+ 1905,
|
|
+ 1906,
|
|
+ 1909,
|
|
+ 1911,
|
|
+ 1917,
|
|
+ 1918,
|
|
+ 1920,
|
|
+ 1925,
|
|
+ 1928,
|
|
+ 1929,
|
|
+ 1931,
|
|
+ 1936,
|
|
+ 1946,
|
|
+ 1948,
|
|
+ 1953,
|
|
+ 1955,
|
|
+ 1961,
|
|
+ 1963,
|
|
+ 2100,
|
|
+ 2202,
|
|
+ 2209,
|
|
+ 2211,
|
|
+ 2218,
|
|
+ 2501,
|
|
+ 2502,
|
|
+ 2503,
|
|
+ 2505,
|
|
+ 2508,
|
|
+ 2509,
|
|
+ 2511,
|
|
+ 2514,
|
|
+ 2516,
|
|
+ 2518,
|
|
+ 2519,
|
|
+ 2522,
|
|
+ 2523,
|
|
+ 2527,
|
|
+ 2528,
|
|
+ 2529,
|
|
+ 2531,
|
|
+ 2533,
|
|
+ 2535,
|
|
+ 2550,
|
|
+ 2551,
|
|
+ 2552,
|
|
+ 2553,
|
|
+ 2558,
|
|
+ 2568,
|
|
+ 2671,
|
|
+ 2679,
|
|
+ 2680,
|
|
+ 2684,
|
|
+ 2686,
|
|
+ 2688,
|
|
+ 2690,
|
|
+ 2691,
|
|
+ 2693,
|
|
+ 2696,
|
|
+ 2700,
|
|
+ 2701,
|
|
+ 2702,
|
|
+ 2704,
|
|
+ 2707,
|
|
+ 2710,
|
|
+ 2717,
|
|
+ 2825,
|
|
+ 2831,
|
|
+ 2832,
|
|
+ 2833,
|
|
+ 2838,
|
|
+ 2841,
|
|
+ 2842,
|
|
+ 2843,
|
|
+ 2846,
|
|
+ 2852,
|
|
+ // All up to 1.18-pre6
|
|
+ };
|
|
+ Arrays.sort(converterVersions);
|
|
+
|
|
+ DATACONVERTER_VERSIONS_MAJOR.addAll(DATACONVERTER_VERSIONS_LIST = new IntArrayList(converterVersions));
|
|
+
|
|
+ // add sub versions
|
|
+ registerSubVersion(MCVersions.V16W38A + 1, 1);
|
|
+
|
|
+ registerSubVersion(MCVersions.V17W47A, 1);
|
|
+ registerSubVersion(MCVersions.V17W47A, 2);
|
|
+ registerSubVersion(MCVersions.V17W47A, 3);
|
|
+ registerSubVersion(MCVersions.V17W47A, 4);
|
|
+ registerSubVersion(MCVersions.V17W47A, 5);
|
|
+ registerSubVersion(MCVersions.V17W47A, 6);
|
|
+ registerSubVersion(MCVersions.V17W47A, 7);
|
|
+
|
|
+ // register breakpoints here
|
|
+ // for all major releases after 1.16, add them. this reduces the work required to determine if a breakpoint
|
|
+ // is needed for new converters
|
|
+
|
|
+ // Too much changed in this version.
|
|
+ registerBreakpoint(MCVersions.V17W47A);
|
|
+ registerBreakpoint(MCVersions.V17W47A, Integer.MAX_VALUE);
|
|
+
|
|
+ // final release of major version
|
|
+ registerBreakpoint(MCVersions.V1_17_1, Integer.MAX_VALUE);
|
|
+
|
|
+
|
|
+ }
|
|
+
|
|
+ static {
|
|
+ final Field[] fields = MCVersions.class.getDeclaredFields();
|
|
+ for (final Field field : fields) {
|
|
+ final String name = field.getName();
|
|
+ final int value;
|
|
+ try {
|
|
+ value = field.getInt(null);
|
|
+ } catch (final Exception ex) {
|
|
+ throw new RuntimeException(ex);
|
|
+ }
|
|
+
|
|
+ if (VERSION_NAMES.containsKey(value) && value != MCVersions.V15W33B) { // Mojang registered 15w33a and 15w33b under the same id.
|
|
+ LOGGER.warn("Error registering version \"" + name + "\", version number '" + value + "' is already associated with \"" + VERSION_NAMES.get(value) + "\"");
|
|
+ }
|
|
+
|
|
+ VERSION_NAMES.put(value, name.substring(1).replace("_PRE", "-PRE").replace("_RC", "-RC").replace('_', '.').toLowerCase(Locale.ROOT));
|
|
+ }
|
|
+
|
|
+ for (final int version : DATACONVERTER_VERSIONS_MAJOR) {
|
|
+ if (VERSION_NAMES.containsKey(version)) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ // find closest greatest version above this one
|
|
+ int closest = Integer.MAX_VALUE;
|
|
+ String closestName = null;
|
|
+ for (final int v : VERSION_NAMES.keySet()) {
|
|
+ if (v > version && v < closest) {
|
|
+ closest = v;
|
|
+ closestName = VERSION_NAMES.get(v);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ if (closestName == null) {
|
|
+ VERSION_NAMES.put(version, "unregistered_v" + version);
|
|
+ } else {
|
|
+ VERSION_NAMES.put(version, closestName + "-dev" + (closest - version));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // Explicit override for V99, as 99 is very special.
|
|
+ VERSION_NAMES.put(99, "pre_converter");
|
|
+
|
|
+ VERSION_LIST = new IntArrayList(new IntRBTreeSet(VERSION_NAMES.keySet()));
|
|
+
|
|
+ DATA_VERSION_LIST = new LongArrayList();
|
|
+ for (final int version : VERSION_LIST) {
|
|
+ DATA_VERSION_LIST.add(DataConverter.encodeVersions(version, 0));
|
|
+
|
|
+ final IntArrayList subVersions = SUBVERSIONS.get(version);
|
|
+ if (subVersions == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ for (final int step : subVersions) {
|
|
+ DATA_VERSION_LIST.add(DataConverter.encodeVersions(version, step));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ DATA_VERSION_LIST.sort(Comparator.naturalOrder());
|
|
+
|
|
+ for (final int version : DATACONVERTER_VERSIONS_MAJOR) {
|
|
+ DATACONVERTER_VERSIONS.add(DataConverter.encodeVersions(version, 0));
|
|
+
|
|
+ final IntArrayList subVersions = SUBVERSIONS.get(version);
|
|
+ if (subVersions == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ for (final int step : subVersions) {
|
|
+ DATACONVERTER_VERSIONS.add(DataConverter.encodeVersions(version, step));
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static void registerSubVersion(final int version, final int step) {
|
|
+ if (DATA_VERSION_LIST != null) {
|
|
+ throw new IllegalStateException("Added too late!");
|
|
+ }
|
|
+ SUBVERSIONS.computeIfAbsent(version, (final int keyInMap) -> {
|
|
+ return new IntArrayList();
|
|
+ }).add(step);
|
|
+ }
|
|
+
|
|
+ private static void registerBreakpoint(final int version) {
|
|
+ registerBreakpoint(version, 0);
|
|
+ }
|
|
+
|
|
+ private static void registerBreakpoint(final int version, final int step) {
|
|
+ BREAKPOINTS.add(DataConverter.encodeVersions(version, step));
|
|
+ }
|
|
+
|
|
+ // returns only versions that have dataconverters
|
|
+ public static boolean hasDataConverters(final int version) {
|
|
+ return DATACONVERTER_VERSIONS_MAJOR.contains(version);
|
|
+ }
|
|
+
|
|
+ public String getVersionName(final int version) {
|
|
+ return VERSION_NAMES.get(version);
|
|
+ }
|
|
+
|
|
+ public boolean isRegisteredVersion(final int version) {
|
|
+ return VERSION_NAMES.containsKey(version);
|
|
+ }
|
|
+
|
|
+ public static IntArrayList getVersionList() {
|
|
+ return VERSION_LIST;
|
|
+ }
|
|
+
|
|
+ public static LongArrayList getDataVersionList() {
|
|
+ return DATA_VERSION_LIST;
|
|
+ }
|
|
+
|
|
+ public static int getMaxVersion() {
|
|
+ return VERSION_LIST.getInt(VERSION_LIST.size() - 1);
|
|
+ }
|
|
+
|
|
+ public static LongArrayList getBreakpoints() {
|
|
+ return BREAKPOINTS;
|
|
+ }
|
|
+
|
|
+ public static void checkVersion(final long version) {
|
|
+ if (!DATACONVERTER_VERSIONS.contains(version)) {
|
|
+ throw new IllegalStateException("Version " + DataConverter.encodedToString(version) + " is not registered to have dataconverters, yet has a dataconverter");
|
|
+ }
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/MCVersions.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/MCVersions.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..ba8c1f056aa77d3812fb02f2a60ddd192e68984f
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/MCVersions.java
|
|
@@ -0,0 +1,380 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft;
|
|
+
|
|
+@SuppressWarnings("unused")
|
|
+public final class MCVersions {
|
|
+
|
|
+ /* https://minecraft.fandom.com/wiki/Data_version */
|
|
+
|
|
+ public static final int V15W32A = 100;
|
|
+ public static final int V15W32B = 103;
|
|
+ public static final int V15W32C = 104;
|
|
+ public static final int V15W33A = 111;
|
|
+ public static final int V15W33B = 111;
|
|
+ public static final int V15W33C = 112;
|
|
+ public static final int V15W34A = 114;
|
|
+ public static final int V15W34B = 115;
|
|
+ public static final int V15W34C = 116;
|
|
+ public static final int V15W34D = 117;
|
|
+ public static final int V15W35A = 118;
|
|
+ public static final int V15W35B = 119;
|
|
+ public static final int V15W35C = 120;
|
|
+ public static final int V15W35D = 121;
|
|
+ public static final int V15W35E = 122;
|
|
+ public static final int V15W36A = 123;
|
|
+ public static final int V15W36B = 124;
|
|
+ public static final int V15W36C = 125;
|
|
+ public static final int V15W36D = 126;
|
|
+ public static final int V15W37A = 127;
|
|
+ public static final int V15W38A = 128;
|
|
+ public static final int V15W38B = 129;
|
|
+ public static final int V15W39A = 130;
|
|
+ public static final int V15W39B = 131;
|
|
+ public static final int V15W39C = 132;
|
|
+ public static final int V15W40A = 133;
|
|
+ public static final int V15W40B = 134;
|
|
+ public static final int V15W41A = 136;
|
|
+ public static final int V15W41B = 137;
|
|
+ public static final int V15W42A = 138;
|
|
+ public static final int V15W43A = 139;
|
|
+ public static final int V15W43B = 140;
|
|
+ public static final int V15W43C = 141;
|
|
+ public static final int V15W44A = 142;
|
|
+ public static final int V15W44B = 143;
|
|
+ public static final int V15W45A = 145;
|
|
+ public static final int V15W46A = 146;
|
|
+ public static final int V15W47A = 148;
|
|
+ public static final int V15W47B = 149;
|
|
+ public static final int V15W47C = 150;
|
|
+ public static final int V15W49A = 151;
|
|
+ public static final int V15W49B = 152;
|
|
+ public static final int V15W50A = 153;
|
|
+ public static final int V15W51A = 154;
|
|
+ public static final int V15W51B = 155;
|
|
+ public static final int V16W02A = 156;
|
|
+ public static final int V16W03A = 157;
|
|
+ public static final int V16W04A = 158;
|
|
+ public static final int V16W05A = 159;
|
|
+ public static final int V16W05B = 160;
|
|
+ public static final int V16W06A = 161;
|
|
+ public static final int V16W07A = 162;
|
|
+ public static final int V16W07B = 163;
|
|
+ public static final int V1_9_PRE1 = 164;
|
|
+ public static final int V1_9_PRE2 = 165;
|
|
+ public static final int V1_9_PRE3 = 167;
|
|
+ public static final int V1_9_PRE4 = 168;
|
|
+ public static final int V1_9 = 169;
|
|
+ public static final int V1_9_1_PRE1 = 170;
|
|
+ public static final int V1_9_1_PRE2 = 171;
|
|
+ public static final int V1_9_1_PRE3 = 172;
|
|
+ public static final int V1_9_1 = 175;
|
|
+ public static final int V1_9_2 = 176;
|
|
+ public static final int V16W14A = 177;
|
|
+ public static final int V16W15A = 178;
|
|
+ public static final int V16W15B = 179;
|
|
+ public static final int V1_9_3_PRE1 = 180;
|
|
+ public static final int V1_9_3_PRE2 = 181;
|
|
+ public static final int V1_9_3_PRE3 = 182;
|
|
+ public static final int V1_9_3 = 183;
|
|
+ public static final int V1_9_4 = 184;
|
|
+ public static final int V16W20A = 501;
|
|
+ public static final int V16W21A = 503;
|
|
+ public static final int V16W21B = 504;
|
|
+ public static final int V1_10_PRE1 = 506;
|
|
+ public static final int V1_10_PRE2 = 507;
|
|
+ public static final int V1_10 = 510;
|
|
+ public static final int V1_10_1 = 511;
|
|
+ public static final int V1_10_2 = 512;
|
|
+ public static final int V16W32A = 800;
|
|
+ public static final int V16W32B = 801;
|
|
+ public static final int V16W33A = 802;
|
|
+ public static final int V16W35A = 803;
|
|
+ public static final int V16W36A = 805;
|
|
+ public static final int V16W38A = 807;
|
|
+ public static final int V16W39A = 809;
|
|
+ public static final int V16W39B = 811;
|
|
+ public static final int V16W39C = 812;
|
|
+ public static final int V16W40A = 813;
|
|
+ public static final int V16W41A = 814;
|
|
+ public static final int V16W42A = 815;
|
|
+ public static final int V16W43A = 816;
|
|
+ public static final int V16W44A = 817;
|
|
+ public static final int V1_11_PRE1 = 818;
|
|
+ public static final int V1_11 = 819;
|
|
+ public static final int V16W50A = 920;
|
|
+ public static final int V1_11_1 = 921;
|
|
+ public static final int V1_11_2 = 922;
|
|
+ public static final int V17W06A = 1022;
|
|
+ public static final int V17W13A = 1122;
|
|
+ public static final int V17W13B = 1123;
|
|
+ public static final int V17W14A = 1124;
|
|
+ public static final int V17W15A = 1125;
|
|
+ public static final int V17W16A = 1126;
|
|
+ public static final int V17W16B = 1127;
|
|
+ public static final int V17W17A = 1128;
|
|
+ public static final int V17W17B = 1129;
|
|
+ public static final int V17W18A = 1130;
|
|
+ public static final int V17W18B = 1131;
|
|
+ public static final int V1_12_PRE1 = 1132;
|
|
+ public static final int V1_12_PRE2 = 1133;
|
|
+ public static final int V1_12_PRE3 = 1134;
|
|
+ public static final int V1_12_PRE4 = 1135;
|
|
+ public static final int V1_12_PRE5 = 1136;
|
|
+ public static final int V1_12_PRE6 = 1137;
|
|
+ public static final int V1_12_PRE7 = 1138;
|
|
+ public static final int V1_12 = 1139;
|
|
+ public static final int V17W31A = 1239;
|
|
+ public static final int V1_12_1_PRE1 = 1240;
|
|
+ public static final int V1_12_1 = 1241;
|
|
+ public static final int V1_12_2_PRE1 = 1341;
|
|
+ public static final int V1_12_2_PRE2 = 1342;
|
|
+ public static final int V1_12_2 = 1343;
|
|
+ public static final int V17W43A = 1444;
|
|
+ public static final int V17W43B = 1445;
|
|
+ public static final int V17W45A = 1447;
|
|
+ public static final int V17W45B = 1448;
|
|
+ public static final int V17W46A = 1449;
|
|
+ public static final int V17W47A = 1451;
|
|
+ public static final int V17W47B = 1452;
|
|
+ public static final int V17W48A = 1453;
|
|
+ public static final int V17W49A = 1454;
|
|
+ public static final int V17W49B = 1455;
|
|
+ public static final int V17W50A = 1457;
|
|
+ public static final int V18W01A = 1459;
|
|
+ public static final int V18W02A = 1461;
|
|
+ public static final int V18W03A = 1462;
|
|
+ public static final int V18W03B = 1463;
|
|
+ public static final int V18W05A = 1464;
|
|
+ public static final int V18W06A = 1466;
|
|
+ public static final int V18W07A = 1467;
|
|
+ public static final int V18W07B = 1468;
|
|
+ public static final int V18W07C = 1469;
|
|
+ public static final int V18W08A = 1470;
|
|
+ public static final int V18W08B = 1471;
|
|
+ public static final int V18W09A = 1472;
|
|
+ public static final int V18W10A = 1473;
|
|
+ public static final int V18W10B = 1474;
|
|
+ public static final int V18W10C = 1476;
|
|
+ public static final int V18W10D = 1477;
|
|
+ public static final int V18W11A = 1478;
|
|
+ public static final int V18W14A = 1479;
|
|
+ public static final int V18W14B = 1481;
|
|
+ public static final int V18W15A = 1482;
|
|
+ public static final int V18W16A = 1483;
|
|
+ public static final int V18W19A = 1484;
|
|
+ public static final int V18W19B = 1485;
|
|
+ public static final int V18W20A = 1489;
|
|
+ public static final int V18W20B = 1491;
|
|
+ public static final int V18W20C = 1493;
|
|
+ public static final int V18W21A = 1495;
|
|
+ public static final int V18W21B = 1496;
|
|
+ public static final int V18W22A = 1497;
|
|
+ public static final int V18W22B = 1498;
|
|
+ public static final int V18W22C = 1499;
|
|
+ public static final int V1_13_PRE1 = 1501;
|
|
+ public static final int V1_13_PRE2 = 1502;
|
|
+ public static final int V1_13_PRE3 = 1503;
|
|
+ public static final int V1_13_PRE4 = 1504;
|
|
+ public static final int V1_13_PRE5 = 1511;
|
|
+ public static final int V1_13_PRE6 = 1512;
|
|
+ public static final int V1_13_PRE7 = 1513;
|
|
+ public static final int V1_13_PRE8 = 1516;
|
|
+ public static final int V1_13_PRE9 = 1517;
|
|
+ public static final int V1_13_PRE10 = 1518;
|
|
+ public static final int V1_13 = 1519;
|
|
+ public static final int V18W30A = 1620;
|
|
+ public static final int V18W30B = 1621;
|
|
+ public static final int V18W31A = 1622;
|
|
+ public static final int V18W32A = 1623;
|
|
+ public static final int V18W33A = 1625;
|
|
+ public static final int V1_13_1_PRE1 = 1626;
|
|
+ public static final int V1_13_1_PRE2 = 1627;
|
|
+ public static final int V1_13_1 = 1628;
|
|
+ public static final int V1_13_2_PRE1 = 1629;
|
|
+ public static final int V1_13_2_PRE2 = 1630;
|
|
+ public static final int V1_13_2 = 1631;
|
|
+ public static final int V18W43A = 1901;
|
|
+ public static final int V18W43B = 1902;
|
|
+ public static final int V18W43C = 1903;
|
|
+ public static final int V18W44A = 1907;
|
|
+ public static final int V18W45A = 1908;
|
|
+ public static final int V18W46A = 1910;
|
|
+ public static final int V18W47A = 1912;
|
|
+ public static final int V18W47B = 1913;
|
|
+ public static final int V18W48A = 1914;
|
|
+ public static final int V18W48B = 1915;
|
|
+ public static final int V18W49A = 1916;
|
|
+ public static final int V18W50A = 1919;
|
|
+ public static final int V19W02A = 1921;
|
|
+ public static final int V19W03A = 1922;
|
|
+ public static final int V19W03B = 1923;
|
|
+ public static final int V19W03C = 1924;
|
|
+ public static final int V19W04A = 1926;
|
|
+ public static final int V19W04B = 1927;
|
|
+ public static final int V19W05A = 1930;
|
|
+ public static final int V19W06A = 1931;
|
|
+ public static final int V19W07A = 1932;
|
|
+ public static final int V19W08A = 1933;
|
|
+ public static final int V19W08B = 1934;
|
|
+ public static final int V19W09A = 1935;
|
|
+ public static final int V19W11A = 1937;
|
|
+ public static final int V19W11B = 1938;
|
|
+ public static final int V19W12A = 1940;
|
|
+ public static final int V19W12B = 1941;
|
|
+ public static final int V19W13A = 1942;
|
|
+ public static final int V19W13B = 1943;
|
|
+ public static final int V19W14A = 1944;
|
|
+ public static final int V19W14B = 1945;
|
|
+ public static final int V1_14_PRE1 = 1947;
|
|
+ public static final int V1_14_PRE2 = 1948;
|
|
+ public static final int V1_14_PRE3 = 1949;
|
|
+ public static final int V1_14_PRE4 = 1950;
|
|
+ public static final int V1_14_PRE5 = 1951;
|
|
+ public static final int V1_14 = 1952;
|
|
+ public static final int V1_14_1_PRE1 = 1955;
|
|
+ public static final int V1_14_1_PRE2 = 1956;
|
|
+ public static final int V1_14_1 = 1957;
|
|
+ public static final int V1_14_2_PRE1 = 1958;
|
|
+ public static final int V1_14_2_PRE2 = 1959;
|
|
+ public static final int V1_14_2_PRE3 = 1960;
|
|
+ public static final int V1_14_2_PRE4 = 1962;
|
|
+ public static final int V1_14_2 = 1963;
|
|
+ public static final int V1_14_3_PRE1 = 1964;
|
|
+ public static final int V1_14_3_PRE2 = 1965;
|
|
+ public static final int V1_14_3_PRE3 = 1966;
|
|
+ public static final int V1_14_3_PRE4 = 1967;
|
|
+ public static final int V1_14_3 = 1968;
|
|
+ public static final int V1_14_4_PRE1 = 1969;
|
|
+ public static final int V1_14_4_PRE2 = 1970;
|
|
+ public static final int V1_14_4_PRE3 = 1971;
|
|
+ public static final int V1_14_4_PRE4 = 1972;
|
|
+ public static final int V1_14_4_PRE5 = 1973;
|
|
+ public static final int V1_14_4_PRE6 = 1974;
|
|
+ public static final int V1_14_4_PRE7 = 1975;
|
|
+ public static final int V1_14_4 = 1976;
|
|
+ public static final int V19W34A = 2200;
|
|
+ public static final int V19W35A = 2201;
|
|
+ public static final int V19W36A = 2203;
|
|
+ public static final int V19W37A = 2204;
|
|
+ public static final int V19W38A = 2205;
|
|
+ public static final int V19W38B = 2206;
|
|
+ public static final int V19W39A = 2207;
|
|
+ public static final int V19W40A = 2208;
|
|
+ public static final int V19W41A = 2210;
|
|
+ public static final int V19W42A = 2212;
|
|
+ public static final int V19W44A = 2213;
|
|
+ public static final int V19W45A = 2214;
|
|
+ public static final int V19W45B = 2215;
|
|
+ public static final int V19W46A = 2216;
|
|
+ public static final int V19W46B = 2217;
|
|
+ public static final int V1_15_PRE1 = 2218;
|
|
+ public static final int V1_15_PRE2 = 2219;
|
|
+ public static final int V1_15_PRE3 = 2220;
|
|
+ public static final int V1_15_PRE4 = 2221;
|
|
+ public static final int V1_15_PRE5 = 2222;
|
|
+ public static final int V1_15_PRE6 = 2223;
|
|
+ public static final int V1_15_PRE7 = 2224;
|
|
+ public static final int V1_15 = 2225;
|
|
+ public static final int V1_15_1_PRE1 = 2226;
|
|
+ public static final int V1_15_1 = 2227;
|
|
+ public static final int V1_15_2_PRE1 = 2228;
|
|
+ public static final int V1_15_2_PRE2 = 2229;
|
|
+ public static final int V1_15_2 = 2230;
|
|
+ public static final int V20W06A = 2504;
|
|
+ public static final int V20W07A = 2506;
|
|
+ public static final int V20W08A = 2507;
|
|
+ public static final int V20W09A = 2510;
|
|
+ public static final int V20W10A = 2512;
|
|
+ public static final int V20W11A = 2513;
|
|
+ public static final int V20W12A = 2515;
|
|
+ public static final int V20W13A = 2520;
|
|
+ public static final int V20W13B = 2521;
|
|
+ public static final int V20W14A = 2524;
|
|
+ public static final int V20W15A = 2525;
|
|
+ public static final int V20W16A = 2526;
|
|
+ public static final int V20W17A = 2529;
|
|
+ public static final int V20W18A = 2532;
|
|
+ public static final int V20W19A = 2534;
|
|
+ public static final int V20W20A = 2536;
|
|
+ public static final int V20W20B = 2537;
|
|
+ public static final int V20W21A = 2554;
|
|
+ public static final int V20W22A = 2555;
|
|
+ public static final int V1_16_PRE1 = 2556;
|
|
+ public static final int V1_16_PRE2 = 2557;
|
|
+ public static final int V1_16_PRE3 = 2559;
|
|
+ public static final int V1_16_PRE4 = 2560;
|
|
+ public static final int V1_16_PRE5 = 2561;
|
|
+ public static final int V1_16_PRE6 = 2562;
|
|
+ public static final int V1_16_PRE7 = 2563;
|
|
+ public static final int V1_16_PRE8 = 2564;
|
|
+ public static final int V1_16_RC1 = 2565;
|
|
+ public static final int V1_16 = 2566;
|
|
+ public static final int V1_16_1 = 2567;
|
|
+ public static final int V20W27A = 2569;
|
|
+ public static final int V20W28A = 2570;
|
|
+ public static final int V20W29A = 2571;
|
|
+ public static final int V20W30A = 2572;
|
|
+ public static final int V1_16_2_PRE1 = 2573;
|
|
+ public static final int V1_16_2_PRE2 = 2574;
|
|
+ public static final int V1_16_2_PRE3 = 2575;
|
|
+ public static final int V1_16_2_RC1 = 2576;
|
|
+ public static final int V1_16_2_RC2 = 2577;
|
|
+ public static final int V1_16_2 = 2578;
|
|
+ public static final int V1_16_3_RC1 = 2579;
|
|
+ public static final int V1_16_3 = 2580;
|
|
+ public static final int V1_16_4_PRE1 = 2581;
|
|
+ public static final int V1_16_4_PRE2 = 2582;
|
|
+ public static final int V1_16_4_RC1 = 2583;
|
|
+ public static final int V1_16_4 = 2584;
|
|
+ public static final int V1_16_5_RC1 = 2585;
|
|
+ public static final int V1_16_5 = 2586;
|
|
+ public static final int V20W45A = 2681;
|
|
+ public static final int V20W46A = 2682;
|
|
+ public static final int V20W48A = 2683;
|
|
+ public static final int V20W49A = 2685;
|
|
+ public static final int V20W51A = 2687;
|
|
+ public static final int V21W03A = 2689;
|
|
+ public static final int V21W05A = 2690;
|
|
+ public static final int V21W05B = 2692;
|
|
+ public static final int V21W06A = 2694;
|
|
+ public static final int V21W07A = 2695;
|
|
+ public static final int V21W08A = 2697;
|
|
+ public static final int V21W08B = 2698;
|
|
+ public static final int V21W10A = 2699;
|
|
+ public static final int V21W11A = 2703;
|
|
+ public static final int V21W13A = 2705;
|
|
+ public static final int V21W14A = 2706;
|
|
+ public static final int V21W15A = 2709;
|
|
+ public static final int V21W16A = 2711;
|
|
+ public static final int V21W17A = 2712;
|
|
+ public static final int V21W18A = 2713;
|
|
+ public static final int V21W19A = 2714;
|
|
+ public static final int V21W20A = 2715;
|
|
+ public static final int V1_17_PRE1 = 2716;
|
|
+ public static final int V1_17_PRE2 = 2718;
|
|
+ public static final int V1_17_PRE3 = 2719;
|
|
+ public static final int V1_17_PRE4 = 2720;
|
|
+ public static final int V1_17_PRE5 = 2721;
|
|
+ public static final int V1_17_RC1 = 2722;
|
|
+ public static final int V1_17_RC2 = 2723;
|
|
+ public static final int V1_17 = 2724;
|
|
+ public static final int V1_17_1_PRE1 = 2725;
|
|
+ public static final int V1_17_1_PRE2 = 2726;
|
|
+ public static final int V1_17_1_PRE3 = 2727;
|
|
+ public static final int V1_17_1_RC1 = 2728;
|
|
+ public static final int V1_17_1_RC2 = 2729;
|
|
+ public static final int V1_17_1 = 2730;
|
|
+ public static final int V21W37A = 2834;
|
|
+ public static final int V21W38A = 2835;
|
|
+ public static final int V21W39A = 2836;
|
|
+ public static final int V21W40A = 2838;
|
|
+ public static final int V21W41A = 2839;
|
|
+ public static final int V21W42A = 2840;
|
|
+ public static final int V21W43A = 2844;
|
|
+ public static final int V21W44A = 2845;
|
|
+ public static final int V1_18_PRE1 = 2847;
|
|
+ public static final int V1_18_PRE2 = 2848;
|
|
+ public static final int V1_18_PRE3 = 2849;
|
|
+ public static final int V1_18_PRE4 = 2850;
|
|
+ public static final int V1_18_PRE5 = 2851;
|
|
+ public static final int V1_18_PRE6 = 2853;
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/ReplacedDataFixerUpper.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/ReplacedDataFixerUpper.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5ddf54649fc0ddcee1b1f6bdc6e8d7be7ae46618
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/ReplacedDataFixerUpper.java
|
|
@@ -0,0 +1,140 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataType;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import com.mojang.datafixers.DSL;
|
|
+import com.mojang.datafixers.DataFixer;
|
|
+import com.mojang.datafixers.schemas.Schema;
|
|
+import com.mojang.serialization.Dynamic;
|
|
+import net.minecraft.SharedConstants;
|
|
+import net.minecraft.util.datafix.fixes.References;
|
|
+import org.apache.logging.log4j.LogManager;
|
|
+import org.apache.logging.log4j.Logger;
|
|
+import java.util.Set;
|
|
+import java.util.concurrent.ConcurrentHashMap;
|
|
+
|
|
+public class ReplacedDataFixerUpper implements DataFixer {
|
|
+
|
|
+ protected static final Set<DSL.TypeReference> WARNED_TYPES = ConcurrentHashMap.newKeySet();
|
|
+
|
|
+ private static final Logger LOGGER = LogManager.getLogger();
|
|
+
|
|
+ public final DataFixer wrapped;
|
|
+
|
|
+ public ReplacedDataFixerUpper(final DataFixer wrapped) {
|
|
+ this.wrapped = wrapped;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public <T> Dynamic<T> update(final DSL.TypeReference type, final Dynamic<T> input, final int version, final int newVersion) {
|
|
+ DataType<?, ?> equivType = null;
|
|
+ boolean warn = true;
|
|
+
|
|
+ if (type == References.LEVEL) {
|
|
+ warn = false;
|
|
+ }
|
|
+ if (type == References.PLAYER) {
|
|
+ equivType = MCTypeRegistry.PLAYER;
|
|
+ }
|
|
+ if (type == References.CHUNK) {
|
|
+ equivType = MCTypeRegistry.CHUNK;
|
|
+ }
|
|
+ if (type == References.HOTBAR) {
|
|
+ warn = false;
|
|
+ }
|
|
+ if (type == References.OPTIONS) {
|
|
+ warn = false;
|
|
+ }
|
|
+ if (type == References.STRUCTURE) {
|
|
+ equivType = MCTypeRegistry.STRUCTURE;
|
|
+ }
|
|
+ if (type == References.STATS) {
|
|
+ warn = false;
|
|
+ }
|
|
+ if (type == References.SAVED_DATA) {
|
|
+ equivType = MCTypeRegistry.SAVED_DATA;
|
|
+ }
|
|
+ if (type == References.ADVANCEMENTS) {
|
|
+ warn = false;
|
|
+ }
|
|
+ if (type == References.POI_CHUNK) {
|
|
+ equivType = MCTypeRegistry.POI_CHUNK;
|
|
+ }
|
|
+ if (type == References.ENTITY_CHUNK) {
|
|
+ equivType = MCTypeRegistry.ENTITY_CHUNK;
|
|
+ }
|
|
+ if (type == References.BLOCK_ENTITY) {
|
|
+ equivType = MCTypeRegistry.TILE_ENTITY;
|
|
+ }
|
|
+ if (type == References.ITEM_STACK) {
|
|
+ equivType = MCTypeRegistry.ITEM_STACK;
|
|
+ }
|
|
+ if (type == References.BLOCK_STATE) {
|
|
+ equivType = MCTypeRegistry.BLOCK_STATE;
|
|
+ }
|
|
+ if (type == References.ENTITY_NAME) {
|
|
+ equivType = MCTypeRegistry.ENTITY_NAME;
|
|
+ }
|
|
+ if (type == References.ENTITY_TREE) {
|
|
+ equivType = MCTypeRegistry.ENTITY;
|
|
+ }
|
|
+ if (type == References.ENTITY) {
|
|
+ // NO EQUIV TYPE (this is ENTITY without passengers/riding)
|
|
+ // Only used internally for DFU, so we shouldn't get here
|
|
+ }
|
|
+ if (type == References.BLOCK_NAME) {
|
|
+ equivType = MCTypeRegistry.BLOCK_NAME;
|
|
+ }
|
|
+ if (type == References.ITEM_NAME) {
|
|
+ equivType = MCTypeRegistry.ITEM_NAME;
|
|
+ }
|
|
+ if (type == References.UNTAGGED_SPAWNER) {
|
|
+ equivType = MCTypeRegistry.UNTAGGED_SPAWNER;
|
|
+ }
|
|
+ if (type == References.STRUCTURE_FEATURE) {
|
|
+ equivType = MCTypeRegistry.STRUCTURE_FEATURE;
|
|
+ }
|
|
+ if (type == References.OBJECTIVE) {
|
|
+ warn = false;
|
|
+ }
|
|
+ if (type == References.TEAM) {
|
|
+ warn = false;
|
|
+ }
|
|
+ if (type == References.RECIPE) {
|
|
+ warn = false;
|
|
+ }
|
|
+ if (type == References.BIOME) {
|
|
+ equivType = MCTypeRegistry.BIOME;
|
|
+ }
|
|
+ if (type == References.WORLD_GEN_SETTINGS) {
|
|
+ warn = false;
|
|
+ }
|
|
+
|
|
+ if (equivType != null) {
|
|
+ if (newVersion > version) {
|
|
+ try {
|
|
+ final Dynamic<T> ret = new Dynamic<>(input.getOps(), (T)MCDataConverter.copy(MCDataConverter.convertUnwrapped((DataType)equivType, input.getValue(), false, version, newVersion)));
|
|
+ return ret;
|
|
+ } catch (final Exception ex) {
|
|
+ LOGGER.error("Failed to convert data using DataConverter, falling back to DFU", new Throwable());
|
|
+ // In dev environment this should hard fail
|
|
+ }
|
|
+
|
|
+ return this.wrapped.update(type, input, version, newVersion);
|
|
+ } else {
|
|
+ return input;
|
|
+ }
|
|
+ } else {
|
|
+ if (warn && WARNED_TYPES.add(type)) {
|
|
+ LOGGER.error("No equiv type for " + type, new Throwable());
|
|
+ }
|
|
+
|
|
+ return this.wrapped.update(type, input, version, newVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Schema getSchema(final int key) {
|
|
+ return this.wrapped.getSchema(key);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/advancements/ConverterAbstractAdvancementsRename.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/advancements/ConverterAbstractAdvancementsRename.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..ae3aed21c1fccb688e9a1665e2d317a77508d157
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/advancements/ConverterAbstractAdvancementsRename.java
|
|
@@ -0,0 +1,28 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.advancements;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.RenameHelper;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import java.util.ArrayList;
|
|
+import java.util.function.Function;
|
|
+
|
|
+public final class ConverterAbstractAdvancementsRename {
|
|
+
|
|
+ private ConverterAbstractAdvancementsRename() {}
|
|
+
|
|
+ public static void register(final int version, final Function<String, String> renamer) {
|
|
+ register(version, 0, renamer);
|
|
+ }
|
|
+
|
|
+ public static void register(final int version, final int subVersion, final Function<String, String> renamer) {
|
|
+ MCTypeRegistry.ADVANCEMENTS.addStructureConverter(new DataConverter<>(version, subVersion) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ RenameHelper.renameKeys(data, renamer);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/blockname/ConverterAbstractBlockRename.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/blockname/ConverterAbstractBlockRename.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..ba9daaab1abd53a3fbdebd78e05ba363251188c6
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/blockname/ConverterAbstractBlockRename.java
|
|
@@ -0,0 +1,73 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.blockname;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.ConverterAbstractStringValueTypeRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import java.util.function.Function;
|
|
+
|
|
+public final class ConverterAbstractBlockRename {
|
|
+
|
|
+ private ConverterAbstractBlockRename() {}
|
|
+
|
|
+ public static void register(final int version, final Function<String, String> renamer) {
|
|
+ register(version, 0, renamer);
|
|
+ }
|
|
+
|
|
+ public static void register(final int version, final int subVersion, final Function<String, String> renamer) {
|
|
+ ConverterAbstractStringValueTypeRename.register(version, subVersion, MCTypeRegistry.BLOCK_NAME, renamer);
|
|
+ MCTypeRegistry.BLOCK_STATE.addStructureConverter(new DataConverter<>(version, subVersion) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String name = data.getString("Name");
|
|
+ if (name != null) {
|
|
+ final String converted = renamer.apply(name);
|
|
+ if (converted != null) {
|
|
+ data.setString("Name", converted);
|
|
+ }
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ public static void registerAndFixJigsaw(final int version, final Function<String, String> renamer) {
|
|
+ registerAndFixJigsaw(version, 0, renamer);
|
|
+ }
|
|
+
|
|
+ public static void registerAndFixJigsaw(final int version, final int subVersion, final Function<String, String> renamer) {
|
|
+ register(version, subVersion, renamer);
|
|
+ // TODO check on update, minecraft:jigsaw can change
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:jigsaw", new DataConverter<>(version, subVersion) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String finalState = data.getString("final_state");
|
|
+ if (finalState == null || finalState.isEmpty()) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final int nbtStart1 = finalState.indexOf('[');
|
|
+ final int nbtStart2 = finalState.indexOf('{');
|
|
+ int stateNameEnd = finalState.length();
|
|
+ if (nbtStart1 > 0) {
|
|
+ stateNameEnd = Math.min(stateNameEnd, nbtStart1);
|
|
+ }
|
|
+
|
|
+ if (nbtStart2 > 0) {
|
|
+ stateNameEnd = Math.min(stateNameEnd, nbtStart2);
|
|
+ }
|
|
+
|
|
+ final String blockStateName = finalState.substring(0, stateNameEnd);
|
|
+ final String converted = renamer.apply(blockStateName);
|
|
+ if (converted == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String convertedState = converted.concat(finalState.substring(stateNameEnd));
|
|
+ data.setString("final_state", convertedState);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/chunk/ConverterFlattenChunk.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/chunk/ConverterFlattenChunk.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..64226434a38dc5e4a9103c61aa8f9c20bce9550c
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/chunk/ConverterFlattenChunk.java
|
|
@@ -0,0 +1,1016 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.chunk;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.HelperBlockFlatteningV1450;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.HelperItemNameV102;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+import com.mojang.datafixers.DataFixUtils;
|
|
+import it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap;
|
|
+import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
|
+import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
|
+import it.unimi.dsi.fastutil.ints.IntArrayList;
|
|
+import it.unimi.dsi.fastutil.ints.IntIterator;
|
|
+import it.unimi.dsi.fastutil.objects.Reference2IntOpenHashMap;
|
|
+import net.minecraft.util.datafix.PackedBitStorage;
|
|
+import org.apache.logging.log4j.LogManager;
|
|
+import org.apache.logging.log4j.Logger;
|
|
+import java.util.Arrays;
|
|
+import java.util.BitSet;
|
|
+import java.util.HashMap;
|
|
+import java.util.Iterator;
|
|
+import java.util.Map;
|
|
+import java.util.Objects;
|
|
+
|
|
+import static it.unimi.dsi.fastutil.HashCommon.arraySize;
|
|
+
|
|
+public final class ConverterFlattenChunk extends DataConverter<MapType<String>, MapType<String>> {
|
|
+
|
|
+ private static final Logger LOGGER = LogManager.getLogger();
|
|
+
|
|
+ static final BitSet VIRTUAL_SET = new BitSet(256);
|
|
+ static final BitSet IDS_NEEDING_FIX_SET = new BitSet(256);
|
|
+
|
|
+ static {
|
|
+ IDS_NEEDING_FIX_SET.set(2);
|
|
+ IDS_NEEDING_FIX_SET.set(3);
|
|
+ IDS_NEEDING_FIX_SET.set(110);
|
|
+ IDS_NEEDING_FIX_SET.set(140);
|
|
+ IDS_NEEDING_FIX_SET.set(144);
|
|
+ IDS_NEEDING_FIX_SET.set(25);
|
|
+ IDS_NEEDING_FIX_SET.set(86);
|
|
+ IDS_NEEDING_FIX_SET.set(26);
|
|
+ IDS_NEEDING_FIX_SET.set(176);
|
|
+ IDS_NEEDING_FIX_SET.set(177);
|
|
+ IDS_NEEDING_FIX_SET.set(175);
|
|
+ IDS_NEEDING_FIX_SET.set(64);
|
|
+ IDS_NEEDING_FIX_SET.set(71);
|
|
+ IDS_NEEDING_FIX_SET.set(193);
|
|
+ IDS_NEEDING_FIX_SET.set(194);
|
|
+ IDS_NEEDING_FIX_SET.set(195);
|
|
+ IDS_NEEDING_FIX_SET.set(196);
|
|
+ IDS_NEEDING_FIX_SET.set(197);
|
|
+
|
|
+ VIRTUAL_SET.set(54);
|
|
+ VIRTUAL_SET.set(146);
|
|
+ VIRTUAL_SET.set(25);
|
|
+ VIRTUAL_SET.set(26);
|
|
+ VIRTUAL_SET.set(51);
|
|
+ VIRTUAL_SET.set(53);
|
|
+ VIRTUAL_SET.set(67);
|
|
+ VIRTUAL_SET.set(108);
|
|
+ VIRTUAL_SET.set(109);
|
|
+ VIRTUAL_SET.set(114);
|
|
+ VIRTUAL_SET.set(128);
|
|
+ VIRTUAL_SET.set(134);
|
|
+ VIRTUAL_SET.set(135);
|
|
+ VIRTUAL_SET.set(136);
|
|
+ VIRTUAL_SET.set(156);
|
|
+ VIRTUAL_SET.set(163);
|
|
+ VIRTUAL_SET.set(164);
|
|
+ VIRTUAL_SET.set(180);
|
|
+ VIRTUAL_SET.set(203);
|
|
+ VIRTUAL_SET.set(55);
|
|
+ VIRTUAL_SET.set(85);
|
|
+ VIRTUAL_SET.set(113);
|
|
+ VIRTUAL_SET.set(188);
|
|
+ VIRTUAL_SET.set(189);
|
|
+ VIRTUAL_SET.set(190);
|
|
+ VIRTUAL_SET.set(191);
|
|
+ VIRTUAL_SET.set(192);
|
|
+ VIRTUAL_SET.set(93);
|
|
+ VIRTUAL_SET.set(94);
|
|
+ VIRTUAL_SET.set(101);
|
|
+ VIRTUAL_SET.set(102);
|
|
+ VIRTUAL_SET.set(160);
|
|
+ VIRTUAL_SET.set(106);
|
|
+ VIRTUAL_SET.set(107);
|
|
+ VIRTUAL_SET.set(183);
|
|
+ VIRTUAL_SET.set(184);
|
|
+ VIRTUAL_SET.set(185);
|
|
+ VIRTUAL_SET.set(186);
|
|
+ VIRTUAL_SET.set(187);
|
|
+ VIRTUAL_SET.set(132);
|
|
+ VIRTUAL_SET.set(139);
|
|
+ VIRTUAL_SET.set(199);
|
|
+ }
|
|
+
|
|
+ static final boolean[] VIRTUAL = toBooleanArray(VIRTUAL_SET);
|
|
+ static final boolean[] IDS_NEEDING_FIX = toBooleanArray(IDS_NEEDING_FIX_SET);
|
|
+
|
|
+ private static boolean[] toBooleanArray(final BitSet set) {
|
|
+ final boolean[] ret = new boolean[4096];
|
|
+ for (int i = 0; i < 4096; ++i) {
|
|
+ ret[i] = set.get(i);
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ static final MapType<String> PUMPKIN = HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:pumpkin'}");
|
|
+ static final MapType<String> SNOWY_PODZOL = HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:podzol',Properties:{snowy:'true'}}");
|
|
+ static final MapType<String> SNOWY_GRASS = HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:grass_block',Properties:{snowy:'true'}}");
|
|
+ static final MapType<String> SNOWY_MYCELIUM = HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:mycelium',Properties:{snowy:'true'}}");
|
|
+ static final MapType<String> UPPER_SUNFLOWER = HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:sunflower',Properties:{half:'upper'}}");
|
|
+ static final MapType<String> UPPER_LILAC = HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:lilac',Properties:{half:'upper'}}");
|
|
+ static final MapType<String> UPPER_TALL_GRASS = HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:tall_grass',Properties:{half:'upper'}}");
|
|
+ static final MapType<String> UPPER_LARGE_FERN = HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:large_fern',Properties:{half:'upper'}}");
|
|
+ static final MapType<String> UPPER_ROSE_BUSH = HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:rose_bush',Properties:{half:'upper'}}");
|
|
+ static final MapType<String> UPPER_PEONY = HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:peony',Properties:{half:'upper'}}");
|
|
+
|
|
+ static final Map<String, MapType<String>> FLOWER_POT_MAP = new HashMap<>();
|
|
+ static {
|
|
+ FLOWER_POT_MAP.put("minecraft:air0", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:flower_pot'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:red_flower0", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_poppy'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:red_flower1", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_blue_orchid'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:red_flower2", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_allium'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:red_flower3", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_azure_bluet'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:red_flower4", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_red_tulip'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:red_flower5", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_orange_tulip'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:red_flower6", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_white_tulip'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:red_flower7", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_pink_tulip'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:red_flower8", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_oxeye_daisy'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:yellow_flower0", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_dandelion'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:sapling0", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_oak_sapling'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:sapling1", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_spruce_sapling'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:sapling2", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_birch_sapling'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:sapling3", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_jungle_sapling'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:sapling4", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_acacia_sapling'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:sapling5", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_dark_oak_sapling'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:red_mushroom0", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_red_mushroom'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:brown_mushroom0", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_brown_mushroom'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:deadbush0", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_dead_bush'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:tallgrass2", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_fern'}"));
|
|
+ FLOWER_POT_MAP.put("minecraft:cactus0", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:potted_cactus'}")); // we change default to empty
|
|
+ }
|
|
+
|
|
+ static final Map<String, MapType<String>> SKULL_MAP = new HashMap<>();
|
|
+ static {
|
|
+ mapSkull(SKULL_MAP, 0, "skeleton", "skull");
|
|
+ mapSkull(SKULL_MAP, 1, "wither_skeleton", "skull");
|
|
+ mapSkull(SKULL_MAP, 2, "zombie", "head");
|
|
+ mapSkull(SKULL_MAP, 3, "player", "head");
|
|
+ mapSkull(SKULL_MAP, 4, "creeper", "head");
|
|
+ mapSkull(SKULL_MAP, 5, "dragon", "head");
|
|
+ };
|
|
+
|
|
+ private static void mapSkull(final Map<String, MapType<String>> into, final int oldId, final String newId, final String skullType) {
|
|
+ into.put(oldId + "north", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + newId + "_wall_" + skullType + "',Properties:{facing:'north'}}"));
|
|
+ into.put(oldId + "east", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + newId + "_wall_" + skullType + "',Properties:{facing:'east'}}"));
|
|
+ into.put(oldId + "south", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + newId + "_wall_" + skullType + "',Properties:{facing:'south'}}"));
|
|
+ into.put(oldId + "west", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + newId + "_wall_" + skullType + "',Properties:{facing:'west'}}"));
|
|
+
|
|
+ for (int rotation = 0; rotation < 16; ++rotation) {
|
|
+ into.put(oldId + "" + rotation,
|
|
+ HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + newId + "_" + skullType + "',Properties:{rotation:'" + rotation + "'}}"));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ static final Map<String, MapType<String>> DOOR_MAP = new HashMap<>();
|
|
+ static {
|
|
+ mapDoor(DOOR_MAP, "oak_door", 1024);
|
|
+ mapDoor(DOOR_MAP, "iron_door", 1136);
|
|
+ mapDoor(DOOR_MAP, "spruce_door", 3088);
|
|
+ mapDoor(DOOR_MAP, "birch_door", 3104);
|
|
+ mapDoor(DOOR_MAP, "jungle_door", 3120);
|
|
+ mapDoor(DOOR_MAP, "acacia_door", 3136);
|
|
+ mapDoor(DOOR_MAP, "dark_oak_door", 3152);
|
|
+ };
|
|
+
|
|
+ private static void mapDoor(final Map<String, MapType<String>> into, final String type, final int oldId) {
|
|
+ into.put("minecraft:" + type + "eastlowerleftfalsefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "eastlowerleftfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "eastlowerlefttruefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "eastlowerlefttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "eastlowerrightfalsefalse", Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(oldId)));
|
|
+ into.put("minecraft:" + type + "eastlowerrightfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "eastlowerrighttruefalse", Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(oldId + 4)));
|
|
+ into.put("minecraft:" + type + "eastlowerrighttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "eastupperleftfalsefalse", Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(oldId + 8)));
|
|
+ into.put("minecraft:" + type + "eastupperleftfalsetrue", Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(oldId + 10)));
|
|
+ into.put("minecraft:" + type + "eastupperlefttruefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "eastupperlefttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "eastupperrightfalsefalse", Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(oldId + 9)));
|
|
+ into.put("minecraft:" + type + "eastupperrightfalsetrue", Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(oldId + 11)));
|
|
+ into.put("minecraft:" + type + "eastupperrighttruefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "eastupperrighttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "northlowerleftfalsefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "northlowerleftfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "northlowerlefttruefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "northlowerlefttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "northlowerrightfalsefalse", Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(oldId + 3)));
|
|
+ into.put("minecraft:" + type + "northlowerrightfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "northlowerrighttruefalse", Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(oldId + 7)));
|
|
+ into.put("minecraft:" + type + "northlowerrighttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "northupperleftfalsefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "northupperleftfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "northupperlefttruefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "northupperlefttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "northupperrightfalsefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "northupperrightfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "northupperrighttruefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "northupperrighttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "southlowerleftfalsefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "southlowerleftfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "southlowerlefttruefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "southlowerlefttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "southlowerrightfalsefalse", Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(oldId + 1)));
|
|
+ into.put("minecraft:" + type + "southlowerrightfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "southlowerrighttruefalse", Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(oldId + 5)));
|
|
+ into.put("minecraft:" + type + "southlowerrighttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "southupperleftfalsefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "southupperleftfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "southupperlefttruefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "southupperlefttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "southupperrightfalsefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "southupperrightfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "southupperrighttruefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "southupperrighttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "westlowerleftfalsefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "westlowerleftfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "westlowerlefttruefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "westlowerlefttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "westlowerrightfalsefalse", Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(oldId + 2)));
|
|
+ into.put("minecraft:" + type + "westlowerrightfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "westlowerrighttruefalse", Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(oldId + 6)));
|
|
+ into.put("minecraft:" + type + "westlowerrighttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "westupperleftfalsefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "westupperleftfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "westupperlefttruefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "westupperlefttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "westupperrightfalsefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "westupperrightfalsetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'true'}}"));
|
|
+ into.put("minecraft:" + type + "westupperrighttruefalse", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'false'}}"));
|
|
+ into.put("minecraft:" + type + "westupperrighttruetrue", HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + type + "',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'true'}}"));
|
|
+ }
|
|
+
|
|
+ static final Map<String, MapType<String>> NOTE_BLOCK_MAP = new HashMap<>();
|
|
+ static {
|
|
+ for(int note = 0; note < 26; ++note) {
|
|
+ NOTE_BLOCK_MAP.put("true" + note, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:note_block',Properties:{powered:'true',note:'" + note + "'}}"));
|
|
+ NOTE_BLOCK_MAP.put("false" + note, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:note_block',Properties:{powered:'false',note:'" + note + "'}}"));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ static final Int2ObjectOpenHashMap<String> DYE_COLOR_MAP = new Int2ObjectOpenHashMap<>();
|
|
+ static {
|
|
+ DYE_COLOR_MAP.put(0, "white");
|
|
+ DYE_COLOR_MAP.put(1, "orange");
|
|
+ DYE_COLOR_MAP.put(2, "magenta");
|
|
+ DYE_COLOR_MAP.put(3, "light_blue");
|
|
+ DYE_COLOR_MAP.put(4, "yellow");
|
|
+ DYE_COLOR_MAP.put(5, "lime");
|
|
+ DYE_COLOR_MAP.put(6, "pink");
|
|
+ DYE_COLOR_MAP.put(7, "gray");
|
|
+ DYE_COLOR_MAP.put(8, "light_gray");
|
|
+ DYE_COLOR_MAP.put(9, "cyan");
|
|
+ DYE_COLOR_MAP.put(10, "purple");
|
|
+ DYE_COLOR_MAP.put(11, "blue");
|
|
+ DYE_COLOR_MAP.put(12, "brown");
|
|
+ DYE_COLOR_MAP.put(13, "green");
|
|
+ DYE_COLOR_MAP.put(14, "red");
|
|
+ DYE_COLOR_MAP.put(15, "black");
|
|
+ }
|
|
+
|
|
+ static final Map<String, MapType<String>> BED_BLOCK_MAP = new HashMap<>();
|
|
+
|
|
+ static {
|
|
+ for (final Int2ObjectMap.Entry<String> entry : DYE_COLOR_MAP.int2ObjectEntrySet()) {
|
|
+ if (!Objects.equals(entry.getValue(), "red")) {
|
|
+ addBeds(BED_BLOCK_MAP, entry.getIntKey(), entry.getValue());
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static void addBeds(final Map<String, MapType<String>> into, final int colourId, final String colourName) {
|
|
+ into.put("southfalsefoot" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_bed',Properties:{facing:'south',occupied:'false',part:'foot'}}"));
|
|
+ into.put("westfalsefoot" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_bed',Properties:{facing:'west',occupied:'false',part:'foot'}}"));
|
|
+ into.put("northfalsefoot" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_bed',Properties:{facing:'north',occupied:'false',part:'foot'}}"));
|
|
+ into.put("eastfalsefoot" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_bed',Properties:{facing:'east',occupied:'false',part:'foot'}}"));
|
|
+ into.put("southfalsehead" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_bed',Properties:{facing:'south',occupied:'false',part:'head'}}"));
|
|
+ into.put("westfalsehead" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_bed',Properties:{facing:'west',occupied:'false',part:'head'}}"));
|
|
+ into.put("northfalsehead" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_bed',Properties:{facing:'north',occupied:'false',part:'head'}}"));
|
|
+ into.put("eastfalsehead" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_bed',Properties:{facing:'east',occupied:'false',part:'head'}}"));
|
|
+ into.put("southtruehead" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_bed',Properties:{facing:'south',occupied:'true',part:'head'}}"));
|
|
+ into.put("westtruehead" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_bed',Properties:{facing:'west',occupied:'true',part:'head'}}"));
|
|
+ into.put("northtruehead" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_bed',Properties:{facing:'north',occupied:'true',part:'head'}}"));
|
|
+ into.put("easttruehead" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_bed',Properties:{facing:'east',occupied:'true',part:'head'}}"));
|
|
+ }
|
|
+
|
|
+ static final Map<String, MapType<String>> BANNER_BLOCK_MAP = new HashMap<>();
|
|
+
|
|
+ static {
|
|
+ for (final Int2ObjectMap.Entry<String> entry : DYE_COLOR_MAP.int2ObjectEntrySet()) {
|
|
+ if (!Objects.equals(entry.getValue(), "white")) {
|
|
+ addBanners(BANNER_BLOCK_MAP, 15 - entry.getIntKey(), entry.getValue());
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static void addBanners(final Map<String, MapType<String>> into, final int colourId, final String colourName) {
|
|
+ for(int rotation = 0; rotation < 16; ++rotation) {
|
|
+ into.put("" + rotation + "_" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_banner',Properties:{rotation:'" + rotation + "'}}"));
|
|
+ }
|
|
+
|
|
+ into.put("north_" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_wall_banner',Properties:{facing:'north'}}"));
|
|
+ into.put("south_" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_wall_banner',Properties:{facing:'south'}}"));
|
|
+ into.put("west_" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_wall_banner',Properties:{facing:'west'}}"));
|
|
+ into.put("east_" + colourId, HelperBlockFlatteningV1450.parseTag("{Name:'minecraft:" + colourName + "_wall_banner',Properties:{facing:'east'}}"));
|
|
+ }
|
|
+
|
|
+ static final MapType<String> AIR = Objects.requireNonNull(HelperBlockFlatteningV1450.getNBTForId(0));
|
|
+
|
|
+ public ConverterFlattenChunk() {
|
|
+ super(MCVersions.V17W47A, 1);
|
|
+ }
|
|
+
|
|
+ static String getName(final MapType<String> blockState) {
|
|
+ return blockState.getString("Name");
|
|
+ }
|
|
+
|
|
+ static String getProperty(final MapType<String> blockState, final String propertyName) {
|
|
+ final MapType<String> properties = blockState.getMap("Properties");
|
|
+ if (properties == null) {
|
|
+ return "";
|
|
+ }
|
|
+
|
|
+ return properties.getString(propertyName, "");
|
|
+ }
|
|
+
|
|
+ static int getSideMask(final boolean noLeft, final boolean noRight, final boolean noBack, final boolean noForward) {
|
|
+ if (noBack) {
|
|
+ if (noRight) {
|
|
+ return 2;
|
|
+ } else if (noLeft) {
|
|
+ return 128;
|
|
+ } else {
|
|
+ return 1;
|
|
+ }
|
|
+ } else if (noForward) {
|
|
+ if (noLeft) {
|
|
+ return 32;
|
|
+ } else if (noRight) {
|
|
+ return 8;
|
|
+ } else {
|
|
+ return 16;
|
|
+ }
|
|
+ } else if (noRight) {
|
|
+ return 4;
|
|
+ } else if (noLeft) {
|
|
+ return 64;
|
|
+ } else {
|
|
+ return 0;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ if (!level.hasKey("Sections", ObjectType.LIST)) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ data.setMap("Level", new UpgradeChunk(level).writeBackToLevel());
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ static enum Direction {
|
|
+ DOWN(AxisDirection.NEGATIVE, Axis.Y),
|
|
+ UP(AxisDirection.POSITIVE, Axis.Y),
|
|
+ NORTH(AxisDirection.NEGATIVE, Axis.Z),
|
|
+ SOUTH(AxisDirection.POSITIVE, Axis.Z),
|
|
+ WEST(AxisDirection.NEGATIVE, Axis.X),
|
|
+ EAST(AxisDirection.POSITIVE, Axis.X);
|
|
+
|
|
+ private final Axis axis;
|
|
+ private final AxisDirection axisDirection;
|
|
+
|
|
+ private Direction(final AxisDirection axisDirection, final Axis axis) {
|
|
+ this.axis = axis;
|
|
+ this.axisDirection = axisDirection;
|
|
+ }
|
|
+
|
|
+ public AxisDirection getAxisDirection() {
|
|
+ return this.axisDirection;
|
|
+ }
|
|
+
|
|
+ public Axis getAxis() {
|
|
+ return this.axis;
|
|
+ }
|
|
+
|
|
+ public static enum AxisDirection {
|
|
+ POSITIVE(1),
|
|
+ NEGATIVE(-1);
|
|
+
|
|
+ private final int step;
|
|
+
|
|
+ private AxisDirection(final int step) {
|
|
+ this.step = step;
|
|
+ }
|
|
+
|
|
+ public int getStep() {
|
|
+ return this.step;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static enum Axis {
|
|
+ X, Y, Z;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ static class DataLayer {
|
|
+ private final byte[] data;
|
|
+
|
|
+ public DataLayer() {
|
|
+ this.data = new byte[2048];
|
|
+ }
|
|
+
|
|
+ public DataLayer(final byte[] data) {
|
|
+ this.data = data;
|
|
+ if (data.length != 2048) {
|
|
+ throw new IllegalArgumentException("ChunkNibbleArrays should be 2048 bytes not: " + data.length);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static DataLayer getOrNull(final byte[] data) {
|
|
+ return data == null ? null : new DataLayer(data);
|
|
+ }
|
|
+
|
|
+ public static DataLayer getOrCreate(final byte[] data) {
|
|
+ return data == null ? new DataLayer() : new DataLayer(data);
|
|
+ }
|
|
+
|
|
+ public int get(final int index) {
|
|
+ final byte value = this.data[index >>> 1];
|
|
+
|
|
+ // if we are an even index, we want lower 4 bits
|
|
+ // if we are an odd index, we want upper 4 bits
|
|
+ return ((value >>> ((index & 1) << 2)) & 0xF);
|
|
+ }
|
|
+
|
|
+ public int get(final int x, final int y, final int z) {
|
|
+ final int index = y << 8 | z << 4 | x;
|
|
+ final byte value = this.data[index >>> 1];
|
|
+
|
|
+ // if we are an even index, we want lower 4 bits
|
|
+ // if we are an odd index, we want upper 4 bits
|
|
+ return ((value >>> ((index & 1) << 2)) & 0xF);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ static final class UpgradeChunk {
|
|
+ int sides;
|
|
+
|
|
+ final Section[] sections = new Section[16];
|
|
+ final MapType<String> level;
|
|
+ final int blockX;
|
|
+ final int blockZ;
|
|
+ final Int2ObjectLinkedOpenHashMap<MapType<String>> tileEntities = new Int2ObjectLinkedOpenHashMap<>(16);
|
|
+
|
|
+ public UpgradeChunk(final MapType<String> level) {
|
|
+ this.level = level;
|
|
+ this.blockX = level.getInt("xPos") << 4;
|
|
+ this.blockZ = level.getInt("zPos") << 4;
|
|
+
|
|
+ final ListType tileEntities = level.getList("TileEntities", ObjectType.MAP);
|
|
+ if (tileEntities != null) {
|
|
+ for (int i = 0, len = tileEntities.size(); i < len; ++i) {
|
|
+ final MapType<String> tileEntity = tileEntities.getMap(i);
|
|
+
|
|
+ final int x = (tileEntity.getInt("x") - this.blockX) & 15;
|
|
+ final int y = tileEntity.getInt("y");
|
|
+ final int z = (tileEntity.getInt("z") - this.blockZ) & 15;
|
|
+ final int index = (y << 8) | (z << 4) | x;
|
|
+ if (this.tileEntities.put(index, tileEntity) != null) {
|
|
+ LOGGER.warn("In chunk: {}x{} found a duplicate block entity at position (ConverterFlattenChunk): [{}, {}, {}]", this.blockX, this.blockZ, x, y, z);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final boolean convertedFromAlphaFormat = level.getBoolean("convertedFromAlphaFormat");
|
|
+ final ListType sections = level.getList("Sections", ObjectType.MAP);
|
|
+ if (sections != null) {
|
|
+ for (int i = 0, len = sections.size(); i < len; ++i) {
|
|
+ final MapType<String> sectionData = sections.getMap(i);
|
|
+ final Section section = new Section(sectionData);
|
|
+
|
|
+ if (section.y < 0 || section.y > 15) {
|
|
+ LOGGER.warn("In chunk: {}x{} found an invalid chunk section y (ConverterFlattenChunk): {}", this.blockX, this.blockZ, section.y);
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ if (this.sections[section.y] != null) {
|
|
+ LOGGER.warn("In chunk: {}x{} found a duplicate chunk section (ConverterFlattenChunk): {}", this.blockX, this.blockZ, section.y);
|
|
+ }
|
|
+
|
|
+ this.sides = section.upgrade(this.sides);
|
|
+ this.sections[section.y] = section;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ for (final Section section : this.sections) {
|
|
+ if (section == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final int yIndex = section.y << (8 + 4);
|
|
+
|
|
+ for (final Iterator<Int2ObjectMap.Entry<IntArrayList>> iterator = section.toFix.int2ObjectEntrySet().fastIterator(); iterator.hasNext();) {
|
|
+ final Int2ObjectMap.Entry<IntArrayList> fixEntry = iterator.next();
|
|
+ final IntIterator positionIterator = fixEntry.getValue().iterator();
|
|
+ switch (fixEntry.getIntKey()) {
|
|
+ case 2: { // grass block
|
|
+ while (positionIterator.hasNext()) {
|
|
+ final int position = positionIterator.nextInt() | yIndex;
|
|
+ final MapType<String> blockState = this.getBlock(position);
|
|
+ if (!"minecraft:grass_block".equals(getName(blockState))) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String blockAbove = getName(getBlock(relative(position, Direction.UP)));
|
|
+ if ("minecraft:snow".equals(blockAbove) || "minecraft:snow_layer".equals(blockAbove)) {
|
|
+ this.setBlock(position, SNOWY_GRASS);
|
|
+ }
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+ case 3: { // dirt
|
|
+ while (positionIterator.hasNext()) {
|
|
+ final int position = positionIterator.nextInt() | yIndex;
|
|
+ final MapType<String> blockState = this.getBlock(position);
|
|
+ if (!"minecraft:podzol".equals(getName(blockState))) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String blockAbove = getName(getBlock(relative(position, Direction.UP)));
|
|
+ if ("minecraft:snow".equals(blockAbove) || "minecraft:snow_layer".equals(blockAbove)) {
|
|
+ this.setBlock(position, SNOWY_PODZOL);
|
|
+ }
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+ case 25: { // note block
|
|
+ while (positionIterator.hasNext()) {
|
|
+ final int position = positionIterator.nextInt() | yIndex;
|
|
+ final MapType<String> tile = this.removeBlockEntity(position);
|
|
+ if (tile != null) {
|
|
+ final String state = Boolean.toString(tile.getBoolean("powered")) + (byte) Math.min(Math.max(tile.getInt("note"), 0), 24);
|
|
+ this.setBlock(position, NOTE_BLOCK_MAP.getOrDefault(state, NOTE_BLOCK_MAP.get("false0")));
|
|
+ }
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+ case 26: { // bed
|
|
+ while (positionIterator.hasNext()) {
|
|
+ final int position = positionIterator.nextInt() | yIndex;
|
|
+ final MapType<String> tile = this.getBlockEntity(position);
|
|
+
|
|
+ if (tile == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final MapType<String> blockState = this.getBlock(position);
|
|
+
|
|
+ final int colour = tile.getInt("color");
|
|
+ if (colour != 14 && colour >= 0 && colour < 16) {
|
|
+ final String state = getProperty(blockState, "facing") + getProperty(blockState, "occupied") + getProperty(blockState, "part") + colour;
|
|
+
|
|
+ final MapType<String> update = BED_BLOCK_MAP.get(state);
|
|
+ if (update != null) {
|
|
+ this.setBlock(position, update);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+ case 64: // oak door
|
|
+ case 71: // iron door
|
|
+ case 193: // spruce door
|
|
+ case 194: // birch door
|
|
+ case 195: // jungle door
|
|
+ case 196: // acacia door
|
|
+ case 197: { // dark oak door
|
|
+ // aka the door updater
|
|
+ while (positionIterator.hasNext()) {
|
|
+ final int position = positionIterator.nextInt() | yIndex;
|
|
+ final MapType<String> blockState = this.getBlock(position);
|
|
+ if (!getName(blockState).endsWith("_door")) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ if (!"lower".equals(getProperty(blockState, "half"))) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final int positionAbove = relative(position, Direction.UP);
|
|
+ final MapType<String> blockStateAbove = this.getBlock(positionAbove);
|
|
+
|
|
+ final String name = getName(blockState);
|
|
+ if (name.equals(getName(blockStateAbove))) {
|
|
+ final String facingBelow = getProperty(blockState, "facing");
|
|
+ final String openBelow = getProperty(blockState, "open");
|
|
+ final String hingeAbove = convertedFromAlphaFormat ? "left" : getProperty(blockStateAbove, "hinge");
|
|
+ final String poweredAbove = convertedFromAlphaFormat ? "false" : getProperty(blockStateAbove, "powered");
|
|
+
|
|
+ this.setBlock(position, DOOR_MAP.get(name + facingBelow + "lower" + hingeAbove + openBelow + poweredAbove));
|
|
+ this.setBlock(positionAbove, DOOR_MAP.get(name + facingBelow + "upper" + hingeAbove + openBelow + poweredAbove));
|
|
+ }
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+ case 86: { // pumpkin
|
|
+ while (positionIterator.hasNext()) {
|
|
+ final int position = positionIterator.nextInt() | yIndex;
|
|
+ final MapType<String> blockState = this.getBlock(position);
|
|
+
|
|
+ // I guess this is some terrible hack to convert carved pumpkins from world gen into
|
|
+ // regular pumpkins?
|
|
+
|
|
+ if ("minecraft:carved_pumpkin".equals(getName(blockState))) {
|
|
+ final String downName = getName(this.getBlock(relative(position, Direction.DOWN)));
|
|
+ if ("minecraft:grass_block".equals(downName) || "minecraft:dirt".equals(downName)) {
|
|
+ this.setBlock(position, PUMPKIN);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+ case 110: { // mycelium
|
|
+ while (positionIterator.hasNext()) {
|
|
+ final int position = positionIterator.nextInt() | yIndex;
|
|
+ final MapType<String> blockState = this.getBlock(position);
|
|
+ if ("minecraft:mycelium".equals(getName(blockState))) {
|
|
+ final String nameAbove = getName(this.getBlock(relative(position, Direction.UP)));
|
|
+ if ("minecraft:snow".equals(nameAbove) || "minecraft:snow_layer".equals(nameAbove)) {
|
|
+ this.setBlock(position, SNOWY_MYCELIUM);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+ case 140: { // flower pot
|
|
+ while (positionIterator.hasNext()) {
|
|
+ final int position = positionIterator.nextInt() | yIndex;
|
|
+ final MapType<String> tile = this.removeBlockEntity(position);
|
|
+ if (tile == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String item;
|
|
+ if (tile.hasKey("Item", ObjectType.NUMBER)) {
|
|
+ // the item name converter should have migrated to number, however no legacy converter
|
|
+ // ever did this. so we can get data with versions above v102 (old worlds, converted prior to DFU)
|
|
+ // that didn't convert. so just do it here.
|
|
+ item = HelperItemNameV102.getNameFromId(tile.getInt("Item"));
|
|
+ } else {
|
|
+ item = tile.getString("Item", "");
|
|
+ }
|
|
+
|
|
+ final String state = item + tile.getInt("Data");
|
|
+ this.setBlock(position, FLOWER_POT_MAP.getOrDefault(state, FLOWER_POT_MAP.get("minecraft:air0")));
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+ case 144: { // mob head
|
|
+ while (positionIterator.hasNext()) {
|
|
+ final int position = positionIterator.nextInt() | yIndex;
|
|
+ final MapType<String> tile = this.getBlockEntity(position);
|
|
+ if (tile == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String typeString = Integer.toString(tile.getInt("SkullType"));
|
|
+ final String facing = getProperty(this.getBlock(position), "facing");
|
|
+ final String state;
|
|
+ if (!"up".equals(facing) && !"down".equals(facing)) {
|
|
+ state = typeString + facing;
|
|
+ } else {
|
|
+ state = typeString + tile.getInt("Rot");
|
|
+ }
|
|
+
|
|
+ tile.remove("SkullType");
|
|
+ tile.remove("facing");
|
|
+ tile.remove("Rot");
|
|
+
|
|
+ this.setBlock(position, SKULL_MAP.getOrDefault(state, SKULL_MAP.get("0north")));
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+ case 175: { // sunflower
|
|
+ while (positionIterator.hasNext()) {
|
|
+ final int position = positionIterator.nextInt() | yIndex;
|
|
+ final MapType<String> blockState = this.getBlock(position);
|
|
+ if (!"upper".equals(getProperty(blockState, "half"))) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final MapType<String> blockStateBelow = this.getBlock(relative(position, Direction.DOWN));
|
|
+ final String nameBelow = getName(blockStateBelow);
|
|
+ switch (nameBelow) {
|
|
+ case "minecraft:sunflower":
|
|
+ this.setBlock(position, UPPER_SUNFLOWER);
|
|
+ break;
|
|
+ case "minecraft:lilac":
|
|
+ this.setBlock(position, UPPER_LILAC);
|
|
+ break;
|
|
+ case "minecraft:tall_grass":
|
|
+ this.setBlock(position, UPPER_TALL_GRASS);
|
|
+ break;
|
|
+ case "minecraft:large_fern":
|
|
+ this.setBlock(position, UPPER_LARGE_FERN);
|
|
+ break;
|
|
+ case "minecraft:rose_bush":
|
|
+ this.setBlock(position, UPPER_ROSE_BUSH);
|
|
+ break;
|
|
+ case "minecraft:peony":
|
|
+ this.setBlock(position, UPPER_PEONY);
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+ case 176: // free standing banner
|
|
+ case 177: { // wall mounted banner
|
|
+ while (positionIterator.hasNext()) {
|
|
+ final int position = positionIterator.nextInt() | yIndex;
|
|
+ final MapType<String> tile = this.getBlockEntity(position);
|
|
+
|
|
+ if (tile == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final MapType<String> blockState = this.getBlock(position);
|
|
+
|
|
+ final int base = tile.getInt("Base");
|
|
+ if (base != 15 && base >= 0 && base < 16) {
|
|
+ final String state = getProperty(blockState, fixEntry.getIntKey() == 176 ? "rotation" : "facing") + "_" + base;
|
|
+ final MapType<String> update = BANNER_BLOCK_MAP.get(state);
|
|
+ if (update != null) {
|
|
+ this.setBlock(position, update);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private MapType<String> getBlockEntity(final int index) {
|
|
+ return this.tileEntities.get(index);
|
|
+ }
|
|
+
|
|
+ private MapType<String> removeBlockEntity(final int index) {
|
|
+ return this.tileEntities.remove(index);
|
|
+ }
|
|
+
|
|
+ public static int relative(final int index, final Direction direction) {
|
|
+ switch (direction.getAxis()) {
|
|
+ case X:
|
|
+ int j = (index & 15) + direction.getAxisDirection().getStep();
|
|
+ return j >= 0 && j <= 15 ? index & -16 | j : -1;
|
|
+ case Y:
|
|
+ int k = (index >> 8) + direction.getAxisDirection().getStep();
|
|
+ return k >= 0 && k <= 255 ? index & 255 | k << 8 : -1;
|
|
+ case Z:
|
|
+ int l = (index >> 4 & 15) + direction.getAxisDirection().getStep();
|
|
+ return l >= 0 && l <= 15 ? index & -241 | l << 4 : -1;
|
|
+ default:
|
|
+ return -1;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private void setBlock(final int index, final MapType<String> blockState) {
|
|
+ if (index >= 0 && index <= 65535) {
|
|
+ final Section section = this.getSection(index);
|
|
+ if (section != null) {
|
|
+ section.setBlock(index & 4095, blockState);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private Section getSection(final int index) {
|
|
+ final int y = index >> 12;
|
|
+ return y < this.sections.length ? this.sections[y] : null;
|
|
+ }
|
|
+
|
|
+ public MapType<String> getBlock(int i) {
|
|
+ if (i >= 0 && i <= 65535) {
|
|
+ final Section section = this.getSection(i);
|
|
+ return section == null ? AIR : section.getBlock(i & 4095);
|
|
+ } else {
|
|
+ return AIR;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public MapType<String> writeBackToLevel() {
|
|
+ if (this.tileEntities.isEmpty()) {
|
|
+ this.level.remove("TileEntities");
|
|
+ } else {
|
|
+ final ListType tileEntities = Types.NBT.createEmptyList();
|
|
+ this.tileEntities.values().forEach(tileEntities::addMap);
|
|
+ this.level.setList("TileEntities", tileEntities);
|
|
+ }
|
|
+
|
|
+ final MapType<String> indices = Types.NBT.createEmptyMap();
|
|
+ final ListType sections = Types.NBT.createEmptyList();
|
|
+ for (final Section section : this.sections) {
|
|
+ if (section == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ sections.addMap(section.writeBackToSection());
|
|
+ indices.setInts(Integer.toString(section.y), Arrays.copyOf(section.update.elements(), section.update.size()));
|
|
+ }
|
|
+
|
|
+ this.level.setList("Sections", sections);
|
|
+
|
|
+ final MapType<String> upgradeData = Types.NBT.createEmptyMap();
|
|
+ upgradeData.setByte("Sides", (byte)this.sides);
|
|
+ upgradeData.setMap("Indices", indices);
|
|
+
|
|
+ this.level.setMap("UpgradeData", upgradeData);
|
|
+
|
|
+ return this.level;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ static class Section {
|
|
+ final Palette palette = new Palette();
|
|
+
|
|
+ static final class Palette extends Reference2IntOpenHashMap<MapType<String>> {
|
|
+
|
|
+ final ListType paletteStates = Types.NBT.createEmptyList();
|
|
+
|
|
+ private int find(final MapType<String> k) {
|
|
+ if (((k) == (null)))
|
|
+ return containsNullKey ? n : -(n + 1);
|
|
+ MapType<String> curr;
|
|
+ final Object[] key = this.key;
|
|
+ int pos;
|
|
+ // The starting point.
|
|
+ if (((curr = (MapType<String>)key[pos = (it.unimi.dsi.fastutil.HashCommon.mix(System.identityHashCode(k))) & mask]) == (null)))
|
|
+ return -(pos + 1);
|
|
+ if (((k) == (curr)))
|
|
+ return pos;
|
|
+ // There's always an unused entry.
|
|
+ while (true) {
|
|
+ if (((curr = (MapType<String>)key[pos = (pos + 1) & mask]) == (null)))
|
|
+ return -(pos + 1);
|
|
+ if (((k) == (curr)))
|
|
+ return pos;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private void insert(final int pos, final MapType<String> k, final int v) {
|
|
+ if (pos == n)
|
|
+ containsNullKey = true;
|
|
+ ((Object[])key)[pos] = k;
|
|
+ value[pos] = v;
|
|
+ if (size++ >= maxFill)
|
|
+ rehash(arraySize(size + 1, f));
|
|
+ }
|
|
+
|
|
+ private MapType<String>[] byId = new MapType[4];
|
|
+ private MapType<String> last = null;
|
|
+
|
|
+ public int getOrCreateId(final MapType<String> k) {
|
|
+ if (k == this.last) {
|
|
+ return this.size - 1;
|
|
+ }
|
|
+ final int pos = find(k);
|
|
+ if (pos >= 0) {
|
|
+ return this.value[pos];
|
|
+ }
|
|
+
|
|
+ final int insert = this.size;
|
|
+ MapType<String> inPalette = k;
|
|
+
|
|
+ if ("%%FILTER_ME%%".equals(getName(k))) {
|
|
+ inPalette = AIR;
|
|
+ }
|
|
+
|
|
+ if (insert >= this.byId.length) {
|
|
+ this.byId = Arrays.copyOf(this.byId, this.byId.length * 2);
|
|
+ this.byId[insert] = k;
|
|
+ } else {
|
|
+ this.byId[insert] = k;
|
|
+ }
|
|
+ this.paletteStates.addMap(inPalette);
|
|
+
|
|
+ this.last = k;
|
|
+
|
|
+ this.insert(-pos - 1, k, insert);
|
|
+
|
|
+ return insert;
|
|
+ }
|
|
+
|
|
+ }
|
|
+
|
|
+ final MapType<String> section;
|
|
+ final boolean hasData;
|
|
+ final Int2ObjectLinkedOpenHashMap<IntArrayList> toFix = new Int2ObjectLinkedOpenHashMap<>();
|
|
+ final IntArrayList update = new IntArrayList();
|
|
+ final int y;
|
|
+ final int[] buffer = new int[4096];
|
|
+
|
|
+ public Section(final MapType<String> section) {
|
|
+ this.section = section;
|
|
+ this.y = section.getInt("Y");
|
|
+ this.hasData = section.hasKey("Blocks", ObjectType.BYTE_ARRAY);
|
|
+ }
|
|
+
|
|
+ public MapType<String> getBlock(final int index) {
|
|
+ if (index >= 0 && index <= 4095) {
|
|
+ final MapType<String> state = this.palette.byId[this.buffer[index]];
|
|
+ return state == null ? AIR : state;
|
|
+ } else {
|
|
+ return AIR;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public void setBlock(final int index, final MapType<String> blockState) {
|
|
+ this.buffer[index] = this.palette.getOrCreateId(blockState);
|
|
+ }
|
|
+
|
|
+ public int upgrade(int sides) {
|
|
+ if (!this.hasData) {
|
|
+ return sides;
|
|
+ }
|
|
+
|
|
+ final byte[] blocks = this.section.getBytes("Blocks");
|
|
+ final DataLayer data = DataLayer.getOrNull(this.section.getBytes("Data"));
|
|
+ final DataLayer add = DataLayer.getOrNull(this.section.getBytes("Add"));
|
|
+
|
|
+ this.palette.getOrCreateId(AIR);
|
|
+
|
|
+ for (int index = 0; index < 4096; ++index) {
|
|
+ final int x = index & 15;
|
|
+ final int z = index >> 4 & 15;
|
|
+
|
|
+ int blockStateId = (blocks[index] & 255) << 4;
|
|
+ if (data != null) {
|
|
+ blockStateId |= data.get(index);
|
|
+ }
|
|
+ if (add != null) {
|
|
+ blockStateId |= add.get(index) << 12;
|
|
+ }
|
|
+ if (IDS_NEEDING_FIX[blockStateId >>> 4]) {
|
|
+ this.addFix(blockStateId >>> 4, index);
|
|
+ }
|
|
+
|
|
+ if (VIRTUAL[blockStateId >>> 4]) {
|
|
+ final int additionalSides = getSideMask(x == 0, x == 15, z == 0, z == 15);
|
|
+ if (additionalSides == 0) {
|
|
+ this.update.add(index);
|
|
+ } else {
|
|
+ sides |= additionalSides;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ this.setBlock(index, HelperBlockFlatteningV1450.getNBTForId(blockStateId));
|
|
+ }
|
|
+
|
|
+ return sides;
|
|
+ }
|
|
+
|
|
+ private void addFix(final int block, final int index) {
|
|
+ this.toFix.computeIfAbsent(block, (final int keyInMap) -> {
|
|
+ return new IntArrayList();
|
|
+ }).add(index);
|
|
+ }
|
|
+
|
|
+ // Note: modifies the current section and returns it.
|
|
+ public MapType<String> writeBackToSection() {
|
|
+ if (!this.hasData) {
|
|
+ return this.section;
|
|
+ }
|
|
+
|
|
+ this.section.setList("Palette", this.palette.paletteStates.copy()); // deep copy to ensure palette compound tags are NOT shared
|
|
+
|
|
+ final int bitSize = Math.max(4, DataFixUtils.ceillog2(this.palette.size()));
|
|
+ final PackedBitStorage packedIds = new PackedBitStorage(bitSize, 4096);
|
|
+
|
|
+ for(int index = 0; index < this.buffer.length; ++index) {
|
|
+ packedIds.set(index, this.buffer[index]);
|
|
+ }
|
|
+
|
|
+ this.section.setLongs("BlockStates", packedIds.getRaw());
|
|
+
|
|
+ this.section.remove("Blocks");
|
|
+ this.section.remove("Data");
|
|
+ this.section.remove("Add");
|
|
+
|
|
+ return this.section;
|
|
+ }
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/entity/ConverterAbstractEntityRename.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/entity/ConverterAbstractEntityRename.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..06c075e643415d98b73734b749d9043091ebf9e5
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/entity/ConverterAbstractEntityRename.java
|
|
@@ -0,0 +1,38 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.entity;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.ConverterAbstractStringValueTypeRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import java.util.function.Function;
|
|
+
|
|
+public final class ConverterAbstractEntityRename {
|
|
+
|
|
+ private ConverterAbstractEntityRename() {}
|
|
+
|
|
+ public static void register(final int version, final Function<String, String> renamer) {
|
|
+ register(version, 0, renamer);
|
|
+ }
|
|
+
|
|
+ public static void register(final int version, final int subVersion, final Function<String, String> renamer) {
|
|
+ MCTypeRegistry.ENTITY.addStructureConverter(new DataConverter<>(version) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String id = data.getString("id");
|
|
+ if (id == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String converted = renamer.apply(id);
|
|
+
|
|
+ if (converted != null) {
|
|
+ data.setString("id", converted);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ ConverterAbstractStringValueTypeRename.register(version, subVersion, MCTypeRegistry.ENTITY_NAME, renamer);
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/entity/ConverterFlattenEntity.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/entity/ConverterFlattenEntity.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..afad2d92f78d4727ff4440ad2778f018d5a2a609
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/entity/ConverterFlattenEntity.java
|
|
@@ -0,0 +1,371 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.entity;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.HelperBlockFlatteningV1450;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+
|
|
+import java.util.HashMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class ConverterFlattenEntity extends DataConverter<MapType<String>, MapType<String>> {
|
|
+
|
|
+ private static final Map<String, Integer> BLOCK_NAME_TO_ID = new HashMap<>();
|
|
+ static {
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:air", 0);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:stone", 1);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:grass", 2);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:dirt", 3);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:cobblestone", 4);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:planks", 5);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:sapling", 6);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:bedrock", 7);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:flowing_water", 8);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:water", 9);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:flowing_lava", 10);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:lava", 11);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:sand", 12);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:gravel", 13);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:gold_ore", 14);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:iron_ore", 15);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:coal_ore", 16);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:log", 17);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:leaves", 18);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:sponge", 19);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:glass", 20);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:lapis_ore", 21);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:lapis_block", 22);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:dispenser", 23);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:sandstone", 24);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:noteblock", 25);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:bed", 26);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:golden_rail", 27);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:detector_rail", 28);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:sticky_piston", 29);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:web", 30);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:tallgrass", 31);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:deadbush", 32);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:piston", 33);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:piston_head", 34);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:wool", 35);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:piston_extension", 36);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:yellow_flower", 37);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:red_flower", 38);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:brown_mushroom", 39);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:red_mushroom", 40);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:gold_block", 41);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:iron_block", 42);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:double_stone_slab", 43);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:stone_slab", 44);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:brick_block", 45);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:tnt", 46);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:bookshelf", 47);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:mossy_cobblestone", 48);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:obsidian", 49);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:torch", 50);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:fire", 51);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:mob_spawner", 52);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:oak_stairs", 53);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:chest", 54);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:redstone_wire", 55);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:diamond_ore", 56);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:diamond_block", 57);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:crafting_table", 58);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:wheat", 59);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:farmland", 60);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:furnace", 61);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:lit_furnace", 62);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:standing_sign", 63);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:wooden_door", 64);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:ladder", 65);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:rail", 66);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:stone_stairs", 67);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:wall_sign", 68);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:lever", 69);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:stone_pressure_plate", 70);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:iron_door", 71);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:wooden_pressure_plate", 72);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:redstone_ore", 73);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:lit_redstone_ore", 74);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:unlit_redstone_torch", 75);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:redstone_torch", 76);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:stone_button", 77);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:snow_layer", 78);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:ice", 79);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:snow", 80);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:cactus", 81);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:clay", 82);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:reeds", 83);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:jukebox", 84);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:fence", 85);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:pumpkin", 86);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:netherrack", 87);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:soul_sand", 88);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:glowstone", 89);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:portal", 90);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:lit_pumpkin", 91);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:cake", 92);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:unpowered_repeater", 93);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:powered_repeater", 94);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:stained_glass", 95);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:trapdoor", 96);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:monster_egg", 97);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:stonebrick", 98);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:brown_mushroom_block", 99);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:red_mushroom_block", 100);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:iron_bars", 101);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:glass_pane", 102);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:melon_block", 103);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:pumpkin_stem", 104);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:melon_stem", 105);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:vine", 106);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:fence_gate", 107);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:brick_stairs", 108);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:stone_brick_stairs", 109);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:mycelium", 110);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:waterlily", 111);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:nether_brick", 112);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:nether_brick_fence", 113);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:nether_brick_stairs", 114);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:nether_wart", 115);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:enchanting_table", 116);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:brewing_stand", 117);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:cauldron", 118);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:end_portal", 119);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:end_portal_frame", 120);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:end_stone", 121);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:dragon_egg", 122);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:redstone_lamp", 123);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:lit_redstone_lamp", 124);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:double_wooden_slab", 125);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:wooden_slab", 126);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:cocoa", 127);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:sandstone_stairs", 128);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:emerald_ore", 129);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:ender_chest", 130);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:tripwire_hook", 131);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:tripwire", 132);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:emerald_block", 133);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:spruce_stairs", 134);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:birch_stairs", 135);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:jungle_stairs", 136);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:command_block", 137);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:beacon", 138);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:cobblestone_wall", 139);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:flower_pot", 140);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:carrots", 141);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:potatoes", 142);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:wooden_button", 143);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:skull", 144);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:anvil", 145);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:trapped_chest", 146);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:light_weighted_pressure_plate", 147);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:heavy_weighted_pressure_plate", 148);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:unpowered_comparator", 149);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:powered_comparator", 150);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:daylight_detector", 151);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:redstone_block", 152);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:quartz_ore", 153);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:hopper", 154);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:quartz_block", 155);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:quartz_stairs", 156);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:activator_rail", 157);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:dropper", 158);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:stained_hardened_clay", 159);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:stained_glass_pane", 160);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:leaves2", 161);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:log2", 162);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:acacia_stairs", 163);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:dark_oak_stairs", 164);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:slime", 165);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:barrier", 166);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:iron_trapdoor", 167);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:prismarine", 168);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:sea_lantern", 169);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:hay_block", 170);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:carpet", 171);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:hardened_clay", 172);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:coal_block", 173);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:packed_ice", 174);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:double_plant", 175);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:standing_banner", 176);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:wall_banner", 177);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:daylight_detector_inverted", 178);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:red_sandstone", 179);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:red_sandstone_stairs", 180);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:double_stone_slab2", 181);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:stone_slab2", 182);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:spruce_fence_gate", 183);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:birch_fence_gate", 184);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:jungle_fence_gate", 185);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:dark_oak_fence_gate", 186);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:acacia_fence_gate", 187);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:spruce_fence", 188);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:birch_fence", 189);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:jungle_fence", 190);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:dark_oak_fence", 191);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:acacia_fence", 192);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:spruce_door", 193);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:birch_door", 194);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:jungle_door", 195);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:acacia_door", 196);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:dark_oak_door", 197);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:end_rod", 198);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:chorus_plant", 199);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:chorus_flower", 200);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:purpur_block", 201);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:purpur_pillar", 202);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:purpur_stairs", 203);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:purpur_double_slab", 204);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:purpur_slab", 205);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:end_bricks", 206);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:beetroots", 207);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:grass_path", 208);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:end_gateway", 209);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:repeating_command_block", 210);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:chain_command_block", 211);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:frosted_ice", 212);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:magma", 213);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:nether_wart_block", 214);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:red_nether_brick", 215);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:bone_block", 216);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:structure_void", 217);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:observer", 218);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:white_shulker_box", 219);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:orange_shulker_box", 220);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:magenta_shulker_box", 221);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:light_blue_shulker_box", 222);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:yellow_shulker_box", 223);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:lime_shulker_box", 224);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:pink_shulker_box", 225);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:gray_shulker_box", 226);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:silver_shulker_box", 227);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:cyan_shulker_box", 228);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:purple_shulker_box", 229);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:blue_shulker_box", 230);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:brown_shulker_box", 231);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:green_shulker_box", 232);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:red_shulker_box", 233);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:black_shulker_box", 234);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:white_glazed_terracotta", 235);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:orange_glazed_terracotta", 236);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:magenta_glazed_terracotta", 237);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:light_blue_glazed_terracotta", 238);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:yellow_glazed_terracotta", 239);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:lime_glazed_terracotta", 240);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:pink_glazed_terracotta", 241);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:gray_glazed_terracotta", 242);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:silver_glazed_terracotta", 243);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:cyan_glazed_terracotta", 244);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:purple_glazed_terracotta", 245);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:blue_glazed_terracotta", 246);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:brown_glazed_terracotta", 247);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:green_glazed_terracotta", 248);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:red_glazed_terracotta", 249);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:black_glazed_terracotta", 250);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:concrete", 251);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:concrete_powder", 252);
|
|
+ BLOCK_NAME_TO_ID.put("minecraft:structure_block", 255);
|
|
+ }
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V17W47A;
|
|
+
|
|
+ protected final String[] paths;
|
|
+
|
|
+ public ConverterFlattenEntity(final String... paths) {
|
|
+ super(VERSION, 3);
|
|
+ this.paths = paths;
|
|
+ }
|
|
+
|
|
+ private static void register(final String id, final String... paths) {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId(id, new ConverterFlattenEntity(paths));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:falling_block", new DataConverter<>(VERSION, 3) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final int blockId;
|
|
+ if (data.hasKey("Block")) {
|
|
+ final Number id = data.getNumber("Block");
|
|
+ if (id != null) {
|
|
+ blockId = id.intValue();
|
|
+ } else {
|
|
+ blockId = getBlockId(data.getString("Block"));
|
|
+ }
|
|
+ } else {
|
|
+ final Number tileId = data.getNumber("TileID");
|
|
+ if (tileId != null) {
|
|
+ blockId = tileId.intValue();
|
|
+ } else {
|
|
+ blockId = data.getByte("Tile") & 255;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final int blockData = data.getInt("Data") & 15;
|
|
+
|
|
+ data.remove("Block"); // from type update
|
|
+ data.remove("Data");
|
|
+ data.remove("TileID");
|
|
+ data.remove("Tile");
|
|
+
|
|
+ // key is from type update
|
|
+ data.setMap("BlockState", HelperBlockFlatteningV1450.getNBTForId((blockId << 4) | blockData).copy()); // copy to avoid problems with later state datafixers
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ register("minecraft:enderman", "carried", "carriedData", "carriedBlockState");
|
|
+ register("minecraft:arrow", "inTile", "inData", "inBlockState");
|
|
+ register("minecraft:spectral_arrow", "inTile", "inData", "inBlockState");
|
|
+ register("minecraft:egg", "inTile");
|
|
+ register("minecraft:ender_pearl", "inTile");
|
|
+ register("minecraft:fireball", "inTile");
|
|
+ register("minecraft:potion", "inTile");
|
|
+ register("minecraft:small_fireball", "inTile");
|
|
+ register("minecraft:snowball", "inTile");
|
|
+ register("minecraft:wither_skull", "inTile");
|
|
+ register("minecraft:xp_bottle", "inTile");
|
|
+ register("minecraft:commandblock_minecart", "DisplayTile", "DisplayData", "DisplayState");
|
|
+ register("minecraft:minecart", "DisplayTile", "DisplayData", "DisplayState");
|
|
+ register("minecraft:chest_minecart", "DisplayTile", "DisplayData", "DisplayState");
|
|
+ register("minecraft:furnace_minecart", "DisplayTile", "DisplayData", "DisplayState");
|
|
+ register("minecraft:tnt_minecart", "DisplayTile", "DisplayData", "DisplayState");
|
|
+ register("minecraft:hopper_minecart", "DisplayTile", "DisplayData", "DisplayState");
|
|
+ register("minecraft:spawner_minecart", "DisplayTile", "DisplayData", "DisplayState");
|
|
+ }
|
|
+
|
|
+ public static int getBlockId(final String block) {
|
|
+ final Integer ret = BLOCK_NAME_TO_ID.get(block);
|
|
+ return ret == null ? 0 : ret.intValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (this.paths.length == 1) {
|
|
+ data.remove(this.paths[0]);
|
|
+ return null;
|
|
+ }
|
|
+ final String idPath = this.paths[0];
|
|
+ final String dataPath = this.paths[1];
|
|
+ final String outputStatePath = this.paths[2];
|
|
+
|
|
+ final int blockId;
|
|
+ if (data.hasKey(idPath, ObjectType.NUMBER)) {
|
|
+ blockId = data.getInt(idPath);
|
|
+ } else {
|
|
+ blockId = getBlockId(data.getString(idPath));
|
|
+ }
|
|
+
|
|
+ final int blockData = data.getInt(dataPath) & 15;
|
|
+
|
|
+ data.remove(idPath); // from type update
|
|
+ data.remove(dataPath);
|
|
+
|
|
+ data.setMap(outputStatePath, HelperBlockFlatteningV1450.getNBTForId((blockId << 4) | blockData).copy()); // copy to avoid problems with later state datafixers
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/AddFlagIfAbsent.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/AddFlagIfAbsent.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..4ab607f946782cc483535564e86fa9753dd7897a
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/AddFlagIfAbsent.java
|
|
@@ -0,0 +1,30 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.helpers;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class AddFlagIfAbsent extends DataConverter<MapType<String>, MapType<String>> {
|
|
+
|
|
+ public final String path;
|
|
+ public final boolean dfl;
|
|
+
|
|
+ public AddFlagIfAbsent(final int toVersion, final String path, final boolean dfl) {
|
|
+ super(toVersion);
|
|
+ this.path = path;
|
|
+ this.dfl = dfl;
|
|
+ }
|
|
+
|
|
+ public AddFlagIfAbsent(final int toVersion, final int versionStep, final String path, final boolean dfl) {
|
|
+ super(toVersion, versionStep);
|
|
+ this.path = path;
|
|
+ this.dfl = dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (!data.hasKey(this.path)) {
|
|
+ data.setBoolean(this.path, this.dfl);
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/ConverterAbstractStringValueTypeRename.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/ConverterAbstractStringValueTypeRename.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..bc79670f47aaa413ea3e96ef6a32e14099ad8a58
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/ConverterAbstractStringValueTypeRename.java
|
|
@@ -0,0 +1,24 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.helpers;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCValueType;
|
|
+import java.util.function.Function;
|
|
+
|
|
+public final class ConverterAbstractStringValueTypeRename {
|
|
+
|
|
+ private ConverterAbstractStringValueTypeRename() {}
|
|
+
|
|
+ public static void register(final int version, final MCValueType type, final Function<String, String> renamer) {
|
|
+ register(version, 0, type, renamer);
|
|
+ }
|
|
+ public static void register(final int version, final int subVersion, final MCValueType type, final Function<String, String> renamer) {
|
|
+ type.addConverter(new DataConverter<>(version, subVersion) {
|
|
+ @Override
|
|
+ public Object convert(final Object data, final long sourceVersion, final long toVersion) {
|
|
+ final String ret = (data instanceof String) ? renamer.apply((String)data) : null;
|
|
+ return ret == data ? null : ret;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/HelperBlockFlatteningV1450.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/HelperBlockFlatteningV1450.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..02ee521dc0f61f3f01d443c46c1066d1ecbeea7f
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/HelperBlockFlatteningV1450.java
|
|
@@ -0,0 +1,1830 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.helpers;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.nbt.NBTMapType;
|
|
+import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap;
|
|
+import net.minecraft.nbt.TagParser;
|
|
+import java.util.HashMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class HelperBlockFlatteningV1450 {
|
|
+
|
|
+ protected static final MapType<String>[] FLATTENED_BY_ID = new MapType[4096];
|
|
+ protected static final MapType<String>[] BLOCK_DEFAULTS = new MapType[4096];
|
|
+
|
|
+ private static final Object2IntOpenHashMap<MapType<String>> ID_BY_OLD_NBT = new Object2IntOpenHashMap<MapType<String>>(64, 0.7f) {
|
|
+ @Override
|
|
+ public int put(final MapType<String> o, final int v) {
|
|
+ if (this.containsKey(o)) {
|
|
+ throw new RuntimeException("Already contains mapping for " + o);
|
|
+ }
|
|
+
|
|
+ return super.put(o, v);
|
|
+ }
|
|
+ };
|
|
+ static {
|
|
+ ID_BY_OLD_NBT.defaultReturnValue(-1);
|
|
+ }
|
|
+
|
|
+ private static final Object2IntOpenHashMap<String> ID_BY_OLD_NAME = new Object2IntOpenHashMap<String>(64, 0.7f) {
|
|
+ @Override
|
|
+ public int put(final String o, final int v) {
|
|
+ if (this.containsKey(o)) {
|
|
+ throw new RuntimeException("Already contains mapping for " + o);
|
|
+ }
|
|
+
|
|
+ return super.put(o, v);
|
|
+ }
|
|
+ };
|
|
+ static {
|
|
+ ID_BY_OLD_NAME.defaultReturnValue(-1);
|
|
+ }
|
|
+
|
|
+ // map used to ensure that each parsed block state contains no duplicates
|
|
+ protected static final Map<MapType<String>, MapType<String>> IDENTITY_ENSURE = new HashMap<>();
|
|
+
|
|
+ public static MapType<String> parseTag(final String blockstate) {
|
|
+ try {
|
|
+ final MapType<String> ret = new NBTMapType(TagParser.parseTag(blockstate.replace('\'', '"')));
|
|
+
|
|
+ synchronized (IDENTITY_ENSURE) {
|
|
+ final MapType<String> identity = IDENTITY_ENSURE.putIfAbsent(ret, ret);
|
|
+
|
|
+ return identity == null ? ret : identity;
|
|
+ }
|
|
+
|
|
+ } catch (final Exception ex) {
|
|
+ throw new RuntimeException("Exception parsing " + blockstate, ex);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static void register(final int id, final String flattened, final String... preFlattenings) {
|
|
+ final MapType<String> flattenedNBT = parseTag(flattened);
|
|
+ if (FLATTENED_BY_ID[id] != null) {
|
|
+ throw new RuntimeException("Mapping already exists for id " + id);
|
|
+ }
|
|
+ FLATTENED_BY_ID[id] = flattenedNBT;
|
|
+
|
|
+ // it's important that we register ids from smallest to largest, so that
|
|
+ // the default is going to be correct
|
|
+ final int block = id >> 4;
|
|
+ if (BLOCK_DEFAULTS[block] == null) {
|
|
+ BLOCK_DEFAULTS[block] = flattenedNBT;
|
|
+ }
|
|
+
|
|
+ for (final String preFlattening : preFlattenings) {
|
|
+ final MapType<String> preFlatteningNBT = parseTag(preFlattening);
|
|
+ final String name = preFlatteningNBT.getString("Name");
|
|
+ if (name == null) {
|
|
+ throw new RuntimeException("Name does not exist for pre flattenings for id " + id);
|
|
+ }
|
|
+
|
|
+ // putIfAbsent so we default to the lowest id, which is going to be the block default
|
|
+ ID_BY_OLD_NAME.putIfAbsent(name, id);
|
|
+ ID_BY_OLD_NBT.put(preFlatteningNBT, id);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static void finalizeMaps() {
|
|
+ for(int i = 0; i < FLATTENED_BY_ID.length; ++i) {
|
|
+ if (FLATTENED_BY_ID[i] == null) {
|
|
+ FLATTENED_BY_ID[i] = BLOCK_DEFAULTS[i >> 4];
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static MapType<String> flattenNBT(final MapType<String> old) {
|
|
+ final int id = ID_BY_OLD_NBT.getInt(old);
|
|
+ final MapType<String> ret = getNBTForIdRaw(id);
|
|
+
|
|
+ return ret == null ? old : ret;
|
|
+ }
|
|
+
|
|
+ public static String getNewBlockName(final String old) {
|
|
+ final int id = ID_BY_OLD_NAME.getInt(old);
|
|
+ final MapType<String> ret = getNBTForIdRaw(id);
|
|
+ return ret == null ? old : ret.getString("Name");
|
|
+ }
|
|
+
|
|
+ public static String getNameForId(final int block) {
|
|
+ final MapType<String> nbt = getNBTForIdRaw(block);
|
|
+ return nbt == null ? "minecraft:air" : nbt.getString("Name");
|
|
+ }
|
|
+
|
|
+ protected static MapType<String> getNBTForIdRaw(final int block) {
|
|
+ return block >= 0 && block < FLATTENED_BY_ID.length ? FLATTENED_BY_ID[block] : null;
|
|
+ }
|
|
+
|
|
+ public static MapType<String> getNBTForId(final int block) {
|
|
+ MapType<String> ret = getNBTForIdRaw(block);
|
|
+ return ret == null ? FLATTENED_BY_ID[0] : ret;
|
|
+ }
|
|
+
|
|
+ private HelperBlockFlatteningV1450() {}
|
|
+
|
|
+ static {
|
|
+ ID_BY_OLD_NBT.defaultReturnValue(-1);
|
|
+ register(0, "{Name:'minecraft:air'}", "{Name:'minecraft:air'}");
|
|
+ register(16, "{Name:'minecraft:stone'}", "{Name:'minecraft:stone',Properties:{variant:'stone'}}");
|
|
+ register(17, "{Name:'minecraft:granite'}", "{Name:'minecraft:stone',Properties:{variant:'granite'}}");
|
|
+ register(18, "{Name:'minecraft:polished_granite'}", "{Name:'minecraft:stone',Properties:{variant:'smooth_granite'}}");
|
|
+ register(19, "{Name:'minecraft:diorite'}", "{Name:'minecraft:stone',Properties:{variant:'diorite'}}");
|
|
+ register(20, "{Name:'minecraft:polished_diorite'}", "{Name:'minecraft:stone',Properties:{variant:'smooth_diorite'}}");
|
|
+ register(21, "{Name:'minecraft:andesite'}", "{Name:'minecraft:stone',Properties:{variant:'andesite'}}");
|
|
+ register(22, "{Name:'minecraft:polished_andesite'}", "{Name:'minecraft:stone',Properties:{variant:'smooth_andesite'}}");
|
|
+ register(32, "{Name:'minecraft:grass_block',Properties:{snowy:'false'}}", "{Name:'minecraft:grass',Properties:{snowy:'false'}}", "{Name:'minecraft:grass',Properties:{snowy:'true'}}");
|
|
+ register(48, "{Name:'minecraft:dirt'}", "{Name:'minecraft:dirt',Properties:{snowy:'false',variant:'dirt'}}", "{Name:'minecraft:dirt',Properties:{snowy:'true',variant:'dirt'}}");
|
|
+ register(49, "{Name:'minecraft:coarse_dirt'}", "{Name:'minecraft:dirt',Properties:{snowy:'false',variant:'coarse_dirt'}}", "{Name:'minecraft:dirt',Properties:{snowy:'true',variant:'coarse_dirt'}}");
|
|
+ register(50, "{Name:'minecraft:podzol',Properties:{snowy:'false'}}", "{Name:'minecraft:dirt',Properties:{snowy:'false',variant:'podzol'}}", "{Name:'minecraft:dirt',Properties:{snowy:'true',variant:'podzol'}}");
|
|
+ register(64, "{Name:'minecraft:cobblestone'}", "{Name:'minecraft:cobblestone'}");
|
|
+ register(80, "{Name:'minecraft:oak_planks'}", "{Name:'minecraft:planks',Properties:{variant:'oak'}}");
|
|
+ register(81, "{Name:'minecraft:spruce_planks'}", "{Name:'minecraft:planks',Properties:{variant:'spruce'}}");
|
|
+ register(82, "{Name:'minecraft:birch_planks'}", "{Name:'minecraft:planks',Properties:{variant:'birch'}}");
|
|
+ register(83, "{Name:'minecraft:jungle_planks'}", "{Name:'minecraft:planks',Properties:{variant:'jungle'}}");
|
|
+ register(84, "{Name:'minecraft:acacia_planks'}", "{Name:'minecraft:planks',Properties:{variant:'acacia'}}");
|
|
+ register(85, "{Name:'minecraft:dark_oak_planks'}", "{Name:'minecraft:planks',Properties:{variant:'dark_oak'}}");
|
|
+ register(96, "{Name:'minecraft:oak_sapling',Properties:{stage:'0'}}", "{Name:'minecraft:sapling',Properties:{stage:'0',type:'oak'}}");
|
|
+ register(97, "{Name:'minecraft:spruce_sapling',Properties:{stage:'0'}}", "{Name:'minecraft:sapling',Properties:{stage:'0',type:'spruce'}}");
|
|
+ register(98, "{Name:'minecraft:birch_sapling',Properties:{stage:'0'}}", "{Name:'minecraft:sapling',Properties:{stage:'0',type:'birch'}}");
|
|
+ register(99, "{Name:'minecraft:jungle_sapling',Properties:{stage:'0'}}", "{Name:'minecraft:sapling',Properties:{stage:'0',type:'jungle'}}");
|
|
+ register(100, "{Name:'minecraft:acacia_sapling',Properties:{stage:'0'}}", "{Name:'minecraft:sapling',Properties:{stage:'0',type:'acacia'}}");
|
|
+ register(101, "{Name:'minecraft:dark_oak_sapling',Properties:{stage:'0'}}", "{Name:'minecraft:sapling',Properties:{stage:'0',type:'dark_oak'}}");
|
|
+ register(104, "{Name:'minecraft:oak_sapling',Properties:{stage:'1'}}", "{Name:'minecraft:sapling',Properties:{stage:'1',type:'oak'}}");
|
|
+ register(105, "{Name:'minecraft:spruce_sapling',Properties:{stage:'1'}}", "{Name:'minecraft:sapling',Properties:{stage:'1',type:'spruce'}}");
|
|
+ register(106, "{Name:'minecraft:birch_sapling',Properties:{stage:'1'}}", "{Name:'minecraft:sapling',Properties:{stage:'1',type:'birch'}}");
|
|
+ register(107, "{Name:'minecraft:jungle_sapling',Properties:{stage:'1'}}", "{Name:'minecraft:sapling',Properties:{stage:'1',type:'jungle'}}");
|
|
+ register(108, "{Name:'minecraft:acacia_sapling',Properties:{stage:'1'}}", "{Name:'minecraft:sapling',Properties:{stage:'1',type:'acacia'}}");
|
|
+ register(109, "{Name:'minecraft:dark_oak_sapling',Properties:{stage:'1'}}", "{Name:'minecraft:sapling',Properties:{stage:'1',type:'dark_oak'}}");
|
|
+ register(112, "{Name:'minecraft:bedrock'}", "{Name:'minecraft:bedrock'}");
|
|
+ register(128, "{Name:'minecraft:water',Properties:{level:'0'}}", "{Name:'minecraft:flowing_water',Properties:{level:'0'}}");
|
|
+ register(129, "{Name:'minecraft:water',Properties:{level:'1'}}", "{Name:'minecraft:flowing_water',Properties:{level:'1'}}");
|
|
+ register(130, "{Name:'minecraft:water',Properties:{level:'2'}}", "{Name:'minecraft:flowing_water',Properties:{level:'2'}}");
|
|
+ register(131, "{Name:'minecraft:water',Properties:{level:'3'}}", "{Name:'minecraft:flowing_water',Properties:{level:'3'}}");
|
|
+ register(132, "{Name:'minecraft:water',Properties:{level:'4'}}", "{Name:'minecraft:flowing_water',Properties:{level:'4'}}");
|
|
+ register(133, "{Name:'minecraft:water',Properties:{level:'5'}}", "{Name:'minecraft:flowing_water',Properties:{level:'5'}}");
|
|
+ register(134, "{Name:'minecraft:water',Properties:{level:'6'}}", "{Name:'minecraft:flowing_water',Properties:{level:'6'}}");
|
|
+ register(135, "{Name:'minecraft:water',Properties:{level:'7'}}", "{Name:'minecraft:flowing_water',Properties:{level:'7'}}");
|
|
+ register(136, "{Name:'minecraft:water',Properties:{level:'8'}}", "{Name:'minecraft:flowing_water',Properties:{level:'8'}}");
|
|
+ register(137, "{Name:'minecraft:water',Properties:{level:'9'}}", "{Name:'minecraft:flowing_water',Properties:{level:'9'}}");
|
|
+ register(138, "{Name:'minecraft:water',Properties:{level:'10'}}", "{Name:'minecraft:flowing_water',Properties:{level:'10'}}");
|
|
+ register(139, "{Name:'minecraft:water',Properties:{level:'11'}}", "{Name:'minecraft:flowing_water',Properties:{level:'11'}}");
|
|
+ register(140, "{Name:'minecraft:water',Properties:{level:'12'}}", "{Name:'minecraft:flowing_water',Properties:{level:'12'}}");
|
|
+ register(141, "{Name:'minecraft:water',Properties:{level:'13'}}", "{Name:'minecraft:flowing_water',Properties:{level:'13'}}");
|
|
+ register(142, "{Name:'minecraft:water',Properties:{level:'14'}}", "{Name:'minecraft:flowing_water',Properties:{level:'14'}}");
|
|
+ register(143, "{Name:'minecraft:water',Properties:{level:'15'}}", "{Name:'minecraft:flowing_water',Properties:{level:'15'}}");
|
|
+ register(144, "{Name:'minecraft:water',Properties:{level:'0'}}", "{Name:'minecraft:water',Properties:{level:'0'}}");
|
|
+ register(145, "{Name:'minecraft:water',Properties:{level:'1'}}", "{Name:'minecraft:water',Properties:{level:'1'}}");
|
|
+ register(146, "{Name:'minecraft:water',Properties:{level:'2'}}", "{Name:'minecraft:water',Properties:{level:'2'}}");
|
|
+ register(147, "{Name:'minecraft:water',Properties:{level:'3'}}", "{Name:'minecraft:water',Properties:{level:'3'}}");
|
|
+ register(148, "{Name:'minecraft:water',Properties:{level:'4'}}", "{Name:'minecraft:water',Properties:{level:'4'}}");
|
|
+ register(149, "{Name:'minecraft:water',Properties:{level:'5'}}", "{Name:'minecraft:water',Properties:{level:'5'}}");
|
|
+ register(150, "{Name:'minecraft:water',Properties:{level:'6'}}", "{Name:'minecraft:water',Properties:{level:'6'}}");
|
|
+ register(151, "{Name:'minecraft:water',Properties:{level:'7'}}", "{Name:'minecraft:water',Properties:{level:'7'}}");
|
|
+ register(152, "{Name:'minecraft:water',Properties:{level:'8'}}", "{Name:'minecraft:water',Properties:{level:'8'}}");
|
|
+ register(153, "{Name:'minecraft:water',Properties:{level:'9'}}", "{Name:'minecraft:water',Properties:{level:'9'}}");
|
|
+ register(154, "{Name:'minecraft:water',Properties:{level:'10'}}", "{Name:'minecraft:water',Properties:{level:'10'}}");
|
|
+ register(155, "{Name:'minecraft:water',Properties:{level:'11'}}", "{Name:'minecraft:water',Properties:{level:'11'}}");
|
|
+ register(156, "{Name:'minecraft:water',Properties:{level:'12'}}", "{Name:'minecraft:water',Properties:{level:'12'}}");
|
|
+ register(157, "{Name:'minecraft:water',Properties:{level:'13'}}", "{Name:'minecraft:water',Properties:{level:'13'}}");
|
|
+ register(158, "{Name:'minecraft:water',Properties:{level:'14'}}", "{Name:'minecraft:water',Properties:{level:'14'}}");
|
|
+ register(159, "{Name:'minecraft:water',Properties:{level:'15'}}", "{Name:'minecraft:water',Properties:{level:'15'}}");
|
|
+ register(160, "{Name:'minecraft:lava',Properties:{level:'0'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'0'}}");
|
|
+ register(161, "{Name:'minecraft:lava',Properties:{level:'1'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'1'}}");
|
|
+ register(162, "{Name:'minecraft:lava',Properties:{level:'2'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'2'}}");
|
|
+ register(163, "{Name:'minecraft:lava',Properties:{level:'3'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'3'}}");
|
|
+ register(164, "{Name:'minecraft:lava',Properties:{level:'4'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'4'}}");
|
|
+ register(165, "{Name:'minecraft:lava',Properties:{level:'5'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'5'}}");
|
|
+ register(166, "{Name:'minecraft:lava',Properties:{level:'6'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'6'}}");
|
|
+ register(167, "{Name:'minecraft:lava',Properties:{level:'7'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'7'}}");
|
|
+ register(168, "{Name:'minecraft:lava',Properties:{level:'8'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'8'}}");
|
|
+ register(169, "{Name:'minecraft:lava',Properties:{level:'9'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'9'}}");
|
|
+ register(170, "{Name:'minecraft:lava',Properties:{level:'10'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'10'}}");
|
|
+ register(171, "{Name:'minecraft:lava',Properties:{level:'11'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'11'}}");
|
|
+ register(172, "{Name:'minecraft:lava',Properties:{level:'12'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'12'}}");
|
|
+ register(173, "{Name:'minecraft:lava',Properties:{level:'13'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'13'}}");
|
|
+ register(174, "{Name:'minecraft:lava',Properties:{level:'14'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'14'}}");
|
|
+ register(175, "{Name:'minecraft:lava',Properties:{level:'15'}}", "{Name:'minecraft:flowing_lava',Properties:{level:'15'}}");
|
|
+ register(176, "{Name:'minecraft:lava',Properties:{level:'0'}}", "{Name:'minecraft:lava',Properties:{level:'0'}}");
|
|
+ register(177, "{Name:'minecraft:lava',Properties:{level:'1'}}", "{Name:'minecraft:lava',Properties:{level:'1'}}");
|
|
+ register(178, "{Name:'minecraft:lava',Properties:{level:'2'}}", "{Name:'minecraft:lava',Properties:{level:'2'}}");
|
|
+ register(179, "{Name:'minecraft:lava',Properties:{level:'3'}}", "{Name:'minecraft:lava',Properties:{level:'3'}}");
|
|
+ register(180, "{Name:'minecraft:lava',Properties:{level:'4'}}", "{Name:'minecraft:lava',Properties:{level:'4'}}");
|
|
+ register(181, "{Name:'minecraft:lava',Properties:{level:'5'}}", "{Name:'minecraft:lava',Properties:{level:'5'}}");
|
|
+ register(182, "{Name:'minecraft:lava',Properties:{level:'6'}}", "{Name:'minecraft:lava',Properties:{level:'6'}}");
|
|
+ register(183, "{Name:'minecraft:lava',Properties:{level:'7'}}", "{Name:'minecraft:lava',Properties:{level:'7'}}");
|
|
+ register(184, "{Name:'minecraft:lava',Properties:{level:'8'}}", "{Name:'minecraft:lava',Properties:{level:'8'}}");
|
|
+ register(185, "{Name:'minecraft:lava',Properties:{level:'9'}}", "{Name:'minecraft:lava',Properties:{level:'9'}}");
|
|
+ register(186, "{Name:'minecraft:lava',Properties:{level:'10'}}", "{Name:'minecraft:lava',Properties:{level:'10'}}");
|
|
+ register(187, "{Name:'minecraft:lava',Properties:{level:'11'}}", "{Name:'minecraft:lava',Properties:{level:'11'}}");
|
|
+ register(188, "{Name:'minecraft:lava',Properties:{level:'12'}}", "{Name:'minecraft:lava',Properties:{level:'12'}}");
|
|
+ register(189, "{Name:'minecraft:lava',Properties:{level:'13'}}", "{Name:'minecraft:lava',Properties:{level:'13'}}");
|
|
+ register(190, "{Name:'minecraft:lava',Properties:{level:'14'}}", "{Name:'minecraft:lava',Properties:{level:'14'}}");
|
|
+ register(191, "{Name:'minecraft:lava',Properties:{level:'15'}}", "{Name:'minecraft:lava',Properties:{level:'15'}}");
|
|
+ register(192, "{Name:'minecraft:sand'}", "{Name:'minecraft:sand',Properties:{variant:'sand'}}");
|
|
+ register(193, "{Name:'minecraft:red_sand'}", "{Name:'minecraft:sand',Properties:{variant:'red_sand'}}");
|
|
+ register(208, "{Name:'minecraft:gravel'}", "{Name:'minecraft:gravel'}");
|
|
+ register(224, "{Name:'minecraft:gold_ore'}", "{Name:'minecraft:gold_ore'}");
|
|
+ register(240, "{Name:'minecraft:iron_ore'}", "{Name:'minecraft:iron_ore'}");
|
|
+ register(256, "{Name:'minecraft:coal_ore'}", "{Name:'minecraft:coal_ore'}");
|
|
+ register(272, "{Name:'minecraft:oak_log',Properties:{axis:'y'}}", "{Name:'minecraft:log',Properties:{axis:'y',variant:'oak'}}");
|
|
+ register(273, "{Name:'minecraft:spruce_log',Properties:{axis:'y'}}", "{Name:'minecraft:log',Properties:{axis:'y',variant:'spruce'}}");
|
|
+ register(274, "{Name:'minecraft:birch_log',Properties:{axis:'y'}}", "{Name:'minecraft:log',Properties:{axis:'y',variant:'birch'}}");
|
|
+ register(275, "{Name:'minecraft:jungle_log',Properties:{axis:'y'}}", "{Name:'minecraft:log',Properties:{axis:'y',variant:'jungle'}}");
|
|
+ register(276, "{Name:'minecraft:oak_log',Properties:{axis:'x'}}", "{Name:'minecraft:log',Properties:{axis:'x',variant:'oak'}}");
|
|
+ register(277, "{Name:'minecraft:spruce_log',Properties:{axis:'x'}}", "{Name:'minecraft:log',Properties:{axis:'x',variant:'spruce'}}");
|
|
+ register(278, "{Name:'minecraft:birch_log',Properties:{axis:'x'}}", "{Name:'minecraft:log',Properties:{axis:'x',variant:'birch'}}");
|
|
+ register(279, "{Name:'minecraft:jungle_log',Properties:{axis:'x'}}", "{Name:'minecraft:log',Properties:{axis:'x',variant:'jungle'}}");
|
|
+ register(280, "{Name:'minecraft:oak_log',Properties:{axis:'z'}}", "{Name:'minecraft:log',Properties:{axis:'z',variant:'oak'}}");
|
|
+ register(281, "{Name:'minecraft:spruce_log',Properties:{axis:'z'}}", "{Name:'minecraft:log',Properties:{axis:'z',variant:'spruce'}}");
|
|
+ register(282, "{Name:'minecraft:birch_log',Properties:{axis:'z'}}", "{Name:'minecraft:log',Properties:{axis:'z',variant:'birch'}}");
|
|
+ register(283, "{Name:'minecraft:jungle_log',Properties:{axis:'z'}}", "{Name:'minecraft:log',Properties:{axis:'z',variant:'jungle'}}");
|
|
+ register(284, "{Name:'minecraft:oak_bark'}", "{Name:'minecraft:log',Properties:{axis:'none',variant:'oak'}}");
|
|
+ register(285, "{Name:'minecraft:spruce_bark'}", "{Name:'minecraft:log',Properties:{axis:'none',variant:'spruce'}}");
|
|
+ register(286, "{Name:'minecraft:birch_bark'}", "{Name:'minecraft:log',Properties:{axis:'none',variant:'birch'}}");
|
|
+ register(287, "{Name:'minecraft:jungle_bark'}", "{Name:'minecraft:log',Properties:{axis:'none',variant:'jungle'}}");
|
|
+ register(288, "{Name:'minecraft:oak_leaves',Properties:{check_decay:'false',decayable:'true'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'false',decayable:'true',variant:'oak'}}");
|
|
+ register(289, "{Name:'minecraft:spruce_leaves',Properties:{check_decay:'false',decayable:'true'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'false',decayable:'true',variant:'spruce'}}");
|
|
+ register(290, "{Name:'minecraft:birch_leaves',Properties:{check_decay:'false',decayable:'true'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'false',decayable:'true',variant:'birch'}}");
|
|
+ register(291, "{Name:'minecraft:jungle_leaves',Properties:{check_decay:'false',decayable:'true'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'false',decayable:'true',variant:'jungle'}}");
|
|
+ register(292, "{Name:'minecraft:oak_leaves',Properties:{check_decay:'false',decayable:'false'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'false',decayable:'false',variant:'oak'}}");
|
|
+ register(293, "{Name:'minecraft:spruce_leaves',Properties:{check_decay:'false',decayable:'false'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'false',decayable:'false',variant:'spruce'}}");
|
|
+ register(294, "{Name:'minecraft:birch_leaves',Properties:{check_decay:'false',decayable:'false'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'false',decayable:'false',variant:'birch'}}");
|
|
+ register(295, "{Name:'minecraft:jungle_leaves',Properties:{check_decay:'false',decayable:'false'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'false',decayable:'false',variant:'jungle'}}");
|
|
+ register(296, "{Name:'minecraft:oak_leaves',Properties:{check_decay:'true',decayable:'true'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'true',decayable:'true',variant:'oak'}}");
|
|
+ register(297, "{Name:'minecraft:spruce_leaves',Properties:{check_decay:'true',decayable:'true'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'true',decayable:'true',variant:'spruce'}}");
|
|
+ register(298, "{Name:'minecraft:birch_leaves',Properties:{check_decay:'true',decayable:'true'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'true',decayable:'true',variant:'birch'}}");
|
|
+ register(299, "{Name:'minecraft:jungle_leaves',Properties:{check_decay:'true',decayable:'true'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'true',decayable:'true',variant:'jungle'}}");
|
|
+ register(300, "{Name:'minecraft:oak_leaves',Properties:{check_decay:'true',decayable:'false'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'true',decayable:'false',variant:'oak'}}");
|
|
+ register(301, "{Name:'minecraft:spruce_leaves',Properties:{check_decay:'true',decayable:'false'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'true',decayable:'false',variant:'spruce'}}");
|
|
+ register(302, "{Name:'minecraft:birch_leaves',Properties:{check_decay:'true',decayable:'false'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'true',decayable:'false',variant:'birch'}}");
|
|
+ register(303, "{Name:'minecraft:jungle_leaves',Properties:{check_decay:'true',decayable:'false'}}", "{Name:'minecraft:leaves',Properties:{check_decay:'true',decayable:'false',variant:'jungle'}}");
|
|
+ register(304, "{Name:'minecraft:sponge'}", "{Name:'minecraft:sponge',Properties:{wet:'false'}}");
|
|
+ register(305, "{Name:'minecraft:wet_sponge'}", "{Name:'minecraft:sponge',Properties:{wet:'true'}}");
|
|
+ register(320, "{Name:'minecraft:glass'}", "{Name:'minecraft:glass'}");
|
|
+ register(336, "{Name:'minecraft:lapis_ore'}", "{Name:'minecraft:lapis_ore'}");
|
|
+ register(352, "{Name:'minecraft:lapis_block'}", "{Name:'minecraft:lapis_block'}");
|
|
+ register(368, "{Name:'minecraft:dispenser',Properties:{facing:'down',triggered:'false'}}", "{Name:'minecraft:dispenser',Properties:{facing:'down',triggered:'false'}}");
|
|
+ register(369, "{Name:'minecraft:dispenser',Properties:{facing:'up',triggered:'false'}}", "{Name:'minecraft:dispenser',Properties:{facing:'up',triggered:'false'}}");
|
|
+ register(370, "{Name:'minecraft:dispenser',Properties:{facing:'north',triggered:'false'}}", "{Name:'minecraft:dispenser',Properties:{facing:'north',triggered:'false'}}");
|
|
+ register(371, "{Name:'minecraft:dispenser',Properties:{facing:'south',triggered:'false'}}", "{Name:'minecraft:dispenser',Properties:{facing:'south',triggered:'false'}}");
|
|
+ register(372, "{Name:'minecraft:dispenser',Properties:{facing:'west',triggered:'false'}}", "{Name:'minecraft:dispenser',Properties:{facing:'west',triggered:'false'}}");
|
|
+ register(373, "{Name:'minecraft:dispenser',Properties:{facing:'east',triggered:'false'}}", "{Name:'minecraft:dispenser',Properties:{facing:'east',triggered:'false'}}");
|
|
+ register(376, "{Name:'minecraft:dispenser',Properties:{facing:'down',triggered:'true'}}", "{Name:'minecraft:dispenser',Properties:{facing:'down',triggered:'true'}}");
|
|
+ register(377, "{Name:'minecraft:dispenser',Properties:{facing:'up',triggered:'true'}}", "{Name:'minecraft:dispenser',Properties:{facing:'up',triggered:'true'}}");
|
|
+ register(378, "{Name:'minecraft:dispenser',Properties:{facing:'north',triggered:'true'}}", "{Name:'minecraft:dispenser',Properties:{facing:'north',triggered:'true'}}");
|
|
+ register(379, "{Name:'minecraft:dispenser',Properties:{facing:'south',triggered:'true'}}", "{Name:'minecraft:dispenser',Properties:{facing:'south',triggered:'true'}}");
|
|
+ register(380, "{Name:'minecraft:dispenser',Properties:{facing:'west',triggered:'true'}}", "{Name:'minecraft:dispenser',Properties:{facing:'west',triggered:'true'}}");
|
|
+ register(381, "{Name:'minecraft:dispenser',Properties:{facing:'east',triggered:'true'}}", "{Name:'minecraft:dispenser',Properties:{facing:'east',triggered:'true'}}");
|
|
+ register(384, "{Name:'minecraft:sandstone'}", "{Name:'minecraft:sandstone',Properties:{type:'sandstone'}}");
|
|
+ register(385, "{Name:'minecraft:chiseled_sandstone'}", "{Name:'minecraft:sandstone',Properties:{type:'chiseled_sandstone'}}");
|
|
+ register(386, "{Name:'minecraft:cut_sandstone'}", "{Name:'minecraft:sandstone',Properties:{type:'smooth_sandstone'}}");
|
|
+ register(400, "{Name:'minecraft:note_block'}", "{Name:'minecraft:noteblock'}");
|
|
+ register(416, "{Name:'minecraft:red_bed',Properties:{facing:'south',occupied:'false',part:'foot'}}", "{Name:'minecraft:bed',Properties:{facing:'south',occupied:'false',part:'foot'}}", "{Name:'minecraft:bed',Properties:{facing:'south',occupied:'true',part:'foot'}}");
|
|
+ register(417, "{Name:'minecraft:red_bed',Properties:{facing:'west',occupied:'false',part:'foot'}}", "{Name:'minecraft:bed',Properties:{facing:'west',occupied:'false',part:'foot'}}", "{Name:'minecraft:bed',Properties:{facing:'west',occupied:'true',part:'foot'}}");
|
|
+ register(418, "{Name:'minecraft:red_bed',Properties:{facing:'north',occupied:'false',part:'foot'}}", "{Name:'minecraft:bed',Properties:{facing:'north',occupied:'false',part:'foot'}}", "{Name:'minecraft:bed',Properties:{facing:'north',occupied:'true',part:'foot'}}");
|
|
+ register(419, "{Name:'minecraft:red_bed',Properties:{facing:'east',occupied:'false',part:'foot'}}", "{Name:'minecraft:bed',Properties:{facing:'east',occupied:'false',part:'foot'}}", "{Name:'minecraft:bed',Properties:{facing:'east',occupied:'true',part:'foot'}}");
|
|
+ register(424, "{Name:'minecraft:red_bed',Properties:{facing:'south',occupied:'false',part:'head'}}", "{Name:'minecraft:bed',Properties:{facing:'south',occupied:'false',part:'head'}}");
|
|
+ register(425, "{Name:'minecraft:red_bed',Properties:{facing:'west',occupied:'false',part:'head'}}", "{Name:'minecraft:bed',Properties:{facing:'west',occupied:'false',part:'head'}}");
|
|
+ register(426, "{Name:'minecraft:red_bed',Properties:{facing:'north',occupied:'false',part:'head'}}", "{Name:'minecraft:bed',Properties:{facing:'north',occupied:'false',part:'head'}}");
|
|
+ register(427, "{Name:'minecraft:red_bed',Properties:{facing:'east',occupied:'false',part:'head'}}", "{Name:'minecraft:bed',Properties:{facing:'east',occupied:'false',part:'head'}}");
|
|
+ register(428, "{Name:'minecraft:red_bed',Properties:{facing:'south',occupied:'true',part:'head'}}", "{Name:'minecraft:bed',Properties:{facing:'south',occupied:'true',part:'head'}}");
|
|
+ register(429, "{Name:'minecraft:red_bed',Properties:{facing:'west',occupied:'true',part:'head'}}", "{Name:'minecraft:bed',Properties:{facing:'west',occupied:'true',part:'head'}}");
|
|
+ register(430, "{Name:'minecraft:red_bed',Properties:{facing:'north',occupied:'true',part:'head'}}", "{Name:'minecraft:bed',Properties:{facing:'north',occupied:'true',part:'head'}}");
|
|
+ register(431, "{Name:'minecraft:red_bed',Properties:{facing:'east',occupied:'true',part:'head'}}", "{Name:'minecraft:bed',Properties:{facing:'east',occupied:'true',part:'head'}}");
|
|
+ register(432, "{Name:'minecraft:powered_rail',Properties:{powered:'false',shape:'north_south'}}", "{Name:'minecraft:golden_rail',Properties:{powered:'false',shape:'north_south'}}");
|
|
+ register(433, "{Name:'minecraft:powered_rail',Properties:{powered:'false',shape:'east_west'}}", "{Name:'minecraft:golden_rail',Properties:{powered:'false',shape:'east_west'}}");
|
|
+ register(434, "{Name:'minecraft:powered_rail',Properties:{powered:'false',shape:'ascending_east'}}", "{Name:'minecraft:golden_rail',Properties:{powered:'false',shape:'ascending_east'}}");
|
|
+ register(435, "{Name:'minecraft:powered_rail',Properties:{powered:'false',shape:'ascending_west'}}", "{Name:'minecraft:golden_rail',Properties:{powered:'false',shape:'ascending_west'}}");
|
|
+ register(436, "{Name:'minecraft:powered_rail',Properties:{powered:'false',shape:'ascending_north'}}", "{Name:'minecraft:golden_rail',Properties:{powered:'false',shape:'ascending_north'}}");
|
|
+ register(437, "{Name:'minecraft:powered_rail',Properties:{powered:'false',shape:'ascending_south'}}", "{Name:'minecraft:golden_rail',Properties:{powered:'false',shape:'ascending_south'}}");
|
|
+ register(440, "{Name:'minecraft:powered_rail',Properties:{powered:'true',shape:'north_south'}}", "{Name:'minecraft:golden_rail',Properties:{powered:'true',shape:'north_south'}}");
|
|
+ register(441, "{Name:'minecraft:powered_rail',Properties:{powered:'true',shape:'east_west'}}", "{Name:'minecraft:golden_rail',Properties:{powered:'true',shape:'east_west'}}");
|
|
+ register(442, "{Name:'minecraft:powered_rail',Properties:{powered:'true',shape:'ascending_east'}}", "{Name:'minecraft:golden_rail',Properties:{powered:'true',shape:'ascending_east'}}");
|
|
+ register(443, "{Name:'minecraft:powered_rail',Properties:{powered:'true',shape:'ascending_west'}}", "{Name:'minecraft:golden_rail',Properties:{powered:'true',shape:'ascending_west'}}");
|
|
+ register(444, "{Name:'minecraft:powered_rail',Properties:{powered:'true',shape:'ascending_north'}}", "{Name:'minecraft:golden_rail',Properties:{powered:'true',shape:'ascending_north'}}");
|
|
+ register(445, "{Name:'minecraft:powered_rail',Properties:{powered:'true',shape:'ascending_south'}}", "{Name:'minecraft:golden_rail',Properties:{powered:'true',shape:'ascending_south'}}");
|
|
+ register(448, "{Name:'minecraft:detector_rail',Properties:{powered:'false',shape:'north_south'}}", "{Name:'minecraft:detector_rail',Properties:{powered:'false',shape:'north_south'}}");
|
|
+ register(449, "{Name:'minecraft:detector_rail',Properties:{powered:'false',shape:'east_west'}}", "{Name:'minecraft:detector_rail',Properties:{powered:'false',shape:'east_west'}}");
|
|
+ register(450, "{Name:'minecraft:detector_rail',Properties:{powered:'false',shape:'ascending_east'}}", "{Name:'minecraft:detector_rail',Properties:{powered:'false',shape:'ascending_east'}}");
|
|
+ register(451, "{Name:'minecraft:detector_rail',Properties:{powered:'false',shape:'ascending_west'}}", "{Name:'minecraft:detector_rail',Properties:{powered:'false',shape:'ascending_west'}}");
|
|
+ register(452, "{Name:'minecraft:detector_rail',Properties:{powered:'false',shape:'ascending_north'}}", "{Name:'minecraft:detector_rail',Properties:{powered:'false',shape:'ascending_north'}}");
|
|
+ register(453, "{Name:'minecraft:detector_rail',Properties:{powered:'false',shape:'ascending_south'}}", "{Name:'minecraft:detector_rail',Properties:{powered:'false',shape:'ascending_south'}}");
|
|
+ register(456, "{Name:'minecraft:detector_rail',Properties:{powered:'true',shape:'north_south'}}", "{Name:'minecraft:detector_rail',Properties:{powered:'true',shape:'north_south'}}");
|
|
+ register(457, "{Name:'minecraft:detector_rail',Properties:{powered:'true',shape:'east_west'}}", "{Name:'minecraft:detector_rail',Properties:{powered:'true',shape:'east_west'}}");
|
|
+ register(458, "{Name:'minecraft:detector_rail',Properties:{powered:'true',shape:'ascending_east'}}", "{Name:'minecraft:detector_rail',Properties:{powered:'true',shape:'ascending_east'}}");
|
|
+ register(459, "{Name:'minecraft:detector_rail',Properties:{powered:'true',shape:'ascending_west'}}", "{Name:'minecraft:detector_rail',Properties:{powered:'true',shape:'ascending_west'}}");
|
|
+ register(460, "{Name:'minecraft:detector_rail',Properties:{powered:'true',shape:'ascending_north'}}", "{Name:'minecraft:detector_rail',Properties:{powered:'true',shape:'ascending_north'}}");
|
|
+ register(461, "{Name:'minecraft:detector_rail',Properties:{powered:'true',shape:'ascending_south'}}", "{Name:'minecraft:detector_rail',Properties:{powered:'true',shape:'ascending_south'}}");
|
|
+ register(464, "{Name:'minecraft:sticky_piston',Properties:{extended:'false',facing:'down'}}", "{Name:'minecraft:sticky_piston',Properties:{extended:'false',facing:'down'}}");
|
|
+ register(465, "{Name:'minecraft:sticky_piston',Properties:{extended:'false',facing:'up'}}", "{Name:'minecraft:sticky_piston',Properties:{extended:'false',facing:'up'}}");
|
|
+ register(466, "{Name:'minecraft:sticky_piston',Properties:{extended:'false',facing:'north'}}", "{Name:'minecraft:sticky_piston',Properties:{extended:'false',facing:'north'}}");
|
|
+ register(467, "{Name:'minecraft:sticky_piston',Properties:{extended:'false',facing:'south'}}", "{Name:'minecraft:sticky_piston',Properties:{extended:'false',facing:'south'}}");
|
|
+ register(468, "{Name:'minecraft:sticky_piston',Properties:{extended:'false',facing:'west'}}", "{Name:'minecraft:sticky_piston',Properties:{extended:'false',facing:'west'}}");
|
|
+ register(469, "{Name:'minecraft:sticky_piston',Properties:{extended:'false',facing:'east'}}", "{Name:'minecraft:sticky_piston',Properties:{extended:'false',facing:'east'}}");
|
|
+ register(472, "{Name:'minecraft:sticky_piston',Properties:{extended:'true',facing:'down'}}", "{Name:'minecraft:sticky_piston',Properties:{extended:'true',facing:'down'}}");
|
|
+ register(473, "{Name:'minecraft:sticky_piston',Properties:{extended:'true',facing:'up'}}", "{Name:'minecraft:sticky_piston',Properties:{extended:'true',facing:'up'}}");
|
|
+ register(474, "{Name:'minecraft:sticky_piston',Properties:{extended:'true',facing:'north'}}", "{Name:'minecraft:sticky_piston',Properties:{extended:'true',facing:'north'}}");
|
|
+ register(475, "{Name:'minecraft:sticky_piston',Properties:{extended:'true',facing:'south'}}", "{Name:'minecraft:sticky_piston',Properties:{extended:'true',facing:'south'}}");
|
|
+ register(476, "{Name:'minecraft:sticky_piston',Properties:{extended:'true',facing:'west'}}", "{Name:'minecraft:sticky_piston',Properties:{extended:'true',facing:'west'}}");
|
|
+ register(477, "{Name:'minecraft:sticky_piston',Properties:{extended:'true',facing:'east'}}", "{Name:'minecraft:sticky_piston',Properties:{extended:'true',facing:'east'}}");
|
|
+ register(480, "{Name:'minecraft:cobweb'}", "{Name:'minecraft:web'}");
|
|
+ register(496, "{Name:'minecraft:dead_bush'}", "{Name:'minecraft:tallgrass',Properties:{type:'dead_bush'}}");
|
|
+ register(497, "{Name:'minecraft:grass'}", "{Name:'minecraft:tallgrass',Properties:{type:'tall_grass'}}");
|
|
+ register(498, "{Name:'minecraft:fern'}", "{Name:'minecraft:tallgrass',Properties:{type:'fern'}}");
|
|
+ register(512, "{Name:'minecraft:dead_bush'}", "{Name:'minecraft:deadbush'}");
|
|
+ register(528, "{Name:'minecraft:piston',Properties:{extended:'false',facing:'down'}}", "{Name:'minecraft:piston',Properties:{extended:'false',facing:'down'}}");
|
|
+ register(529, "{Name:'minecraft:piston',Properties:{extended:'false',facing:'up'}}", "{Name:'minecraft:piston',Properties:{extended:'false',facing:'up'}}");
|
|
+ register(530, "{Name:'minecraft:piston',Properties:{extended:'false',facing:'north'}}", "{Name:'minecraft:piston',Properties:{extended:'false',facing:'north'}}");
|
|
+ register(531, "{Name:'minecraft:piston',Properties:{extended:'false',facing:'south'}}", "{Name:'minecraft:piston',Properties:{extended:'false',facing:'south'}}");
|
|
+ register(532, "{Name:'minecraft:piston',Properties:{extended:'false',facing:'west'}}", "{Name:'minecraft:piston',Properties:{extended:'false',facing:'west'}}");
|
|
+ register(533, "{Name:'minecraft:piston',Properties:{extended:'false',facing:'east'}}", "{Name:'minecraft:piston',Properties:{extended:'false',facing:'east'}}");
|
|
+ register(536, "{Name:'minecraft:piston',Properties:{extended:'true',facing:'down'}}", "{Name:'minecraft:piston',Properties:{extended:'true',facing:'down'}}");
|
|
+ register(537, "{Name:'minecraft:piston',Properties:{extended:'true',facing:'up'}}", "{Name:'minecraft:piston',Properties:{extended:'true',facing:'up'}}");
|
|
+ register(538, "{Name:'minecraft:piston',Properties:{extended:'true',facing:'north'}}", "{Name:'minecraft:piston',Properties:{extended:'true',facing:'north'}}");
|
|
+ register(539, "{Name:'minecraft:piston',Properties:{extended:'true',facing:'south'}}", "{Name:'minecraft:piston',Properties:{extended:'true',facing:'south'}}");
|
|
+ register(540, "{Name:'minecraft:piston',Properties:{extended:'true',facing:'west'}}", "{Name:'minecraft:piston',Properties:{extended:'true',facing:'west'}}");
|
|
+ register(541, "{Name:'minecraft:piston',Properties:{extended:'true',facing:'east'}}", "{Name:'minecraft:piston',Properties:{extended:'true',facing:'east'}}");
|
|
+ register(544, "{Name:'minecraft:piston_head',Properties:{facing:'down',short:'false',type:'normal'}}", "{Name:'minecraft:piston_head',Properties:{facing:'down',short:'false',type:'normal'}}", "{Name:'minecraft:piston_head',Properties:{facing:'down',short:'true',type:'normal'}}");
|
|
+ register(545, "{Name:'minecraft:piston_head',Properties:{facing:'up',short:'false',type:'normal'}}", "{Name:'minecraft:piston_head',Properties:{facing:'up',short:'false',type:'normal'}}", "{Name:'minecraft:piston_head',Properties:{facing:'up',short:'true',type:'normal'}}");
|
|
+ register(546, "{Name:'minecraft:piston_head',Properties:{facing:'north',short:'false',type:'normal'}}", "{Name:'minecraft:piston_head',Properties:{facing:'north',short:'false',type:'normal'}}", "{Name:'minecraft:piston_head',Properties:{facing:'north',short:'true',type:'normal'}}");
|
|
+ register(547, "{Name:'minecraft:piston_head',Properties:{facing:'south',short:'false',type:'normal'}}", "{Name:'minecraft:piston_head',Properties:{facing:'south',short:'false',type:'normal'}}", "{Name:'minecraft:piston_head',Properties:{facing:'south',short:'true',type:'normal'}}");
|
|
+ register(548, "{Name:'minecraft:piston_head',Properties:{facing:'west',short:'false',type:'normal'}}", "{Name:'minecraft:piston_head',Properties:{facing:'west',short:'false',type:'normal'}}", "{Name:'minecraft:piston_head',Properties:{facing:'west',short:'true',type:'normal'}}");
|
|
+ register(549, "{Name:'minecraft:piston_head',Properties:{facing:'east',short:'false',type:'normal'}}", "{Name:'minecraft:piston_head',Properties:{facing:'east',short:'false',type:'normal'}}", "{Name:'minecraft:piston_head',Properties:{facing:'east',short:'true',type:'normal'}}");
|
|
+ register(552, "{Name:'minecraft:piston_head',Properties:{facing:'down',short:'false',type:'sticky'}}", "{Name:'minecraft:piston_head',Properties:{facing:'down',short:'false',type:'sticky'}}", "{Name:'minecraft:piston_head',Properties:{facing:'down',short:'true',type:'sticky'}}");
|
|
+ register(553, "{Name:'minecraft:piston_head',Properties:{facing:'up',short:'false',type:'sticky'}}", "{Name:'minecraft:piston_head',Properties:{facing:'up',short:'false',type:'sticky'}}", "{Name:'minecraft:piston_head',Properties:{facing:'up',short:'true',type:'sticky'}}");
|
|
+ register(554, "{Name:'minecraft:piston_head',Properties:{facing:'north',short:'false',type:'sticky'}}", "{Name:'minecraft:piston_head',Properties:{facing:'north',short:'false',type:'sticky'}}", "{Name:'minecraft:piston_head',Properties:{facing:'north',short:'true',type:'sticky'}}");
|
|
+ register(555, "{Name:'minecraft:piston_head',Properties:{facing:'south',short:'false',type:'sticky'}}", "{Name:'minecraft:piston_head',Properties:{facing:'south',short:'false',type:'sticky'}}", "{Name:'minecraft:piston_head',Properties:{facing:'south',short:'true',type:'sticky'}}");
|
|
+ register(556, "{Name:'minecraft:piston_head',Properties:{facing:'west',short:'false',type:'sticky'}}", "{Name:'minecraft:piston_head',Properties:{facing:'west',short:'false',type:'sticky'}}", "{Name:'minecraft:piston_head',Properties:{facing:'west',short:'true',type:'sticky'}}");
|
|
+ register(557, "{Name:'minecraft:piston_head',Properties:{facing:'east',short:'false',type:'sticky'}}", "{Name:'minecraft:piston_head',Properties:{facing:'east',short:'false',type:'sticky'}}", "{Name:'minecraft:piston_head',Properties:{facing:'east',short:'true',type:'sticky'}}");
|
|
+ register(560, "{Name:'minecraft:white_wool'}", "{Name:'minecraft:wool',Properties:{color:'white'}}");
|
|
+ register(561, "{Name:'minecraft:orange_wool'}", "{Name:'minecraft:wool',Properties:{color:'orange'}}");
|
|
+ register(562, "{Name:'minecraft:magenta_wool'}", "{Name:'minecraft:wool',Properties:{color:'magenta'}}");
|
|
+ register(563, "{Name:'minecraft:light_blue_wool'}", "{Name:'minecraft:wool',Properties:{color:'light_blue'}}");
|
|
+ register(564, "{Name:'minecraft:yellow_wool'}", "{Name:'minecraft:wool',Properties:{color:'yellow'}}");
|
|
+ register(565, "{Name:'minecraft:lime_wool'}", "{Name:'minecraft:wool',Properties:{color:'lime'}}");
|
|
+ register(566, "{Name:'minecraft:pink_wool'}", "{Name:'minecraft:wool',Properties:{color:'pink'}}");
|
|
+ register(567, "{Name:'minecraft:gray_wool'}", "{Name:'minecraft:wool',Properties:{color:'gray'}}");
|
|
+ register(568, "{Name:'minecraft:light_gray_wool'}", "{Name:'minecraft:wool',Properties:{color:'silver'}}");
|
|
+ register(569, "{Name:'minecraft:cyan_wool'}", "{Name:'minecraft:wool',Properties:{color:'cyan'}}");
|
|
+ register(570, "{Name:'minecraft:purple_wool'}", "{Name:'minecraft:wool',Properties:{color:'purple'}}");
|
|
+ register(571, "{Name:'minecraft:blue_wool'}", "{Name:'minecraft:wool',Properties:{color:'blue'}}");
|
|
+ register(572, "{Name:'minecraft:brown_wool'}", "{Name:'minecraft:wool',Properties:{color:'brown'}}");
|
|
+ register(573, "{Name:'minecraft:green_wool'}", "{Name:'minecraft:wool',Properties:{color:'green'}}");
|
|
+ register(574, "{Name:'minecraft:red_wool'}", "{Name:'minecraft:wool',Properties:{color:'red'}}");
|
|
+ register(575, "{Name:'minecraft:black_wool'}", "{Name:'minecraft:wool',Properties:{color:'black'}}");
|
|
+ register(576, "{Name:'minecraft:moving_piston',Properties:{facing:'down',type:'normal'}}", "{Name:'minecraft:piston_extension',Properties:{facing:'down',type:'normal'}}");
|
|
+ register(577, "{Name:'minecraft:moving_piston',Properties:{facing:'up',type:'normal'}}", "{Name:'minecraft:piston_extension',Properties:{facing:'up',type:'normal'}}");
|
|
+ register(578, "{Name:'minecraft:moving_piston',Properties:{facing:'north',type:'normal'}}", "{Name:'minecraft:piston_extension',Properties:{facing:'north',type:'normal'}}");
|
|
+ register(579, "{Name:'minecraft:moving_piston',Properties:{facing:'south',type:'normal'}}", "{Name:'minecraft:piston_extension',Properties:{facing:'south',type:'normal'}}");
|
|
+ register(580, "{Name:'minecraft:moving_piston',Properties:{facing:'west',type:'normal'}}", "{Name:'minecraft:piston_extension',Properties:{facing:'west',type:'normal'}}");
|
|
+ register(581, "{Name:'minecraft:moving_piston',Properties:{facing:'east',type:'normal'}}", "{Name:'minecraft:piston_extension',Properties:{facing:'east',type:'normal'}}");
|
|
+ register(584, "{Name:'minecraft:moving_piston',Properties:{facing:'down',type:'sticky'}}", "{Name:'minecraft:piston_extension',Properties:{facing:'down',type:'sticky'}}");
|
|
+ register(585, "{Name:'minecraft:moving_piston',Properties:{facing:'up',type:'sticky'}}", "{Name:'minecraft:piston_extension',Properties:{facing:'up',type:'sticky'}}");
|
|
+ register(586, "{Name:'minecraft:moving_piston',Properties:{facing:'north',type:'sticky'}}", "{Name:'minecraft:piston_extension',Properties:{facing:'north',type:'sticky'}}");
|
|
+ register(587, "{Name:'minecraft:moving_piston',Properties:{facing:'south',type:'sticky'}}", "{Name:'minecraft:piston_extension',Properties:{facing:'south',type:'sticky'}}");
|
|
+ register(588, "{Name:'minecraft:moving_piston',Properties:{facing:'west',type:'sticky'}}", "{Name:'minecraft:piston_extension',Properties:{facing:'west',type:'sticky'}}");
|
|
+ register(589, "{Name:'minecraft:moving_piston',Properties:{facing:'east',type:'sticky'}}", "{Name:'minecraft:piston_extension',Properties:{facing:'east',type:'sticky'}}");
|
|
+ register(592, "{Name:'minecraft:dandelion'}", "{Name:'minecraft:yellow_flower',Properties:{type:'dandelion'}}");
|
|
+ register(608, "{Name:'minecraft:poppy'}", "{Name:'minecraft:red_flower',Properties:{type:'poppy'}}");
|
|
+ register(609, "{Name:'minecraft:blue_orchid'}", "{Name:'minecraft:red_flower',Properties:{type:'blue_orchid'}}");
|
|
+ register(610, "{Name:'minecraft:allium'}", "{Name:'minecraft:red_flower',Properties:{type:'allium'}}");
|
|
+ register(611, "{Name:'minecraft:azure_bluet'}", "{Name:'minecraft:red_flower',Properties:{type:'houstonia'}}");
|
|
+ register(612, "{Name:'minecraft:red_tulip'}", "{Name:'minecraft:red_flower',Properties:{type:'red_tulip'}}");
|
|
+ register(613, "{Name:'minecraft:orange_tulip'}", "{Name:'minecraft:red_flower',Properties:{type:'orange_tulip'}}");
|
|
+ register(614, "{Name:'minecraft:white_tulip'}", "{Name:'minecraft:red_flower',Properties:{type:'white_tulip'}}");
|
|
+ register(615, "{Name:'minecraft:pink_tulip'}", "{Name:'minecraft:red_flower',Properties:{type:'pink_tulip'}}");
|
|
+ register(616, "{Name:'minecraft:oxeye_daisy'}", "{Name:'minecraft:red_flower',Properties:{type:'oxeye_daisy'}}");
|
|
+ register(624, "{Name:'minecraft:brown_mushroom'}", "{Name:'minecraft:brown_mushroom'}");
|
|
+ register(640, "{Name:'minecraft:red_mushroom'}", "{Name:'minecraft:red_mushroom'}");
|
|
+ register(656, "{Name:'minecraft:gold_block'}", "{Name:'minecraft:gold_block'}");
|
|
+ register(672, "{Name:'minecraft:iron_block'}", "{Name:'minecraft:iron_block'}");
|
|
+ register(688, "{Name:'minecraft:stone_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'false',variant:'stone'}}");
|
|
+ register(689, "{Name:'minecraft:sandstone_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'false',variant:'sandstone'}}");
|
|
+ register(690, "{Name:'minecraft:petrified_oak_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'false',variant:'wood_old'}}");
|
|
+ register(691, "{Name:'minecraft:cobblestone_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'false',variant:'cobblestone'}}");
|
|
+ register(692, "{Name:'minecraft:brick_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'false',variant:'brick'}}");
|
|
+ register(693, "{Name:'minecraft:stone_brick_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'false',variant:'stone_brick'}}");
|
|
+ register(694, "{Name:'minecraft:nether_brick_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'false',variant:'nether_brick'}}");
|
|
+ register(695, "{Name:'minecraft:quartz_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'false',variant:'quartz'}}");
|
|
+ register(696, "{Name:'minecraft:smooth_stone'}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'true',variant:'stone'}}");
|
|
+ register(697, "{Name:'minecraft:smooth_sandstone'}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'true',variant:'sandstone'}}");
|
|
+ register(698, "{Name:'minecraft:petrified_oak_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'true',variant:'wood_old'}}");
|
|
+ register(699, "{Name:'minecraft:cobblestone_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'true',variant:'cobblestone'}}");
|
|
+ register(700, "{Name:'minecraft:brick_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'true',variant:'brick'}}");
|
|
+ register(701, "{Name:'minecraft:stone_brick_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'true',variant:'stone_brick'}}");
|
|
+ register(702, "{Name:'minecraft:nether_brick_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'true',variant:'nether_brick'}}");
|
|
+ register(703, "{Name:'minecraft:smooth_quartz'}", "{Name:'minecraft:double_stone_slab',Properties:{seamless:'true',variant:'quartz'}}");
|
|
+ register(704, "{Name:'minecraft:stone_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:stone_slab',Properties:{half:'bottom',variant:'stone'}}");
|
|
+ register(705, "{Name:'minecraft:sandstone_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:stone_slab',Properties:{half:'bottom',variant:'sandstone'}}");
|
|
+ register(706, "{Name:'minecraft:petrified_oak_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:stone_slab',Properties:{half:'bottom',variant:'wood_old'}}");
|
|
+ register(707, "{Name:'minecraft:cobblestone_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:stone_slab',Properties:{half:'bottom',variant:'cobblestone'}}");
|
|
+ register(708, "{Name:'minecraft:brick_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:stone_slab',Properties:{half:'bottom',variant:'brick'}}");
|
|
+ register(709, "{Name:'minecraft:stone_brick_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:stone_slab',Properties:{half:'bottom',variant:'stone_brick'}}");
|
|
+ register(710, "{Name:'minecraft:nether_brick_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:stone_slab',Properties:{half:'bottom',variant:'nether_brick'}}");
|
|
+ register(711, "{Name:'minecraft:quartz_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:stone_slab',Properties:{half:'bottom',variant:'quartz'}}");
|
|
+ register(712, "{Name:'minecraft:stone_slab',Properties:{type:'top'}}", "{Name:'minecraft:stone_slab',Properties:{half:'top',variant:'stone'}}");
|
|
+ register(713, "{Name:'minecraft:sandstone_slab',Properties:{type:'top'}}", "{Name:'minecraft:stone_slab',Properties:{half:'top',variant:'sandstone'}}");
|
|
+ register(714, "{Name:'minecraft:petrified_oak_slab',Properties:{type:'top'}}", "{Name:'minecraft:stone_slab',Properties:{half:'top',variant:'wood_old'}}");
|
|
+ register(715, "{Name:'minecraft:cobblestone_slab',Properties:{type:'top'}}", "{Name:'minecraft:stone_slab',Properties:{half:'top',variant:'cobblestone'}}");
|
|
+ register(716, "{Name:'minecraft:brick_slab',Properties:{type:'top'}}", "{Name:'minecraft:stone_slab',Properties:{half:'top',variant:'brick'}}");
|
|
+ register(717, "{Name:'minecraft:stone_brick_slab',Properties:{type:'top'}}", "{Name:'minecraft:stone_slab',Properties:{half:'top',variant:'stone_brick'}}");
|
|
+ register(718, "{Name:'minecraft:nether_brick_slab',Properties:{type:'top'}}", "{Name:'minecraft:stone_slab',Properties:{half:'top',variant:'nether_brick'}}");
|
|
+ register(719, "{Name:'minecraft:quartz_slab',Properties:{type:'top'}}", "{Name:'minecraft:stone_slab',Properties:{half:'top',variant:'quartz'}}");
|
|
+ register(720, "{Name:'minecraft:bricks'}", "{Name:'minecraft:brick_block'}");
|
|
+ register(736, "{Name:'minecraft:tnt',Properties:{unstable:'false'}}", "{Name:'minecraft:tnt',Properties:{explode:'false'}}");
|
|
+ register(737, "{Name:'minecraft:tnt',Properties:{unstable:'true'}}", "{Name:'minecraft:tnt',Properties:{explode:'true'}}");
|
|
+ register(752, "{Name:'minecraft:bookshelf'}", "{Name:'minecraft:bookshelf'}");
|
|
+ register(768, "{Name:'minecraft:mossy_cobblestone'}", "{Name:'minecraft:mossy_cobblestone'}");
|
|
+ register(784, "{Name:'minecraft:obsidian'}", "{Name:'minecraft:obsidian'}");
|
|
+ register(801, "{Name:'minecraft:wall_torch',Properties:{facing:'east'}}", "{Name:'minecraft:torch',Properties:{facing:'east'}}");
|
|
+ register(802, "{Name:'minecraft:wall_torch',Properties:{facing:'west'}}", "{Name:'minecraft:torch',Properties:{facing:'west'}}");
|
|
+ register(803, "{Name:'minecraft:wall_torch',Properties:{facing:'south'}}", "{Name:'minecraft:torch',Properties:{facing:'south'}}");
|
|
+ register(804, "{Name:'minecraft:wall_torch',Properties:{facing:'north'}}", "{Name:'minecraft:torch',Properties:{facing:'north'}}");
|
|
+ register(805, "{Name:'minecraft:torch'}", "{Name:'minecraft:torch',Properties:{facing:'up'}}");
|
|
+ register(816, "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'0',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(817, "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'1',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(818, "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'2',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(819, "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'3',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(820, "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'4',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(821, "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'5',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(822, "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'6',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(823, "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'7',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(824, "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'8',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(825, "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'9',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(826, "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'10',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(827, "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'11',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(828, "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'12',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(829, "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'13',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(830, "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'14',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(831, "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:fire',Properties:{age:'15',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(832, "{Name:'minecraft:mob_spawner'}", "{Name:'minecraft:mob_spawner'}");
|
|
+ register(848, "{Name:'minecraft:oak_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(849, "{Name:'minecraft:oak_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(850, "{Name:'minecraft:oak_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(851, "{Name:'minecraft:oak_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(852, "{Name:'minecraft:oak_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(853, "{Name:'minecraft:oak_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(854, "{Name:'minecraft:oak_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(855, "{Name:'minecraft:oak_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:oak_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(866, "{Name:'minecraft:chest',Properties:{facing:'north',type:'single'}}", "{Name:'minecraft:chest',Properties:{facing:'north'}}");
|
|
+ register(867, "{Name:'minecraft:chest',Properties:{facing:'south',type:'single'}}", "{Name:'minecraft:chest',Properties:{facing:'south'}}");
|
|
+ register(868, "{Name:'minecraft:chest',Properties:{facing:'west',type:'single'}}", "{Name:'minecraft:chest',Properties:{facing:'west'}}");
|
|
+ register(869, "{Name:'minecraft:chest',Properties:{facing:'east',type:'single'}}", "{Name:'minecraft:chest',Properties:{facing:'east'}}");
|
|
+ register(880, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'0',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'0',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'0',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'0',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'0',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'0',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'0',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'0',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'0',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'0',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'0',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'0',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'0',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'0',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'0',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'0',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'0',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'0',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'0',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'0',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'0',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'0',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'0',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'0',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'0',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'0',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'0',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'0',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'0',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'0',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'0',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'0',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'0',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'0',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'0',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'0',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'0',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'0',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'0',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'0',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'0',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'0',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'0',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'0',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'0',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'0',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'0',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'0',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'0',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'0',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'0',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'0',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'0',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'0',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'0',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'0',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'0',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'0',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'0',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'0',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'0',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'0',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'0',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'0',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'0',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'0',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'0',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'0',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'0',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'0',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'0',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'0',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'0',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'0',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'0',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'0',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'0',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'0',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'0',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'0',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'0',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'0',south:'up',west:'up'}}");
|
|
+ register(881, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'1',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'1',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'1',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'1',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'1',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'1',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'1',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'1',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'1',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'1',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'1',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'1',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'1',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'1',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'1',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'1',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'1',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'1',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'1',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'1',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'1',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'1',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'1',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'1',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'1',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'1',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'1',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'1',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'1',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'1',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'1',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'1',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'1',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'1',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'1',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'1',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'1',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'1',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'1',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'1',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'1',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'1',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'1',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'1',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'1',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'1',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'1',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'1',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'1',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'1',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'1',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'1',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'1',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'1',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'1',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'1',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'1',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'1',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'1',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'1',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'1',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'1',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'1',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'1',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'1',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'1',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'1',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'1',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'1',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'1',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'1',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'1',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'1',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'1',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'1',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'1',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'1',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'1',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'1',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'1',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'1',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'1',south:'up',west:'up'}}");
|
|
+ register(882, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'2',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'2',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'2',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'2',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'2',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'2',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'2',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'2',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'2',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'2',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'2',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'2',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'2',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'2',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'2',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'2',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'2',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'2',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'2',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'2',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'2',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'2',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'2',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'2',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'2',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'2',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'2',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'2',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'2',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'2',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'2',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'2',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'2',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'2',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'2',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'2',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'2',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'2',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'2',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'2',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'2',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'2',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'2',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'2',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'2',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'2',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'2',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'2',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'2',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'2',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'2',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'2',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'2',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'2',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'2',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'2',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'2',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'2',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'2',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'2',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'2',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'2',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'2',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'2',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'2',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'2',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'2',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'2',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'2',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'2',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'2',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'2',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'2',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'2',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'2',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'2',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'2',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'2',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'2',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'2',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'2',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'2',south:'up',west:'up'}}");
|
|
+ register(883, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'3',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'3',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'3',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'3',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'3',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'3',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'3',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'3',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'3',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'3',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'3',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'3',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'3',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'3',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'3',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'3',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'3',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'3',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'3',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'3',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'3',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'3',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'3',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'3',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'3',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'3',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'3',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'3',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'3',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'3',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'3',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'3',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'3',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'3',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'3',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'3',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'3',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'3',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'3',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'3',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'3',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'3',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'3',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'3',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'3',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'3',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'3',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'3',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'3',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'3',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'3',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'3',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'3',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'3',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'3',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'3',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'3',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'3',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'3',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'3',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'3',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'3',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'3',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'3',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'3',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'3',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'3',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'3',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'3',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'3',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'3',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'3',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'3',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'3',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'3',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'3',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'3',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'3',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'3',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'3',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'3',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'3',south:'up',west:'up'}}");
|
|
+ register(884, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'4',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'4',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'4',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'4',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'4',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'4',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'4',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'4',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'4',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'4',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'4',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'4',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'4',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'4',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'4',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'4',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'4',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'4',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'4',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'4',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'4',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'4',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'4',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'4',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'4',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'4',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'4',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'4',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'4',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'4',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'4',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'4',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'4',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'4',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'4',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'4',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'4',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'4',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'4',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'4',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'4',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'4',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'4',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'4',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'4',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'4',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'4',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'4',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'4',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'4',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'4',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'4',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'4',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'4',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'4',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'4',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'4',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'4',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'4',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'4',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'4',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'4',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'4',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'4',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'4',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'4',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'4',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'4',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'4',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'4',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'4',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'4',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'4',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'4',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'4',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'4',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'4',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'4',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'4',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'4',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'4',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'4',south:'up',west:'up'}}");
|
|
+ register(885, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'5',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'5',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'5',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'5',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'5',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'5',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'5',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'5',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'5',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'5',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'5',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'5',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'5',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'5',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'5',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'5',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'5',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'5',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'5',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'5',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'5',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'5',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'5',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'5',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'5',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'5',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'5',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'5',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'5',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'5',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'5',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'5',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'5',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'5',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'5',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'5',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'5',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'5',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'5',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'5',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'5',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'5',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'5',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'5',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'5',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'5',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'5',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'5',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'5',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'5',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'5',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'5',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'5',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'5',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'5',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'5',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'5',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'5',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'5',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'5',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'5',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'5',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'5',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'5',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'5',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'5',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'5',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'5',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'5',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'5',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'5',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'5',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'5',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'5',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'5',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'5',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'5',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'5',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'5',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'5',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'5',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'5',south:'up',west:'up'}}");
|
|
+ register(886, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'6',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'6',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'6',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'6',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'6',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'6',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'6',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'6',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'6',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'6',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'6',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'6',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'6',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'6',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'6',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'6',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'6',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'6',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'6',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'6',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'6',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'6',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'6',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'6',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'6',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'6',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'6',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'6',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'6',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'6',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'6',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'6',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'6',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'6',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'6',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'6',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'6',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'6',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'6',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'6',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'6',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'6',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'6',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'6',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'6',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'6',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'6',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'6',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'6',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'6',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'6',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'6',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'6',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'6',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'6',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'6',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'6',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'6',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'6',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'6',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'6',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'6',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'6',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'6',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'6',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'6',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'6',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'6',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'6',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'6',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'6',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'6',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'6',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'6',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'6',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'6',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'6',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'6',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'6',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'6',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'6',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'6',south:'up',west:'up'}}");
|
|
+ register(887, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'7',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'7',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'7',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'7',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'7',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'7',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'7',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'7',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'7',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'7',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'7',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'7',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'7',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'7',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'7',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'7',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'7',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'7',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'7',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'7',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'7',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'7',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'7',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'7',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'7',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'7',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'7',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'7',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'7',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'7',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'7',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'7',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'7',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'7',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'7',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'7',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'7',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'7',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'7',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'7',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'7',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'7',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'7',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'7',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'7',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'7',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'7',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'7',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'7',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'7',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'7',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'7',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'7',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'7',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'7',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'7',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'7',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'7',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'7',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'7',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'7',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'7',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'7',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'7',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'7',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'7',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'7',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'7',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'7',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'7',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'7',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'7',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'7',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'7',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'7',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'7',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'7',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'7',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'7',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'7',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'7',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'7',south:'up',west:'up'}}");
|
|
+ register(888, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'8',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'8',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'8',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'8',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'8',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'8',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'8',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'8',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'8',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'8',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'8',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'8',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'8',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'8',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'8',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'8',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'8',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'8',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'8',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'8',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'8',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'8',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'8',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'8',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'8',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'8',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'8',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'8',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'8',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'8',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'8',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'8',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'8',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'8',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'8',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'8',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'8',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'8',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'8',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'8',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'8',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'8',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'8',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'8',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'8',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'8',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'8',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'8',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'8',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'8',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'8',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'8',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'8',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'8',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'8',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'8',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'8',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'8',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'8',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'8',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'8',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'8',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'8',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'8',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'8',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'8',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'8',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'8',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'8',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'8',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'8',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'8',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'8',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'8',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'8',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'8',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'8',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'8',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'8',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'8',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'8',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'8',south:'up',west:'up'}}");
|
|
+ register(889, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'9',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'9',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'9',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'9',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'9',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'9',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'9',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'9',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'9',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'9',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'9',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'9',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'9',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'9',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'9',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'9',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'9',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'9',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'9',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'9',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'9',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'9',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'9',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'9',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'9',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'9',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'9',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'9',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'9',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'9',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'9',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'9',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'9',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'9',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'9',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'9',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'9',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'9',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'9',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'9',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'9',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'9',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'9',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'9',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'9',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'9',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'9',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'9',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'9',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'9',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'9',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'9',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'9',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'9',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'9',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'9',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'9',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'9',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'9',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'9',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'9',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'9',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'9',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'9',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'9',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'9',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'9',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'9',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'9',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'9',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'9',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'9',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'9',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'9',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'9',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'9',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'9',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'9',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'9',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'9',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'9',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'9',south:'up',west:'up'}}");
|
|
+ register(890, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'10',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'10',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'10',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'10',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'10',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'10',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'10',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'10',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'10',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'10',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'10',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'10',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'10',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'10',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'10',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'10',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'10',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'10',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'10',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'10',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'10',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'10',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'10',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'10',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'10',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'10',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'10',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'10',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'10',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'10',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'10',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'10',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'10',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'10',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'10',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'10',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'10',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'10',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'10',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'10',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'10',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'10',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'10',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'10',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'10',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'10',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'10',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'10',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'10',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'10',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'10',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'10',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'10',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'10',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'10',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'10',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'10',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'10',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'10',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'10',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'10',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'10',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'10',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'10',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'10',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'10',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'10',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'10',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'10',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'10',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'10',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'10',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'10',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'10',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'10',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'10',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'10',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'10',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'10',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'10',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'10',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'10',south:'up',west:'up'}}");
|
|
+ register(891, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'11',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'11',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'11',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'11',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'11',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'11',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'11',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'11',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'11',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'11',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'11',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'11',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'11',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'11',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'11',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'11',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'11',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'11',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'11',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'11',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'11',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'11',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'11',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'11',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'11',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'11',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'11',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'11',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'11',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'11',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'11',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'11',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'11',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'11',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'11',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'11',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'11',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'11',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'11',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'11',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'11',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'11',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'11',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'11',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'11',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'11',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'11',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'11',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'11',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'11',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'11',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'11',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'11',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'11',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'11',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'11',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'11',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'11',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'11',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'11',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'11',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'11',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'11',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'11',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'11',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'11',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'11',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'11',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'11',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'11',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'11',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'11',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'11',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'11',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'11',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'11',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'11',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'11',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'11',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'11',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'11',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'11',south:'up',west:'up'}}");
|
|
+ register(892, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'12',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'12',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'12',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'12',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'12',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'12',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'12',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'12',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'12',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'12',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'12',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'12',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'12',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'12',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'12',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'12',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'12',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'12',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'12',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'12',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'12',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'12',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'12',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'12',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'12',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'12',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'12',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'12',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'12',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'12',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'12',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'12',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'12',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'12',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'12',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'12',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'12',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'12',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'12',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'12',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'12',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'12',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'12',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'12',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'12',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'12',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'12',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'12',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'12',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'12',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'12',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'12',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'12',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'12',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'12',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'12',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'12',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'12',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'12',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'12',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'12',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'12',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'12',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'12',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'12',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'12',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'12',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'12',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'12',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'12',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'12',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'12',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'12',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'12',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'12',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'12',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'12',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'12',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'12',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'12',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'12',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'12',south:'up',west:'up'}}");
|
|
+ register(893, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'13',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'13',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'13',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'13',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'13',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'13',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'13',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'13',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'13',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'13',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'13',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'13',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'13',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'13',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'13',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'13',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'13',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'13',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'13',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'13',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'13',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'13',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'13',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'13',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'13',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'13',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'13',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'13',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'13',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'13',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'13',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'13',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'13',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'13',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'13',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'13',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'13',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'13',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'13',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'13',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'13',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'13',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'13',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'13',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'13',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'13',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'13',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'13',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'13',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'13',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'13',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'13',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'13',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'13',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'13',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'13',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'13',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'13',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'13',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'13',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'13',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'13',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'13',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'13',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'13',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'13',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'13',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'13',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'13',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'13',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'13',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'13',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'13',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'13',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'13',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'13',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'13',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'13',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'13',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'13',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'13',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'13',south:'up',west:'up'}}");
|
|
+ register(894, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'14',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'14',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'14',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'14',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'14',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'14',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'14',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'14',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'14',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'14',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'14',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'14',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'14',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'14',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'14',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'14',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'14',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'14',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'14',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'14',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'14',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'14',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'14',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'14',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'14',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'14',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'14',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'14',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'14',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'14',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'14',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'14',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'14',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'14',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'14',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'14',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'14',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'14',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'14',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'14',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'14',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'14',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'14',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'14',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'14',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'14',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'14',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'14',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'14',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'14',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'14',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'14',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'14',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'14',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'14',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'14',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'14',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'14',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'14',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'14',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'14',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'14',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'14',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'14',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'14',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'14',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'14',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'14',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'14',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'14',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'14',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'14',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'14',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'14',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'14',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'14',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'14',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'14',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'14',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'14',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'14',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'14',south:'up',west:'up'}}");
|
|
+ register(895, "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'15',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'15',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'15',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'15',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'15',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'15',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'15',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'15',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'15',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'none',power:'15',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'15',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'15',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'15',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'15',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'15',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'15',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'15',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'15',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'side',power:'15',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'15',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'15',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'15',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'15',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'15',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'15',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'15',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'15',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'none',north:'up',power:'15',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'15',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'15',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'15',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'15',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'15',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'15',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'15',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'15',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'none',power:'15',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'15',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'15',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'15',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'15',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'15',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'15',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'15',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'15',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'side',power:'15',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'15',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'15',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'15',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'15',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'15',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'15',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'15',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'15',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'side',north:'up',power:'15',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'15',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'15',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'15',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'15',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'15',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'15',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'15',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'15',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'none',power:'15',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'15',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'15',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'15',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'15',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'15',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'15',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'15',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'15',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'side',power:'15',south:'up',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'15',south:'none',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'15',south:'none',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'15',south:'none',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'15',south:'side',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'15',south:'side',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'15',south:'side',west:'up'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'15',south:'up',west:'none'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'15',south:'up',west:'side'}}", "{Name:'minecraft:redstone_wire',Properties:{east:'up',north:'up',power:'15',south:'up',west:'up'}}");
|
|
+ register(896, "{Name:'minecraft:diamond_ore'}", "{Name:'minecraft:diamond_ore'}");
|
|
+ register(912, "{Name:'minecraft:diamond_block'}", "{Name:'minecraft:diamond_block'}");
|
|
+ register(928, "{Name:'minecraft:crafting_table'}", "{Name:'minecraft:crafting_table'}");
|
|
+ register(944, "{Name:'minecraft:wheat',Properties:{age:'0'}}", "{Name:'minecraft:wheat',Properties:{age:'0'}}");
|
|
+ register(945, "{Name:'minecraft:wheat',Properties:{age:'1'}}", "{Name:'minecraft:wheat',Properties:{age:'1'}}");
|
|
+ register(946, "{Name:'minecraft:wheat',Properties:{age:'2'}}", "{Name:'minecraft:wheat',Properties:{age:'2'}}");
|
|
+ register(947, "{Name:'minecraft:wheat',Properties:{age:'3'}}", "{Name:'minecraft:wheat',Properties:{age:'3'}}");
|
|
+ register(948, "{Name:'minecraft:wheat',Properties:{age:'4'}}", "{Name:'minecraft:wheat',Properties:{age:'4'}}");
|
|
+ register(949, "{Name:'minecraft:wheat',Properties:{age:'5'}}", "{Name:'minecraft:wheat',Properties:{age:'5'}}");
|
|
+ register(950, "{Name:'minecraft:wheat',Properties:{age:'6'}}", "{Name:'minecraft:wheat',Properties:{age:'6'}}");
|
|
+ register(951, "{Name:'minecraft:wheat',Properties:{age:'7'}}", "{Name:'minecraft:wheat',Properties:{age:'7'}}");
|
|
+ register(960, "{Name:'minecraft:farmland',Properties:{moisture:'0'}}", "{Name:'minecraft:farmland',Properties:{moisture:'0'}}");
|
|
+ register(961, "{Name:'minecraft:farmland',Properties:{moisture:'1'}}", "{Name:'minecraft:farmland',Properties:{moisture:'1'}}");
|
|
+ register(962, "{Name:'minecraft:farmland',Properties:{moisture:'2'}}", "{Name:'minecraft:farmland',Properties:{moisture:'2'}}");
|
|
+ register(963, "{Name:'minecraft:farmland',Properties:{moisture:'3'}}", "{Name:'minecraft:farmland',Properties:{moisture:'3'}}");
|
|
+ register(964, "{Name:'minecraft:farmland',Properties:{moisture:'4'}}", "{Name:'minecraft:farmland',Properties:{moisture:'4'}}");
|
|
+ register(965, "{Name:'minecraft:farmland',Properties:{moisture:'5'}}", "{Name:'minecraft:farmland',Properties:{moisture:'5'}}");
|
|
+ register(966, "{Name:'minecraft:farmland',Properties:{moisture:'6'}}", "{Name:'minecraft:farmland',Properties:{moisture:'6'}}");
|
|
+ register(967, "{Name:'minecraft:farmland',Properties:{moisture:'7'}}", "{Name:'minecraft:farmland',Properties:{moisture:'7'}}");
|
|
+ register(978, "{Name:'minecraft:furnace',Properties:{facing:'north',lit:'false'}}", "{Name:'minecraft:furnace',Properties:{facing:'north'}}");
|
|
+ register(979, "{Name:'minecraft:furnace',Properties:{facing:'south',lit:'false'}}", "{Name:'minecraft:furnace',Properties:{facing:'south'}}");
|
|
+ register(980, "{Name:'minecraft:furnace',Properties:{facing:'west',lit:'false'}}", "{Name:'minecraft:furnace',Properties:{facing:'west'}}");
|
|
+ register(981, "{Name:'minecraft:furnace',Properties:{facing:'east',lit:'false'}}", "{Name:'minecraft:furnace',Properties:{facing:'east'}}");
|
|
+ register(994, "{Name:'minecraft:furnace',Properties:{facing:'north',lit:'true'}}", "{Name:'minecraft:lit_furnace',Properties:{facing:'north'}}");
|
|
+ register(995, "{Name:'minecraft:furnace',Properties:{facing:'south',lit:'true'}}", "{Name:'minecraft:lit_furnace',Properties:{facing:'south'}}");
|
|
+ register(996, "{Name:'minecraft:furnace',Properties:{facing:'west',lit:'true'}}", "{Name:'minecraft:lit_furnace',Properties:{facing:'west'}}");
|
|
+ register(997, "{Name:'minecraft:furnace',Properties:{facing:'east',lit:'true'}}", "{Name:'minecraft:lit_furnace',Properties:{facing:'east'}}");
|
|
+ register(1008, "{Name:'minecraft:sign',Properties:{rotation:'0'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'0'}}");
|
|
+ register(1009, "{Name:'minecraft:sign',Properties:{rotation:'1'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'1'}}");
|
|
+ register(1010, "{Name:'minecraft:sign',Properties:{rotation:'2'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'2'}}");
|
|
+ register(1011, "{Name:'minecraft:sign',Properties:{rotation:'3'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'3'}}");
|
|
+ register(1012, "{Name:'minecraft:sign',Properties:{rotation:'4'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'4'}}");
|
|
+ register(1013, "{Name:'minecraft:sign',Properties:{rotation:'5'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'5'}}");
|
|
+ register(1014, "{Name:'minecraft:sign',Properties:{rotation:'6'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'6'}}");
|
|
+ register(1015, "{Name:'minecraft:sign',Properties:{rotation:'7'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'7'}}");
|
|
+ register(1016, "{Name:'minecraft:sign',Properties:{rotation:'8'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'8'}}");
|
|
+ register(1017, "{Name:'minecraft:sign',Properties:{rotation:'9'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'9'}}");
|
|
+ register(1018, "{Name:'minecraft:sign',Properties:{rotation:'10'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'10'}}");
|
|
+ register(1019, "{Name:'minecraft:sign',Properties:{rotation:'11'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'11'}}");
|
|
+ register(1020, "{Name:'minecraft:sign',Properties:{rotation:'12'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'12'}}");
|
|
+ register(1021, "{Name:'minecraft:sign',Properties:{rotation:'13'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'13'}}");
|
|
+ register(1022, "{Name:'minecraft:sign',Properties:{rotation:'14'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'14'}}");
|
|
+ register(1023, "{Name:'minecraft:sign',Properties:{rotation:'15'}}", "{Name:'minecraft:standing_sign',Properties:{rotation:'15'}}");
|
|
+ register(1024, "{Name:'minecraft:oak_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(1025, "{Name:'minecraft:oak_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(1026, "{Name:'minecraft:oak_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(1027, "{Name:'minecraft:oak_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(1028, "{Name:'minecraft:oak_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(1029, "{Name:'minecraft:oak_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(1030, "{Name:'minecraft:oak_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(1031, "{Name:'minecraft:oak_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(1032, "{Name:'minecraft:oak_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(1033, "{Name:'minecraft:oak_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'false'}}");
|
|
+ register(1034, "{Name:'minecraft:oak_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'true'}}");
|
|
+ register(1035, "{Name:'minecraft:oak_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:wooden_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(1036, "{Name:'minecraft:oak_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(1037, "{Name:'minecraft:oak_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(1038, "{Name:'minecraft:oak_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(1039, "{Name:'minecraft:oak_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(1042, "{Name:'minecraft:ladder',Properties:{facing:'north'}}", "{Name:'minecraft:ladder',Properties:{facing:'north'}}");
|
|
+ register(1043, "{Name:'minecraft:ladder',Properties:{facing:'south'}}", "{Name:'minecraft:ladder',Properties:{facing:'south'}}");
|
|
+ register(1044, "{Name:'minecraft:ladder',Properties:{facing:'west'}}", "{Name:'minecraft:ladder',Properties:{facing:'west'}}");
|
|
+ register(1045, "{Name:'minecraft:ladder',Properties:{facing:'east'}}", "{Name:'minecraft:ladder',Properties:{facing:'east'}}");
|
|
+ register(1056, "{Name:'minecraft:rail',Properties:{shape:'north_south'}}", "{Name:'minecraft:rail',Properties:{shape:'north_south'}}");
|
|
+ register(1057, "{Name:'minecraft:rail',Properties:{shape:'east_west'}}", "{Name:'minecraft:rail',Properties:{shape:'east_west'}}");
|
|
+ register(1058, "{Name:'minecraft:rail',Properties:{shape:'ascending_east'}}", "{Name:'minecraft:rail',Properties:{shape:'ascending_east'}}");
|
|
+ register(1059, "{Name:'minecraft:rail',Properties:{shape:'ascending_west'}}", "{Name:'minecraft:rail',Properties:{shape:'ascending_west'}}");
|
|
+ register(1060, "{Name:'minecraft:rail',Properties:{shape:'ascending_north'}}", "{Name:'minecraft:rail',Properties:{shape:'ascending_north'}}");
|
|
+ register(1061, "{Name:'minecraft:rail',Properties:{shape:'ascending_south'}}", "{Name:'minecraft:rail',Properties:{shape:'ascending_south'}}");
|
|
+ register(1062, "{Name:'minecraft:rail',Properties:{shape:'south_east'}}", "{Name:'minecraft:rail',Properties:{shape:'south_east'}}");
|
|
+ register(1063, "{Name:'minecraft:rail',Properties:{shape:'south_west'}}", "{Name:'minecraft:rail',Properties:{shape:'south_west'}}");
|
|
+ register(1064, "{Name:'minecraft:rail',Properties:{shape:'north_west'}}", "{Name:'minecraft:rail',Properties:{shape:'north_west'}}");
|
|
+ register(1065, "{Name:'minecraft:rail',Properties:{shape:'north_east'}}", "{Name:'minecraft:rail',Properties:{shape:'north_east'}}");
|
|
+ register(1072, "{Name:'minecraft:cobblestone_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(1073, "{Name:'minecraft:cobblestone_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(1074, "{Name:'minecraft:cobblestone_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(1075, "{Name:'minecraft:cobblestone_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(1076, "{Name:'minecraft:cobblestone_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(1077, "{Name:'minecraft:cobblestone_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(1078, "{Name:'minecraft:cobblestone_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(1079, "{Name:'minecraft:cobblestone_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:stone_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(1090, "{Name:'minecraft:wall_sign',Properties:{facing:'north'}}", "{Name:'minecraft:wall_sign',Properties:{facing:'north'}}");
|
|
+ register(1091, "{Name:'minecraft:wall_sign',Properties:{facing:'south'}}", "{Name:'minecraft:wall_sign',Properties:{facing:'south'}}");
|
|
+ register(1092, "{Name:'minecraft:wall_sign',Properties:{facing:'west'}}", "{Name:'minecraft:wall_sign',Properties:{facing:'west'}}");
|
|
+ register(1093, "{Name:'minecraft:wall_sign',Properties:{facing:'east'}}", "{Name:'minecraft:wall_sign',Properties:{facing:'east'}}");
|
|
+ register(1104, "{Name:'minecraft:lever',Properties:{face:'ceiling',facing:'west',powered:'false'}}", "{Name:'minecraft:lever',Properties:{facing:'down_x',powered:'false'}}");
|
|
+ register(1105, "{Name:'minecraft:lever',Properties:{face:'wall',facing:'east',powered:'false'}}", "{Name:'minecraft:lever',Properties:{facing:'east',powered:'false'}}");
|
|
+ register(1106, "{Name:'minecraft:lever',Properties:{face:'wall',facing:'west',powered:'false'}}", "{Name:'minecraft:lever',Properties:{facing:'west',powered:'false'}}");
|
|
+ register(1107, "{Name:'minecraft:lever',Properties:{face:'wall',facing:'south',powered:'false'}}", "{Name:'minecraft:lever',Properties:{facing:'south',powered:'false'}}");
|
|
+ register(1108, "{Name:'minecraft:lever',Properties:{face:'wall',facing:'north',powered:'false'}}", "{Name:'minecraft:lever',Properties:{facing:'north',powered:'false'}}");
|
|
+ register(1109, "{Name:'minecraft:lever',Properties:{face:'floor',facing:'north',powered:'false'}}", "{Name:'minecraft:lever',Properties:{facing:'up_z',powered:'false'}}");
|
|
+ register(1110, "{Name:'minecraft:lever',Properties:{face:'floor',facing:'west',powered:'false'}}", "{Name:'minecraft:lever',Properties:{facing:'up_x',powered:'false'}}");
|
|
+ register(1111, "{Name:'minecraft:lever',Properties:{face:'ceiling',facing:'north',powered:'false'}}", "{Name:'minecraft:lever',Properties:{facing:'down_z',powered:'false'}}");
|
|
+ register(1112, "{Name:'minecraft:lever',Properties:{face:'ceiling',facing:'west',powered:'true'}}", "{Name:'minecraft:lever',Properties:{facing:'down_x',powered:'true'}}");
|
|
+ register(1113, "{Name:'minecraft:lever',Properties:{face:'wall',facing:'east',powered:'true'}}", "{Name:'minecraft:lever',Properties:{facing:'east',powered:'true'}}");
|
|
+ register(1114, "{Name:'minecraft:lever',Properties:{face:'wall',facing:'west',powered:'true'}}", "{Name:'minecraft:lever',Properties:{facing:'west',powered:'true'}}");
|
|
+ register(1115, "{Name:'minecraft:lever',Properties:{face:'wall',facing:'south',powered:'true'}}", "{Name:'minecraft:lever',Properties:{facing:'south',powered:'true'}}");
|
|
+ register(1116, "{Name:'minecraft:lever',Properties:{face:'wall',facing:'north',powered:'true'}}", "{Name:'minecraft:lever',Properties:{facing:'north',powered:'true'}}");
|
|
+ register(1117, "{Name:'minecraft:lever',Properties:{face:'floor',facing:'north',powered:'true'}}", "{Name:'minecraft:lever',Properties:{facing:'up_z',powered:'true'}}");
|
|
+ register(1118, "{Name:'minecraft:lever',Properties:{face:'floor',facing:'west',powered:'true'}}", "{Name:'minecraft:lever',Properties:{facing:'up_x',powered:'true'}}");
|
|
+ register(1119, "{Name:'minecraft:lever',Properties:{face:'ceiling',facing:'north',powered:'true'}}", "{Name:'minecraft:lever',Properties:{facing:'down_z',powered:'true'}}");
|
|
+ register(1120, "{Name:'minecraft:stone_pressure_plate',Properties:{powered:'false'}}", "{Name:'minecraft:stone_pressure_plate',Properties:{powered:'false'}}");
|
|
+ register(1121, "{Name:'minecraft:stone_pressure_plate',Properties:{powered:'true'}}", "{Name:'minecraft:stone_pressure_plate',Properties:{powered:'true'}}");
|
|
+ register(1136, "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(1137, "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(1138, "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(1139, "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(1140, "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(1141, "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(1142, "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(1143, "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(1144, "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(1145, "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'false'}}");
|
|
+ register(1146, "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'true'}}");
|
|
+ register(1147, "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(1148, "{Name:'minecraft:iron_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(1149, "{Name:'minecraft:iron_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(1150, "{Name:'minecraft:iron_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(1151, "{Name:'minecraft:iron_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(1152, "{Name:'minecraft:oak_pressure_plate',Properties:{powered:'false'}}", "{Name:'minecraft:wooden_pressure_plate',Properties:{powered:'false'}}");
|
|
+ register(1153, "{Name:'minecraft:oak_pressure_plate',Properties:{powered:'true'}}", "{Name:'minecraft:wooden_pressure_plate',Properties:{powered:'true'}}");
|
|
+ register(1168, "{Name:'minecraft:redstone_ore',Properties:{lit:'false'}}", "{Name:'minecraft:redstone_ore'}");
|
|
+ register(1184, "{Name:'minecraft:redstone_ore',Properties:{lit:'true'}}", "{Name:'minecraft:lit_redstone_ore'}");
|
|
+ register(1201, "{Name:'minecraft:redstone_wall_torch',Properties:{facing:'east',lit:'false'}}", "{Name:'minecraft:unlit_redstone_torch',Properties:{facing:'east'}}");
|
|
+ register(1202, "{Name:'minecraft:redstone_wall_torch',Properties:{facing:'west',lit:'false'}}", "{Name:'minecraft:unlit_redstone_torch',Properties:{facing:'west'}}");
|
|
+ register(1203, "{Name:'minecraft:redstone_wall_torch',Properties:{facing:'south',lit:'false'}}", "{Name:'minecraft:unlit_redstone_torch',Properties:{facing:'south'}}");
|
|
+ register(1204, "{Name:'minecraft:redstone_wall_torch',Properties:{facing:'north',lit:'false'}}", "{Name:'minecraft:unlit_redstone_torch',Properties:{facing:'north'}}");
|
|
+ register(1205, "{Name:'minecraft:redstone_torch',Properties:{lit:'false'}}", "{Name:'minecraft:unlit_redstone_torch',Properties:{facing:'up'}}");
|
|
+ register(1217, "{Name:'minecraft:redstone_wall_torch',Properties:{facing:'east',lit:'true'}}", "{Name:'minecraft:redstone_torch',Properties:{facing:'east'}}");
|
|
+ register(1218, "{Name:'minecraft:redstone_wall_torch',Properties:{facing:'west',lit:'true'}}", "{Name:'minecraft:redstone_torch',Properties:{facing:'west'}}");
|
|
+ register(1219, "{Name:'minecraft:redstone_wall_torch',Properties:{facing:'south',lit:'true'}}", "{Name:'minecraft:redstone_torch',Properties:{facing:'south'}}");
|
|
+ register(1220, "{Name:'minecraft:redstone_wall_torch',Properties:{facing:'north',lit:'true'}}", "{Name:'minecraft:redstone_torch',Properties:{facing:'north'}}");
|
|
+ register(1221, "{Name:'minecraft:redstone_torch',Properties:{lit:'true'}}", "{Name:'minecraft:redstone_torch',Properties:{facing:'up'}}");
|
|
+ register(1232, "{Name:'minecraft:stone_button',Properties:{face:'ceiling',facing:'north',powered:'false'}}", "{Name:'minecraft:stone_button',Properties:{facing:'down',powered:'false'}}");
|
|
+ register(1233, "{Name:'minecraft:stone_button',Properties:{face:'wall',facing:'east',powered:'false'}}", "{Name:'minecraft:stone_button',Properties:{facing:'east',powered:'false'}}");
|
|
+ register(1234, "{Name:'minecraft:stone_button',Properties:{face:'wall',facing:'west',powered:'false'}}", "{Name:'minecraft:stone_button',Properties:{facing:'west',powered:'false'}}");
|
|
+ register(1235, "{Name:'minecraft:stone_button',Properties:{face:'wall',facing:'south',powered:'false'}}", "{Name:'minecraft:stone_button',Properties:{facing:'south',powered:'false'}}");
|
|
+ register(1236, "{Name:'minecraft:stone_button',Properties:{face:'wall',facing:'north',powered:'false'}}", "{Name:'minecraft:stone_button',Properties:{facing:'north',powered:'false'}}");
|
|
+ register(1237, "{Name:'minecraft:stone_button',Properties:{face:'floor',facing:'north',powered:'false'}}", "{Name:'minecraft:stone_button',Properties:{facing:'up',powered:'false'}}");
|
|
+ register(1240, "{Name:'minecraft:stone_button',Properties:{face:'ceiling',facing:'north',powered:'true'}}", "{Name:'minecraft:stone_button',Properties:{facing:'down',powered:'true'}}");
|
|
+ register(1241, "{Name:'minecraft:stone_button',Properties:{face:'wall',facing:'east',powered:'true'}}", "{Name:'minecraft:stone_button',Properties:{facing:'east',powered:'true'}}");
|
|
+ register(1242, "{Name:'minecraft:stone_button',Properties:{face:'wall',facing:'west',powered:'true'}}", "{Name:'minecraft:stone_button',Properties:{facing:'west',powered:'true'}}");
|
|
+ register(1243, "{Name:'minecraft:stone_button',Properties:{face:'wall',facing:'south',powered:'true'}}", "{Name:'minecraft:stone_button',Properties:{facing:'south',powered:'true'}}");
|
|
+ register(1244, "{Name:'minecraft:stone_button',Properties:{face:'wall',facing:'north',powered:'true'}}", "{Name:'minecraft:stone_button',Properties:{facing:'north',powered:'true'}}");
|
|
+ register(1245, "{Name:'minecraft:stone_button',Properties:{face:'floor',facing:'north',powered:'true'}}", "{Name:'minecraft:stone_button',Properties:{facing:'up',powered:'true'}}");
|
|
+ register(1248, "{Name:'minecraft:snow',Properties:{layers:'1'}}", "{Name:'minecraft:snow_layer',Properties:{layers:'1'}}");
|
|
+ register(1249, "{Name:'minecraft:snow',Properties:{layers:'2'}}", "{Name:'minecraft:snow_layer',Properties:{layers:'2'}}");
|
|
+ register(1250, "{Name:'minecraft:snow',Properties:{layers:'3'}}", "{Name:'minecraft:snow_layer',Properties:{layers:'3'}}");
|
|
+ register(1251, "{Name:'minecraft:snow',Properties:{layers:'4'}}", "{Name:'minecraft:snow_layer',Properties:{layers:'4'}}");
|
|
+ register(1252, "{Name:'minecraft:snow',Properties:{layers:'5'}}", "{Name:'minecraft:snow_layer',Properties:{layers:'5'}}");
|
|
+ register(1253, "{Name:'minecraft:snow',Properties:{layers:'6'}}", "{Name:'minecraft:snow_layer',Properties:{layers:'6'}}");
|
|
+ register(1254, "{Name:'minecraft:snow',Properties:{layers:'7'}}", "{Name:'minecraft:snow_layer',Properties:{layers:'7'}}");
|
|
+ register(1255, "{Name:'minecraft:snow',Properties:{layers:'8'}}", "{Name:'minecraft:snow_layer',Properties:{layers:'8'}}");
|
|
+ register(1264, "{Name:'minecraft:ice'}", "{Name:'minecraft:ice'}");
|
|
+ register(1280, "{Name:'minecraft:snow_block'}", "{Name:'minecraft:snow'}");
|
|
+ register(1296, "{Name:'minecraft:cactus',Properties:{age:'0'}}", "{Name:'minecraft:cactus',Properties:{age:'0'}}");
|
|
+ register(1297, "{Name:'minecraft:cactus',Properties:{age:'1'}}", "{Name:'minecraft:cactus',Properties:{age:'1'}}");
|
|
+ register(1298, "{Name:'minecraft:cactus',Properties:{age:'2'}}", "{Name:'minecraft:cactus',Properties:{age:'2'}}");
|
|
+ register(1299, "{Name:'minecraft:cactus',Properties:{age:'3'}}", "{Name:'minecraft:cactus',Properties:{age:'3'}}");
|
|
+ register(1300, "{Name:'minecraft:cactus',Properties:{age:'4'}}", "{Name:'minecraft:cactus',Properties:{age:'4'}}");
|
|
+ register(1301, "{Name:'minecraft:cactus',Properties:{age:'5'}}", "{Name:'minecraft:cactus',Properties:{age:'5'}}");
|
|
+ register(1302, "{Name:'minecraft:cactus',Properties:{age:'6'}}", "{Name:'minecraft:cactus',Properties:{age:'6'}}");
|
|
+ register(1303, "{Name:'minecraft:cactus',Properties:{age:'7'}}", "{Name:'minecraft:cactus',Properties:{age:'7'}}");
|
|
+ register(1304, "{Name:'minecraft:cactus',Properties:{age:'8'}}", "{Name:'minecraft:cactus',Properties:{age:'8'}}");
|
|
+ register(1305, "{Name:'minecraft:cactus',Properties:{age:'9'}}", "{Name:'minecraft:cactus',Properties:{age:'9'}}");
|
|
+ register(1306, "{Name:'minecraft:cactus',Properties:{age:'10'}}", "{Name:'minecraft:cactus',Properties:{age:'10'}}");
|
|
+ register(1307, "{Name:'minecraft:cactus',Properties:{age:'11'}}", "{Name:'minecraft:cactus',Properties:{age:'11'}}");
|
|
+ register(1308, "{Name:'minecraft:cactus',Properties:{age:'12'}}", "{Name:'minecraft:cactus',Properties:{age:'12'}}");
|
|
+ register(1309, "{Name:'minecraft:cactus',Properties:{age:'13'}}", "{Name:'minecraft:cactus',Properties:{age:'13'}}");
|
|
+ register(1310, "{Name:'minecraft:cactus',Properties:{age:'14'}}", "{Name:'minecraft:cactus',Properties:{age:'14'}}");
|
|
+ register(1311, "{Name:'minecraft:cactus',Properties:{age:'15'}}", "{Name:'minecraft:cactus',Properties:{age:'15'}}");
|
|
+ register(1312, "{Name:'minecraft:clay'}", "{Name:'minecraft:clay'}");
|
|
+ register(1328, "{Name:'minecraft:sugar_cane',Properties:{age:'0'}}", "{Name:'minecraft:reeds',Properties:{age:'0'}}");
|
|
+ register(1329, "{Name:'minecraft:sugar_cane',Properties:{age:'1'}}", "{Name:'minecraft:reeds',Properties:{age:'1'}}");
|
|
+ register(1330, "{Name:'minecraft:sugar_cane',Properties:{age:'2'}}", "{Name:'minecraft:reeds',Properties:{age:'2'}}");
|
|
+ register(1331, "{Name:'minecraft:sugar_cane',Properties:{age:'3'}}", "{Name:'minecraft:reeds',Properties:{age:'3'}}");
|
|
+ register(1332, "{Name:'minecraft:sugar_cane',Properties:{age:'4'}}", "{Name:'minecraft:reeds',Properties:{age:'4'}}");
|
|
+ register(1333, "{Name:'minecraft:sugar_cane',Properties:{age:'5'}}", "{Name:'minecraft:reeds',Properties:{age:'5'}}");
|
|
+ register(1334, "{Name:'minecraft:sugar_cane',Properties:{age:'6'}}", "{Name:'minecraft:reeds',Properties:{age:'6'}}");
|
|
+ register(1335, "{Name:'minecraft:sugar_cane',Properties:{age:'7'}}", "{Name:'minecraft:reeds',Properties:{age:'7'}}");
|
|
+ register(1336, "{Name:'minecraft:sugar_cane',Properties:{age:'8'}}", "{Name:'minecraft:reeds',Properties:{age:'8'}}");
|
|
+ register(1337, "{Name:'minecraft:sugar_cane',Properties:{age:'9'}}", "{Name:'minecraft:reeds',Properties:{age:'9'}}");
|
|
+ register(1338, "{Name:'minecraft:sugar_cane',Properties:{age:'10'}}", "{Name:'minecraft:reeds',Properties:{age:'10'}}");
|
|
+ register(1339, "{Name:'minecraft:sugar_cane',Properties:{age:'11'}}", "{Name:'minecraft:reeds',Properties:{age:'11'}}");
|
|
+ register(1340, "{Name:'minecraft:sugar_cane',Properties:{age:'12'}}", "{Name:'minecraft:reeds',Properties:{age:'12'}}");
|
|
+ register(1341, "{Name:'minecraft:sugar_cane',Properties:{age:'13'}}", "{Name:'minecraft:reeds',Properties:{age:'13'}}");
|
|
+ register(1342, "{Name:'minecraft:sugar_cane',Properties:{age:'14'}}", "{Name:'minecraft:reeds',Properties:{age:'14'}}");
|
|
+ register(1343, "{Name:'minecraft:sugar_cane',Properties:{age:'15'}}", "{Name:'minecraft:reeds',Properties:{age:'15'}}");
|
|
+ register(1344, "{Name:'minecraft:jukebox',Properties:{has_record:'false'}}", "{Name:'minecraft:jukebox',Properties:{has_record:'false'}}");
|
|
+ register(1345, "{Name:'minecraft:jukebox',Properties:{has_record:'true'}}", "{Name:'minecraft:jukebox',Properties:{has_record:'true'}}");
|
|
+ register(1360, "{Name:'minecraft:oak_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:fence',Properties:{east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:fence',Properties:{east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:fence',Properties:{east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:fence',Properties:{east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:fence',Properties:{east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:fence',Properties:{east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:fence',Properties:{east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:fence',Properties:{east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:fence',Properties:{east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:fence',Properties:{east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:fence',Properties:{east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:fence',Properties:{east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:fence',Properties:{east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:fence',Properties:{east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:fence',Properties:{east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(1376, "{Name:'minecraft:carved_pumpkin',Properties:{facing:'south'}}", "{Name:'minecraft:pumpkin',Properties:{facing:'south'}}");
|
|
+ register(1377, "{Name:'minecraft:carved_pumpkin',Properties:{facing:'west'}}", "{Name:'minecraft:pumpkin',Properties:{facing:'west'}}");
|
|
+ register(1378, "{Name:'minecraft:carved_pumpkin',Properties:{facing:'north'}}", "{Name:'minecraft:pumpkin',Properties:{facing:'north'}}");
|
|
+ register(1379, "{Name:'minecraft:carved_pumpkin',Properties:{facing:'east'}}", "{Name:'minecraft:pumpkin',Properties:{facing:'east'}}");
|
|
+ register(1392, "{Name:'minecraft:netherrack'}", "{Name:'minecraft:netherrack'}");
|
|
+ register(1408, "{Name:'minecraft:soul_sand'}", "{Name:'minecraft:soul_sand'}");
|
|
+ register(1424, "{Name:'minecraft:glowstone'}", "{Name:'minecraft:glowstone'}");
|
|
+ register(1441, "{Name:'minecraft:portal',Properties:{axis:'x'}}", "{Name:'minecraft:portal',Properties:{axis:'x'}}");
|
|
+ register(1442, "{Name:'minecraft:portal',Properties:{axis:'z'}}", "{Name:'minecraft:portal',Properties:{axis:'z'}}");
|
|
+ register(1456, "{Name:'minecraft:jack_o_lantern',Properties:{facing:'south'}}", "{Name:'minecraft:lit_pumpkin',Properties:{facing:'south'}}");
|
|
+ register(1457, "{Name:'minecraft:jack_o_lantern',Properties:{facing:'west'}}", "{Name:'minecraft:lit_pumpkin',Properties:{facing:'west'}}");
|
|
+ register(1458, "{Name:'minecraft:jack_o_lantern',Properties:{facing:'north'}}", "{Name:'minecraft:lit_pumpkin',Properties:{facing:'north'}}");
|
|
+ register(1459, "{Name:'minecraft:jack_o_lantern',Properties:{facing:'east'}}", "{Name:'minecraft:lit_pumpkin',Properties:{facing:'east'}}");
|
|
+ register(1472, "{Name:'minecraft:cake',Properties:{bites:'0'}}", "{Name:'minecraft:cake',Properties:{bites:'0'}}");
|
|
+ register(1473, "{Name:'minecraft:cake',Properties:{bites:'1'}}", "{Name:'minecraft:cake',Properties:{bites:'1'}}");
|
|
+ register(1474, "{Name:'minecraft:cake',Properties:{bites:'2'}}", "{Name:'minecraft:cake',Properties:{bites:'2'}}");
|
|
+ register(1475, "{Name:'minecraft:cake',Properties:{bites:'3'}}", "{Name:'minecraft:cake',Properties:{bites:'3'}}");
|
|
+ register(1476, "{Name:'minecraft:cake',Properties:{bites:'4'}}", "{Name:'minecraft:cake',Properties:{bites:'4'}}");
|
|
+ register(1477, "{Name:'minecraft:cake',Properties:{bites:'5'}}", "{Name:'minecraft:cake',Properties:{bites:'5'}}");
|
|
+ register(1478, "{Name:'minecraft:cake',Properties:{bites:'6'}}", "{Name:'minecraft:cake',Properties:{bites:'6'}}");
|
|
+ register(1488, "{Name:'minecraft:repeater',Properties:{delay:'1',facing:'south',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'1',facing:'south',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'1',facing:'south',locked:'true'}}");
|
|
+ register(1489, "{Name:'minecraft:repeater',Properties:{delay:'1',facing:'west',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'1',facing:'west',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'1',facing:'west',locked:'true'}}");
|
|
+ register(1490, "{Name:'minecraft:repeater',Properties:{delay:'1',facing:'north',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'1',facing:'north',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'1',facing:'north',locked:'true'}}");
|
|
+ register(1491, "{Name:'minecraft:repeater',Properties:{delay:'1',facing:'east',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'1',facing:'east',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'1',facing:'east',locked:'true'}}");
|
|
+ register(1492, "{Name:'minecraft:repeater',Properties:{delay:'2',facing:'south',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'2',facing:'south',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'2',facing:'south',locked:'true'}}");
|
|
+ register(1493, "{Name:'minecraft:repeater',Properties:{delay:'2',facing:'west',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'2',facing:'west',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'2',facing:'west',locked:'true'}}");
|
|
+ register(1494, "{Name:'minecraft:repeater',Properties:{delay:'2',facing:'north',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'2',facing:'north',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'2',facing:'north',locked:'true'}}");
|
|
+ register(1495, "{Name:'minecraft:repeater',Properties:{delay:'2',facing:'east',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'2',facing:'east',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'2',facing:'east',locked:'true'}}");
|
|
+ register(1496, "{Name:'minecraft:repeater',Properties:{delay:'3',facing:'south',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'3',facing:'south',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'3',facing:'south',locked:'true'}}");
|
|
+ register(1497, "{Name:'minecraft:repeater',Properties:{delay:'3',facing:'west',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'3',facing:'west',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'3',facing:'west',locked:'true'}}");
|
|
+ register(1498, "{Name:'minecraft:repeater',Properties:{delay:'3',facing:'north',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'3',facing:'north',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'3',facing:'north',locked:'true'}}");
|
|
+ register(1499, "{Name:'minecraft:repeater',Properties:{delay:'3',facing:'east',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'3',facing:'east',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'3',facing:'east',locked:'true'}}");
|
|
+ register(1500, "{Name:'minecraft:repeater',Properties:{delay:'4',facing:'south',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'4',facing:'south',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'4',facing:'south',locked:'true'}}");
|
|
+ register(1501, "{Name:'minecraft:repeater',Properties:{delay:'4',facing:'west',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'4',facing:'west',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'4',facing:'west',locked:'true'}}");
|
|
+ register(1502, "{Name:'minecraft:repeater',Properties:{delay:'4',facing:'north',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'4',facing:'north',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'4',facing:'north',locked:'true'}}");
|
|
+ register(1503, "{Name:'minecraft:repeater',Properties:{delay:'4',facing:'east',locked:'false',powered:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'4',facing:'east',locked:'false'}}", "{Name:'minecraft:unpowered_repeater',Properties:{delay:'4',facing:'east',locked:'true'}}");
|
|
+ register(1504, "{Name:'minecraft:repeater',Properties:{delay:'1',facing:'south',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'1',facing:'south',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'1',facing:'south',locked:'true'}}");
|
|
+ register(1505, "{Name:'minecraft:repeater',Properties:{delay:'1',facing:'west',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'1',facing:'west',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'1',facing:'west',locked:'true'}}");
|
|
+ register(1506, "{Name:'minecraft:repeater',Properties:{delay:'1',facing:'north',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'1',facing:'north',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'1',facing:'north',locked:'true'}}");
|
|
+ register(1507, "{Name:'minecraft:repeater',Properties:{delay:'1',facing:'east',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'1',facing:'east',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'1',facing:'east',locked:'true'}}");
|
|
+ register(1508, "{Name:'minecraft:repeater',Properties:{delay:'2',facing:'south',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'2',facing:'south',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'2',facing:'south',locked:'true'}}");
|
|
+ register(1509, "{Name:'minecraft:repeater',Properties:{delay:'2',facing:'west',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'2',facing:'west',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'2',facing:'west',locked:'true'}}");
|
|
+ register(1510, "{Name:'minecraft:repeater',Properties:{delay:'2',facing:'north',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'2',facing:'north',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'2',facing:'north',locked:'true'}}");
|
|
+ register(1511, "{Name:'minecraft:repeater',Properties:{delay:'2',facing:'east',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'2',facing:'east',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'2',facing:'east',locked:'true'}}");
|
|
+ register(1512, "{Name:'minecraft:repeater',Properties:{delay:'3',facing:'south',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'3',facing:'south',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'3',facing:'south',locked:'true'}}");
|
|
+ register(1513, "{Name:'minecraft:repeater',Properties:{delay:'3',facing:'west',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'3',facing:'west',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'3',facing:'west',locked:'true'}}");
|
|
+ register(1514, "{Name:'minecraft:repeater',Properties:{delay:'3',facing:'north',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'3',facing:'north',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'3',facing:'north',locked:'true'}}");
|
|
+ register(1515, "{Name:'minecraft:repeater',Properties:{delay:'3',facing:'east',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'3',facing:'east',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'3',facing:'east',locked:'true'}}");
|
|
+ register(1516, "{Name:'minecraft:repeater',Properties:{delay:'4',facing:'south',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'4',facing:'south',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'4',facing:'south',locked:'true'}}");
|
|
+ register(1517, "{Name:'minecraft:repeater',Properties:{delay:'4',facing:'west',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'4',facing:'west',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'4',facing:'west',locked:'true'}}");
|
|
+ register(1518, "{Name:'minecraft:repeater',Properties:{delay:'4',facing:'north',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'4',facing:'north',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'4',facing:'north',locked:'true'}}");
|
|
+ register(1519, "{Name:'minecraft:repeater',Properties:{delay:'4',facing:'east',locked:'false',powered:'true'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'4',facing:'east',locked:'false'}}", "{Name:'minecraft:powered_repeater',Properties:{delay:'4',facing:'east',locked:'true'}}");
|
|
+ register(1520, "{Name:'minecraft:white_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'white'}}");
|
|
+ register(1521, "{Name:'minecraft:orange_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'orange'}}");
|
|
+ register(1522, "{Name:'minecraft:magenta_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'magenta'}}");
|
|
+ register(1523, "{Name:'minecraft:light_blue_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'light_blue'}}");
|
|
+ register(1524, "{Name:'minecraft:yellow_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'yellow'}}");
|
|
+ register(1525, "{Name:'minecraft:lime_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'lime'}}");
|
|
+ register(1526, "{Name:'minecraft:pink_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'pink'}}");
|
|
+ register(1527, "{Name:'minecraft:gray_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'gray'}}");
|
|
+ register(1528, "{Name:'minecraft:light_gray_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'silver'}}");
|
|
+ register(1529, "{Name:'minecraft:cyan_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'cyan'}}");
|
|
+ register(1530, "{Name:'minecraft:purple_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'purple'}}");
|
|
+ register(1531, "{Name:'minecraft:blue_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'blue'}}");
|
|
+ register(1532, "{Name:'minecraft:brown_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'brown'}}");
|
|
+ register(1533, "{Name:'minecraft:green_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'green'}}");
|
|
+ register(1534, "{Name:'minecraft:red_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'red'}}");
|
|
+ register(1535, "{Name:'minecraft:black_stained_glass'}", "{Name:'minecraft:stained_glass',Properties:{color:'black'}}");
|
|
+ register(1536, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'north',half:'bottom',open:'false'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'north',half:'bottom',open:'false'}}");
|
|
+ register(1537, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'south',half:'bottom',open:'false'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'south',half:'bottom',open:'false'}}");
|
|
+ register(1538, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'west',half:'bottom',open:'false'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'west',half:'bottom',open:'false'}}");
|
|
+ register(1539, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'east',half:'bottom',open:'false'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'east',half:'bottom',open:'false'}}");
|
|
+ register(1540, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'north',half:'bottom',open:'true'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'north',half:'bottom',open:'true'}}");
|
|
+ register(1541, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'south',half:'bottom',open:'true'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'south',half:'bottom',open:'true'}}");
|
|
+ register(1542, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'west',half:'bottom',open:'true'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'west',half:'bottom',open:'true'}}");
|
|
+ register(1543, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'east',half:'bottom',open:'true'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'east',half:'bottom',open:'true'}}");
|
|
+ register(1544, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'north',half:'top',open:'false'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'north',half:'top',open:'false'}}");
|
|
+ register(1545, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'south',half:'top',open:'false'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'south',half:'top',open:'false'}}");
|
|
+ register(1546, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'west',half:'top',open:'false'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'west',half:'top',open:'false'}}");
|
|
+ register(1547, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'east',half:'top',open:'false'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'east',half:'top',open:'false'}}");
|
|
+ register(1548, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'north',half:'top',open:'true'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'north',half:'top',open:'true'}}");
|
|
+ register(1549, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'south',half:'top',open:'true'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'south',half:'top',open:'true'}}");
|
|
+ register(1550, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'west',half:'top',open:'true'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'west',half:'top',open:'true'}}");
|
|
+ register(1551, "{Name:'minecraft:oak_trapdoor',Properties:{facing:'east',half:'top',open:'true'}}", "{Name:'minecraft:trapdoor',Properties:{facing:'east',half:'top',open:'true'}}");
|
|
+ register(1552, "{Name:'minecraft:infested_stone'}", "{Name:'minecraft:monster_egg',Properties:{variant:'stone'}}");
|
|
+ register(1553, "{Name:'minecraft:infested_cobblestone'}", "{Name:'minecraft:monster_egg',Properties:{variant:'cobblestone'}}");
|
|
+ register(1554, "{Name:'minecraft:infested_stone_bricks'}", "{Name:'minecraft:monster_egg',Properties:{variant:'stone_brick'}}");
|
|
+ register(1555, "{Name:'minecraft:infested_mossy_stone_bricks'}", "{Name:'minecraft:monster_egg',Properties:{variant:'mossy_brick'}}");
|
|
+ register(1556, "{Name:'minecraft:infested_cracked_stone_bricks'}", "{Name:'minecraft:monster_egg',Properties:{variant:'cracked_brick'}}");
|
|
+ register(1557, "{Name:'minecraft:infested_chiseled_stone_bricks'}", "{Name:'minecraft:monster_egg',Properties:{variant:'chiseled_brick'}}");
|
|
+ register(1568, "{Name:'minecraft:stone_bricks'}", "{Name:'minecraft:stonebrick',Properties:{variant:'stonebrick'}}");
|
|
+ register(1569, "{Name:'minecraft:mossy_stone_bricks'}", "{Name:'minecraft:stonebrick',Properties:{variant:'mossy_stonebrick'}}");
|
|
+ register(1570, "{Name:'minecraft:cracked_stone_bricks'}", "{Name:'minecraft:stonebrick',Properties:{variant:'cracked_stonebrick'}}");
|
|
+ register(1571, "{Name:'minecraft:chiseled_stone_bricks'}", "{Name:'minecraft:stonebrick',Properties:{variant:'chiseled_stonebrick'}}");
|
|
+ register(1584, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'false',east:'false',south:'false',west:'false',up:'false',down:'false'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'all_inside'}}");
|
|
+ register(1585, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'true',east:'false',south:'false',west:'true',up:'true',down:'false'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'north_west'}}");
|
|
+ register(1586, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'true',east:'false',south:'false',west:'false',up:'true',down:'false'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'north'}}");
|
|
+ register(1587, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'true',east:'true',south:'false',west:'false',up:'true',down:'false'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'north_east'}}");
|
|
+ register(1588, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'false',east:'false',south:'false',west:'true',up:'true',down:'false'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'west'}}");
|
|
+ register(1589, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'false',east:'false',south:'false',west:'false',up:'true',down:'false'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'center'}}");
|
|
+ register(1590, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'false',east:'true',south:'false',west:'false',up:'true',down:'false'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'east'}}");
|
|
+ register(1591, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'false',east:'false',south:'true',west:'true',up:'true',down:'false'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'south_west'}}");
|
|
+ register(1592, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'false',east:'false',south:'true',west:'false',up:'true',down:'false'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'south'}}");
|
|
+ register(1593, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'false',east:'true',south:'true',west:'false',up:'true',down:'false'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'south_east'}}");
|
|
+ register(1594, "{Name:'minecraft:mushroom_stem',Properties:{north:'true',east:'true',south:'true',west:'true',up:'false',down:'false'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'stem'}}");
|
|
+ register(1595, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'false',east:'false',south:'false',west:'false',up:'false',down:'false'}}");
|
|
+ register(1596, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'false',east:'false',south:'false',west:'false',up:'false',down:'false'}}");
|
|
+ register(1597, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'false',east:'false',south:'false',west:'false',up:'false',down:'false'}}");
|
|
+ register(1598, "{Name:'minecraft:brown_mushroom_block',Properties:{north:'true',east:'true',south:'true',west:'true',up:'true',down:'true'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'all_outside'}}");
|
|
+ register(1599, "{Name:'minecraft:mushroom_stem',Properties:{north:'true',east:'true',south:'true',west:'true',up:'true',down:'true'}}", "{Name:'minecraft:brown_mushroom_block',Properties:{variant:'all_stem'}}");
|
|
+ register(1600, "{Name:'minecraft:red_mushroom_block',Properties:{north:'false',east:'false',south:'false',west:'false',up:'false',down:'false'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'all_inside'}}");
|
|
+ register(1601, "{Name:'minecraft:red_mushroom_block',Properties:{north:'true',east:'false',south:'false',west:'true',up:'true',down:'false'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'north_west'}}");
|
|
+ register(1602, "{Name:'minecraft:red_mushroom_block',Properties:{north:'true',east:'false',south:'false',west:'false',up:'true',down:'false'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'north'}}");
|
|
+ register(1603, "{Name:'minecraft:red_mushroom_block',Properties:{north:'true',east:'true',south:'false',west:'false',up:'true',down:'false'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'north_east'}}");
|
|
+ register(1604, "{Name:'minecraft:red_mushroom_block',Properties:{north:'false',east:'false',south:'false',west:'true',up:'true',down:'false'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'west'}}");
|
|
+ register(1605, "{Name:'minecraft:red_mushroom_block',Properties:{north:'false',east:'false',south:'false',west:'false',up:'true',down:'false'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'center'}}");
|
|
+ register(1606, "{Name:'minecraft:red_mushroom_block',Properties:{north:'false',east:'true',south:'false',west:'false',up:'true',down:'false'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'east'}}");
|
|
+ register(1607, "{Name:'minecraft:red_mushroom_block',Properties:{north:'false',east:'false',south:'true',west:'true',up:'true',down:'false'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'south_west'}}");
|
|
+ register(1608, "{Name:'minecraft:red_mushroom_block',Properties:{north:'false',east:'false',south:'true',west:'false',up:'true',down:'false'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'south'}}");
|
|
+ register(1609, "{Name:'minecraft:red_mushroom_block',Properties:{north:'false',east:'true',south:'true',west:'false',up:'true',down:'false'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'south_east'}}");
|
|
+ register(1610, "{Name:'minecraft:mushroom_stem',Properties:{north:'true',east:'true',south:'true',west:'true',up:'false',down:'false'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'stem'}}");
|
|
+ register(1611, "{Name:'minecraft:red_mushroom_block',Properties:{north:'false',east:'false',south:'false',west:'false',up:'false',down:'false'}}");
|
|
+ register(1612, "{Name:'minecraft:red_mushroom_block',Properties:{north:'false',east:'false',south:'false',west:'false',up:'false',down:'false'}}");
|
|
+ register(1613, "{Name:'minecraft:red_mushroom_block',Properties:{north:'false',east:'false',south:'false',west:'false',up:'false',down:'false'}}");
|
|
+ register(1614, "{Name:'minecraft:red_mushroom_block',Properties:{north:'true',east:'true',south:'true',west:'true',up:'true',down:'true'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'all_outside'}}");
|
|
+ register(1615, "{Name:'minecraft:mushroom_stem',Properties:{north:'true',east:'true',south:'true',west:'true',up:'true',down:'true'}}", "{Name:'minecraft:red_mushroom_block',Properties:{variant:'all_stem'}}");
|
|
+ register(1616, "{Name:'minecraft:iron_bars',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:iron_bars',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:iron_bars',Properties:{east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:iron_bars',Properties:{east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:iron_bars',Properties:{east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:iron_bars',Properties:{east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:iron_bars',Properties:{east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:iron_bars',Properties:{east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:iron_bars',Properties:{east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:iron_bars',Properties:{east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:iron_bars',Properties:{east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:iron_bars',Properties:{east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:iron_bars',Properties:{east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:iron_bars',Properties:{east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:iron_bars',Properties:{east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:iron_bars',Properties:{east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:iron_bars',Properties:{east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(1632, "{Name:'minecraft:glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:glass_pane',Properties:{east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:glass_pane',Properties:{east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:glass_pane',Properties:{east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:glass_pane',Properties:{east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:glass_pane',Properties:{east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:glass_pane',Properties:{east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:glass_pane',Properties:{east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:glass_pane',Properties:{east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:glass_pane',Properties:{east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:glass_pane',Properties:{east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:glass_pane',Properties:{east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:glass_pane',Properties:{east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:glass_pane',Properties:{east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:glass_pane',Properties:{east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:glass_pane',Properties:{east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(1648, "{Name:'minecraft:melon_block'}", "{Name:'minecraft:melon_block'}");
|
|
+ register(1664, "{Name:'minecraft:pumpkin_stem',Properties:{age:'0'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'0',facing:'east'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'0',facing:'north'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'0',facing:'south'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'0',facing:'up'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'0',facing:'west'}}");
|
|
+ register(1665, "{Name:'minecraft:pumpkin_stem',Properties:{age:'1'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'1',facing:'east'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'1',facing:'north'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'1',facing:'south'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'1',facing:'up'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'1',facing:'west'}}");
|
|
+ register(1666, "{Name:'minecraft:pumpkin_stem',Properties:{age:'2'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'2',facing:'east'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'2',facing:'north'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'2',facing:'south'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'2',facing:'up'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'2',facing:'west'}}");
|
|
+ register(1667, "{Name:'minecraft:pumpkin_stem',Properties:{age:'3'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'3',facing:'east'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'3',facing:'north'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'3',facing:'south'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'3',facing:'up'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'3',facing:'west'}}");
|
|
+ register(1668, "{Name:'minecraft:pumpkin_stem',Properties:{age:'4'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'4',facing:'east'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'4',facing:'north'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'4',facing:'south'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'4',facing:'up'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'4',facing:'west'}}");
|
|
+ register(1669, "{Name:'minecraft:pumpkin_stem',Properties:{age:'5'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'5',facing:'east'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'5',facing:'north'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'5',facing:'south'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'5',facing:'up'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'5',facing:'west'}}");
|
|
+ register(1670, "{Name:'minecraft:pumpkin_stem',Properties:{age:'6'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'6',facing:'east'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'6',facing:'north'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'6',facing:'south'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'6',facing:'up'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'6',facing:'west'}}");
|
|
+ register(1671, "{Name:'minecraft:pumpkin_stem',Properties:{age:'7'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'7',facing:'east'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'7',facing:'north'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'7',facing:'south'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'7',facing:'up'}}", "{Name:'minecraft:pumpkin_stem',Properties:{age:'7',facing:'west'}}");
|
|
+ register(1680, "{Name:'minecraft:melon_stem',Properties:{age:'0'}}", "{Name:'minecraft:melon_stem',Properties:{age:'0',facing:'east'}}", "{Name:'minecraft:melon_stem',Properties:{age:'0',facing:'north'}}", "{Name:'minecraft:melon_stem',Properties:{age:'0',facing:'south'}}", "{Name:'minecraft:melon_stem',Properties:{age:'0',facing:'up'}}", "{Name:'minecraft:melon_stem',Properties:{age:'0',facing:'west'}}");
|
|
+ register(1681, "{Name:'minecraft:melon_stem',Properties:{age:'1'}}", "{Name:'minecraft:melon_stem',Properties:{age:'1',facing:'east'}}", "{Name:'minecraft:melon_stem',Properties:{age:'1',facing:'north'}}", "{Name:'minecraft:melon_stem',Properties:{age:'1',facing:'south'}}", "{Name:'minecraft:melon_stem',Properties:{age:'1',facing:'up'}}", "{Name:'minecraft:melon_stem',Properties:{age:'1',facing:'west'}}");
|
|
+ register(1682, "{Name:'minecraft:melon_stem',Properties:{age:'2'}}", "{Name:'minecraft:melon_stem',Properties:{age:'2',facing:'east'}}", "{Name:'minecraft:melon_stem',Properties:{age:'2',facing:'north'}}", "{Name:'minecraft:melon_stem',Properties:{age:'2',facing:'south'}}", "{Name:'minecraft:melon_stem',Properties:{age:'2',facing:'up'}}", "{Name:'minecraft:melon_stem',Properties:{age:'2',facing:'west'}}");
|
|
+ register(1683, "{Name:'minecraft:melon_stem',Properties:{age:'3'}}", "{Name:'minecraft:melon_stem',Properties:{age:'3',facing:'east'}}", "{Name:'minecraft:melon_stem',Properties:{age:'3',facing:'north'}}", "{Name:'minecraft:melon_stem',Properties:{age:'3',facing:'south'}}", "{Name:'minecraft:melon_stem',Properties:{age:'3',facing:'up'}}", "{Name:'minecraft:melon_stem',Properties:{age:'3',facing:'west'}}");
|
|
+ register(1684, "{Name:'minecraft:melon_stem',Properties:{age:'4'}}", "{Name:'minecraft:melon_stem',Properties:{age:'4',facing:'east'}}", "{Name:'minecraft:melon_stem',Properties:{age:'4',facing:'north'}}", "{Name:'minecraft:melon_stem',Properties:{age:'4',facing:'south'}}", "{Name:'minecraft:melon_stem',Properties:{age:'4',facing:'up'}}", "{Name:'minecraft:melon_stem',Properties:{age:'4',facing:'west'}}");
|
|
+ register(1685, "{Name:'minecraft:melon_stem',Properties:{age:'5'}}", "{Name:'minecraft:melon_stem',Properties:{age:'5',facing:'east'}}", "{Name:'minecraft:melon_stem',Properties:{age:'5',facing:'north'}}", "{Name:'minecraft:melon_stem',Properties:{age:'5',facing:'south'}}", "{Name:'minecraft:melon_stem',Properties:{age:'5',facing:'up'}}", "{Name:'minecraft:melon_stem',Properties:{age:'5',facing:'west'}}");
|
|
+ register(1686, "{Name:'minecraft:melon_stem',Properties:{age:'6'}}", "{Name:'minecraft:melon_stem',Properties:{age:'6',facing:'east'}}", "{Name:'minecraft:melon_stem',Properties:{age:'6',facing:'north'}}", "{Name:'minecraft:melon_stem',Properties:{age:'6',facing:'south'}}", "{Name:'minecraft:melon_stem',Properties:{age:'6',facing:'up'}}", "{Name:'minecraft:melon_stem',Properties:{age:'6',facing:'west'}}");
|
|
+ register(1687, "{Name:'minecraft:melon_stem',Properties:{age:'7'}}", "{Name:'minecraft:melon_stem',Properties:{age:'7',facing:'east'}}", "{Name:'minecraft:melon_stem',Properties:{age:'7',facing:'north'}}", "{Name:'minecraft:melon_stem',Properties:{age:'7',facing:'south'}}", "{Name:'minecraft:melon_stem',Properties:{age:'7',facing:'up'}}", "{Name:'minecraft:melon_stem',Properties:{age:'7',facing:'west'}}");
|
|
+ register(1696, "{Name:'minecraft:vine',Properties:{east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'false',south:'false',up:'true',west:'false'}}");
|
|
+ register(1697, "{Name:'minecraft:vine',Properties:{east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'false',south:'true',up:'true',west:'false'}}");
|
|
+ register(1698, "{Name:'minecraft:vine',Properties:{east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'false',south:'false',up:'true',west:'true'}}");
|
|
+ register(1699, "{Name:'minecraft:vine',Properties:{east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'false',south:'true',up:'true',west:'true'}}");
|
|
+ register(1700, "{Name:'minecraft:vine',Properties:{east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'true',south:'false',up:'true',west:'false'}}");
|
|
+ register(1701, "{Name:'minecraft:vine',Properties:{east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'true',south:'true',up:'true',west:'false'}}");
|
|
+ register(1702, "{Name:'minecraft:vine',Properties:{east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'true',south:'false',up:'true',west:'true'}}");
|
|
+ register(1703, "{Name:'minecraft:vine',Properties:{east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'false',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(1704, "{Name:'minecraft:vine',Properties:{east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'false',south:'false',up:'true',west:'false'}}");
|
|
+ register(1705, "{Name:'minecraft:vine',Properties:{east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'false',south:'true',up:'true',west:'false'}}");
|
|
+ register(1706, "{Name:'minecraft:vine',Properties:{east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'false',south:'false',up:'true',west:'true'}}");
|
|
+ register(1707, "{Name:'minecraft:vine',Properties:{east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'false',south:'true',up:'true',west:'true'}}");
|
|
+ register(1708, "{Name:'minecraft:vine',Properties:{east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'true',south:'false',up:'true',west:'false'}}");
|
|
+ register(1709, "{Name:'minecraft:vine',Properties:{east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'true',south:'true',up:'true',west:'false'}}");
|
|
+ register(1710, "{Name:'minecraft:vine',Properties:{east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'true',south:'false',up:'true',west:'true'}}");
|
|
+ register(1711, "{Name:'minecraft:vine',Properties:{east:'true',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:vine',Properties:{east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(1712, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'south',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(1713, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'west',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(1714, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'north',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(1715, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'east',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(1716, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'south',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(1717, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'west',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(1718, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'north',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(1719, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'east',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(1720, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'south',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(1721, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'west',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(1722, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'north',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(1723, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'east',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(1724, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'south',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(1725, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'west',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(1726, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'north',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(1727, "{Name:'minecraft:oak_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:fence_gate',Properties:{facing:'east',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(1728, "{Name:'minecraft:brick_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(1729, "{Name:'minecraft:brick_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(1730, "{Name:'minecraft:brick_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(1731, "{Name:'minecraft:brick_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(1732, "{Name:'minecraft:brick_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(1733, "{Name:'minecraft:brick_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(1734, "{Name:'minecraft:brick_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(1735, "{Name:'minecraft:brick_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:brick_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(1744, "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(1745, "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(1746, "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(1747, "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(1748, "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(1749, "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(1750, "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(1751, "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:stone_brick_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(1760, "{Name:'minecraft:mycelium',Properties:{snowy:'false'}}", "{Name:'minecraft:mycelium',Properties:{snowy:'false'}}", "{Name:'minecraft:mycelium',Properties:{snowy:'true'}}");
|
|
+ register(1776, "{Name:'minecraft:lily_pad'}", "{Name:'minecraft:waterlily'}");
|
|
+ register(1792, "{Name:'minecraft:nether_bricks'}", "{Name:'minecraft:nether_brick'}");
|
|
+ register(1808, "{Name:'minecraft:nether_brick_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:nether_brick_fence',Properties:{east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(1824, "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(1825, "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(1826, "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(1827, "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(1828, "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(1829, "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(1830, "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(1831, "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:nether_brick_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(1840, "{Name:'minecraft:nether_wart',Properties:{age:'0'}}", "{Name:'minecraft:nether_wart',Properties:{age:'0'}}");
|
|
+ register(1841, "{Name:'minecraft:nether_wart',Properties:{age:'1'}}", "{Name:'minecraft:nether_wart',Properties:{age:'1'}}");
|
|
+ register(1842, "{Name:'minecraft:nether_wart',Properties:{age:'2'}}", "{Name:'minecraft:nether_wart',Properties:{age:'2'}}");
|
|
+ register(1843, "{Name:'minecraft:nether_wart',Properties:{age:'3'}}", "{Name:'minecraft:nether_wart',Properties:{age:'3'}}");
|
|
+ register(1856, "{Name:'minecraft:enchanting_table'}", "{Name:'minecraft:enchanting_table'}");
|
|
+ register(1872, "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'false',has_bottle_1:'false',has_bottle_2:'false'}}", "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'false',has_bottle_1:'false',has_bottle_2:'false'}}");
|
|
+ register(1873, "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'true',has_bottle_1:'false',has_bottle_2:'false'}}", "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'true',has_bottle_1:'false',has_bottle_2:'false'}}");
|
|
+ register(1874, "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'false',has_bottle_1:'true',has_bottle_2:'false'}}", "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'false',has_bottle_1:'true',has_bottle_2:'false'}}");
|
|
+ register(1875, "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'true',has_bottle_1:'true',has_bottle_2:'false'}}", "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'true',has_bottle_1:'true',has_bottle_2:'false'}}");
|
|
+ register(1876, "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'false',has_bottle_1:'false',has_bottle_2:'true'}}", "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'false',has_bottle_1:'false',has_bottle_2:'true'}}");
|
|
+ register(1877, "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'true',has_bottle_1:'false',has_bottle_2:'true'}}", "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'true',has_bottle_1:'false',has_bottle_2:'true'}}");
|
|
+ register(1878, "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'false',has_bottle_1:'true',has_bottle_2:'true'}}", "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'false',has_bottle_1:'true',has_bottle_2:'true'}}");
|
|
+ register(1879, "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'true',has_bottle_1:'true',has_bottle_2:'true'}}", "{Name:'minecraft:brewing_stand',Properties:{has_bottle_0:'true',has_bottle_1:'true',has_bottle_2:'true'}}");
|
|
+ register(1888, "{Name:'minecraft:cauldron',Properties:{level:'0'}}", "{Name:'minecraft:cauldron',Properties:{level:'0'}}");
|
|
+ register(1889, "{Name:'minecraft:cauldron',Properties:{level:'1'}}", "{Name:'minecraft:cauldron',Properties:{level:'1'}}");
|
|
+ register(1890, "{Name:'minecraft:cauldron',Properties:{level:'2'}}", "{Name:'minecraft:cauldron',Properties:{level:'2'}}");
|
|
+ register(1891, "{Name:'minecraft:cauldron',Properties:{level:'3'}}", "{Name:'minecraft:cauldron',Properties:{level:'3'}}");
|
|
+ register(1904, "{Name:'minecraft:end_portal'}", "{Name:'minecraft:end_portal'}");
|
|
+ register(1920, "{Name:'minecraft:end_portal_frame',Properties:{eye:'false',facing:'south'}}", "{Name:'minecraft:end_portal_frame',Properties:{eye:'false',facing:'south'}}");
|
|
+ register(1921, "{Name:'minecraft:end_portal_frame',Properties:{eye:'false',facing:'west'}}", "{Name:'minecraft:end_portal_frame',Properties:{eye:'false',facing:'west'}}");
|
|
+ register(1922, "{Name:'minecraft:end_portal_frame',Properties:{eye:'false',facing:'north'}}", "{Name:'minecraft:end_portal_frame',Properties:{eye:'false',facing:'north'}}");
|
|
+ register(1923, "{Name:'minecraft:end_portal_frame',Properties:{eye:'false',facing:'east'}}", "{Name:'minecraft:end_portal_frame',Properties:{eye:'false',facing:'east'}}");
|
|
+ register(1924, "{Name:'minecraft:end_portal_frame',Properties:{eye:'true',facing:'south'}}", "{Name:'minecraft:end_portal_frame',Properties:{eye:'true',facing:'south'}}");
|
|
+ register(1925, "{Name:'minecraft:end_portal_frame',Properties:{eye:'true',facing:'west'}}", "{Name:'minecraft:end_portal_frame',Properties:{eye:'true',facing:'west'}}");
|
|
+ register(1926, "{Name:'minecraft:end_portal_frame',Properties:{eye:'true',facing:'north'}}", "{Name:'minecraft:end_portal_frame',Properties:{eye:'true',facing:'north'}}");
|
|
+ register(1927, "{Name:'minecraft:end_portal_frame',Properties:{eye:'true',facing:'east'}}", "{Name:'minecraft:end_portal_frame',Properties:{eye:'true',facing:'east'}}");
|
|
+ register(1936, "{Name:'minecraft:end_stone'}", "{Name:'minecraft:end_stone'}");
|
|
+ register(1952, "{Name:'minecraft:dragon_egg'}", "{Name:'minecraft:dragon_egg'}");
|
|
+ register(1968, "{Name:'minecraft:redstone_lamp',Properties:{lit:'false'}}", "{Name:'minecraft:redstone_lamp'}");
|
|
+ register(1984, "{Name:'minecraft:redstone_lamp',Properties:{lit:'true'}}", "{Name:'minecraft:lit_redstone_lamp'}");
|
|
+ register(2000, "{Name:'minecraft:oak_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_wooden_slab',Properties:{variant:'oak'}}");
|
|
+ register(2001, "{Name:'minecraft:spruce_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_wooden_slab',Properties:{variant:'spruce'}}");
|
|
+ register(2002, "{Name:'minecraft:birch_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_wooden_slab',Properties:{variant:'birch'}}");
|
|
+ register(2003, "{Name:'minecraft:jungle_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_wooden_slab',Properties:{variant:'jungle'}}");
|
|
+ register(2004, "{Name:'minecraft:acacia_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_wooden_slab',Properties:{variant:'acacia'}}");
|
|
+ register(2005, "{Name:'minecraft:dark_oak_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_wooden_slab',Properties:{variant:'dark_oak'}}");
|
|
+ register(2016, "{Name:'minecraft:oak_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:wooden_slab',Properties:{half:'bottom',variant:'oak'}}");
|
|
+ register(2017, "{Name:'minecraft:spruce_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:wooden_slab',Properties:{half:'bottom',variant:'spruce'}}");
|
|
+ register(2018, "{Name:'minecraft:birch_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:wooden_slab',Properties:{half:'bottom',variant:'birch'}}");
|
|
+ register(2019, "{Name:'minecraft:jungle_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:wooden_slab',Properties:{half:'bottom',variant:'jungle'}}");
|
|
+ register(2020, "{Name:'minecraft:acacia_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:wooden_slab',Properties:{half:'bottom',variant:'acacia'}}");
|
|
+ register(2021, "{Name:'minecraft:dark_oak_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:wooden_slab',Properties:{half:'bottom',variant:'dark_oak'}}");
|
|
+ register(2024, "{Name:'minecraft:oak_slab',Properties:{type:'top'}}", "{Name:'minecraft:wooden_slab',Properties:{half:'top',variant:'oak'}}");
|
|
+ register(2025, "{Name:'minecraft:spruce_slab',Properties:{type:'top'}}", "{Name:'minecraft:wooden_slab',Properties:{half:'top',variant:'spruce'}}");
|
|
+ register(2026, "{Name:'minecraft:birch_slab',Properties:{type:'top'}}", "{Name:'minecraft:wooden_slab',Properties:{half:'top',variant:'birch'}}");
|
|
+ register(2027, "{Name:'minecraft:jungle_slab',Properties:{type:'top'}}", "{Name:'minecraft:wooden_slab',Properties:{half:'top',variant:'jungle'}}");
|
|
+ register(2028, "{Name:'minecraft:acacia_slab',Properties:{type:'top'}}", "{Name:'minecraft:wooden_slab',Properties:{half:'top',variant:'acacia'}}");
|
|
+ register(2029, "{Name:'minecraft:dark_oak_slab',Properties:{type:'top'}}", "{Name:'minecraft:wooden_slab',Properties:{half:'top',variant:'dark_oak'}}");
|
|
+ register(2032, "{Name:'minecraft:cocoa',Properties:{age:'0',facing:'south'}}", "{Name:'minecraft:cocoa',Properties:{age:'0',facing:'south'}}");
|
|
+ register(2033, "{Name:'minecraft:cocoa',Properties:{age:'0',facing:'west'}}", "{Name:'minecraft:cocoa',Properties:{age:'0',facing:'west'}}");
|
|
+ register(2034, "{Name:'minecraft:cocoa',Properties:{age:'0',facing:'north'}}", "{Name:'minecraft:cocoa',Properties:{age:'0',facing:'north'}}");
|
|
+ register(2035, "{Name:'minecraft:cocoa',Properties:{age:'0',facing:'east'}}", "{Name:'minecraft:cocoa',Properties:{age:'0',facing:'east'}}");
|
|
+ register(2036, "{Name:'minecraft:cocoa',Properties:{age:'1',facing:'south'}}", "{Name:'minecraft:cocoa',Properties:{age:'1',facing:'south'}}");
|
|
+ register(2037, "{Name:'minecraft:cocoa',Properties:{age:'1',facing:'west'}}", "{Name:'minecraft:cocoa',Properties:{age:'1',facing:'west'}}");
|
|
+ register(2038, "{Name:'minecraft:cocoa',Properties:{age:'1',facing:'north'}}", "{Name:'minecraft:cocoa',Properties:{age:'1',facing:'north'}}");
|
|
+ register(2039, "{Name:'minecraft:cocoa',Properties:{age:'1',facing:'east'}}", "{Name:'minecraft:cocoa',Properties:{age:'1',facing:'east'}}");
|
|
+ register(2040, "{Name:'minecraft:cocoa',Properties:{age:'2',facing:'south'}}", "{Name:'minecraft:cocoa',Properties:{age:'2',facing:'south'}}");
|
|
+ register(2041, "{Name:'minecraft:cocoa',Properties:{age:'2',facing:'west'}}", "{Name:'minecraft:cocoa',Properties:{age:'2',facing:'west'}}");
|
|
+ register(2042, "{Name:'minecraft:cocoa',Properties:{age:'2',facing:'north'}}", "{Name:'minecraft:cocoa',Properties:{age:'2',facing:'north'}}");
|
|
+ register(2043, "{Name:'minecraft:cocoa',Properties:{age:'2',facing:'east'}}", "{Name:'minecraft:cocoa',Properties:{age:'2',facing:'east'}}");
|
|
+ register(2048, "{Name:'minecraft:sandstone_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(2049, "{Name:'minecraft:sandstone_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(2050, "{Name:'minecraft:sandstone_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(2051, "{Name:'minecraft:sandstone_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(2052, "{Name:'minecraft:sandstone_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(2053, "{Name:'minecraft:sandstone_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(2054, "{Name:'minecraft:sandstone_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(2055, "{Name:'minecraft:sandstone_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:sandstone_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(2064, "{Name:'minecraft:emerald_ore'}", "{Name:'minecraft:emerald_ore'}");
|
|
+ register(2082, "{Name:'minecraft:ender_chest',Properties:{facing:'north'}}", "{Name:'minecraft:ender_chest',Properties:{facing:'north'}}");
|
|
+ register(2083, "{Name:'minecraft:ender_chest',Properties:{facing:'south'}}", "{Name:'minecraft:ender_chest',Properties:{facing:'south'}}");
|
|
+ register(2084, "{Name:'minecraft:ender_chest',Properties:{facing:'west'}}", "{Name:'minecraft:ender_chest',Properties:{facing:'west'}}");
|
|
+ register(2085, "{Name:'minecraft:ender_chest',Properties:{facing:'east'}}", "{Name:'minecraft:ender_chest',Properties:{facing:'east'}}");
|
|
+ register(2096, "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'south',powered:'false'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'south',powered:'false'}}");
|
|
+ register(2097, "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'west',powered:'false'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'west',powered:'false'}}");
|
|
+ register(2098, "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'north',powered:'false'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'north',powered:'false'}}");
|
|
+ register(2099, "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'east',powered:'false'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'east',powered:'false'}}");
|
|
+ register(2100, "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'south',powered:'false'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'south',powered:'false'}}");
|
|
+ register(2101, "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'west',powered:'false'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'west',powered:'false'}}");
|
|
+ register(2102, "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'north',powered:'false'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'north',powered:'false'}}");
|
|
+ register(2103, "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'east',powered:'false'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'east',powered:'false'}}");
|
|
+ register(2104, "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'south',powered:'true'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'south',powered:'true'}}");
|
|
+ register(2105, "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'west',powered:'true'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'west',powered:'true'}}");
|
|
+ register(2106, "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'north',powered:'true'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'north',powered:'true'}}");
|
|
+ register(2107, "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'east',powered:'true'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'false',facing:'east',powered:'true'}}");
|
|
+ register(2108, "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'south',powered:'true'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'south',powered:'true'}}");
|
|
+ register(2109, "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'west',powered:'true'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'west',powered:'true'}}");
|
|
+ register(2110, "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'north',powered:'true'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'north',powered:'true'}}");
|
|
+ register(2111, "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'east',powered:'true'}}", "{Name:'minecraft:tripwire_hook',Properties:{attached:'true',facing:'east',powered:'true'}}");
|
|
+ register(2112, "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'false',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'false',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'false',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'false',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'false',powered:'false',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'true',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'true',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'true',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'true',powered:'false',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'false',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'false',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'false',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'false',powered:'false',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'true',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'true',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'true',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'true',powered:'false',south:'true',west:'true'}}");
|
|
+ register(2113, "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'false',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'false',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'false',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'false',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'false',powered:'true',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'true',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'true',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'true',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'true',powered:'true',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'false',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'false',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'false',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'false',powered:'true',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'true',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'true',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'true',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'true',north:'true',powered:'true',south:'true',west:'true'}}");
|
|
+ register(2114, "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'false',powered:'false',south:'false',west:'false'}}");
|
|
+ register(2115, "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'false',east:'false',north:'false',powered:'true',south:'false',west:'false'}}");
|
|
+ register(2116, "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'false',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'false',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'false',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'false',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'false',powered:'false',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'true',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'true',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'true',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'true',powered:'false',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'false',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'false',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'false',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'false',powered:'false',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'true',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'true',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'true',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'true',powered:'false',south:'true',west:'true'}}");
|
|
+ register(2117, "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'false',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'false',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'false',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'false',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'false',powered:'true',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'true',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'true',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'true',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'true',powered:'true',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'false',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'false',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'false',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'false',powered:'true',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'true',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'true',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'true',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'true',north:'true',powered:'true',south:'true',west:'true'}}");
|
|
+ register(2118, "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'false',powered:'false',south:'false',west:'false'}}");
|
|
+ register(2119, "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'false',east:'false',north:'false',powered:'true',south:'false',west:'false'}}");
|
|
+ register(2120, "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'false',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'false',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'false',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'false',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'false',powered:'false',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'true',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'true',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'true',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'true',powered:'false',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'false',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'false',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'false',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'false',powered:'false',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'true',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'true',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'true',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'true',powered:'false',south:'true',west:'true'}}");
|
|
+ register(2121, "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'false',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'false',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'false',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'false',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'false',powered:'true',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'true',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'true',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'true',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'true',powered:'true',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'false',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'false',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'false',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'false',powered:'true',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'true',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'true',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'true',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'true',north:'true',powered:'true',south:'true',west:'true'}}");
|
|
+ register(2122, "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'false',powered:'false',south:'false',west:'false'}}");
|
|
+ register(2123, "{Name:'minecraft:tripwire',Properties:{attached:'false',disarmed:'true',east:'false',north:'false',powered:'true',south:'false',west:'false'}}");
|
|
+ register(2124, "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'false',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'false',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'false',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'false',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'false',powered:'false',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'true',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'true',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'true',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'true',powered:'false',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'false',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'false',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'false',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'false',powered:'false',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'true',powered:'false',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'true',powered:'false',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'true',powered:'false',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'true',powered:'false',south:'true',west:'true'}}");
|
|
+ register(2125, "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'false',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'false',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'false',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'false',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'false',powered:'true',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'true',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'true',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'true',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'true',powered:'true',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'false',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'false',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'false',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'false',powered:'true',south:'true',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'true',powered:'true',south:'false',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'true',powered:'true',south:'false',west:'true'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'true',powered:'true',south:'true',west:'false'}}", "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'true',north:'true',powered:'true',south:'true',west:'true'}}");
|
|
+ register(2126, "{Name:'minecraft:tripwire',Properties:{attached:'true',disarmed:'true',east:'false',north:'false',powered:'false',south:'false',west:'false'}}");
|
|
+ register(2128, "{Name:'minecraft:emerald_block'}", "{Name:'minecraft:emerald_block'}");
|
|
+ register(2144, "{Name:'minecraft:spruce_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(2145, "{Name:'minecraft:spruce_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(2146, "{Name:'minecraft:spruce_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(2147, "{Name:'minecraft:spruce_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(2148, "{Name:'minecraft:spruce_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(2149, "{Name:'minecraft:spruce_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(2150, "{Name:'minecraft:spruce_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(2151, "{Name:'minecraft:spruce_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:spruce_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(2160, "{Name:'minecraft:birch_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(2161, "{Name:'minecraft:birch_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(2162, "{Name:'minecraft:birch_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(2163, "{Name:'minecraft:birch_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(2164, "{Name:'minecraft:birch_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(2165, "{Name:'minecraft:birch_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(2166, "{Name:'minecraft:birch_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(2167, "{Name:'minecraft:birch_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:birch_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(2176, "{Name:'minecraft:jungle_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(2177, "{Name:'minecraft:jungle_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(2178, "{Name:'minecraft:jungle_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(2179, "{Name:'minecraft:jungle_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(2180, "{Name:'minecraft:jungle_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(2181, "{Name:'minecraft:jungle_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(2182, "{Name:'minecraft:jungle_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(2183, "{Name:'minecraft:jungle_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:jungle_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(2192, "{Name:'minecraft:command_block',Properties:{conditional:'false',facing:'down'}}", "{Name:'minecraft:command_block',Properties:{conditional:'false',facing:'down'}}");
|
|
+ register(2193, "{Name:'minecraft:command_block',Properties:{conditional:'false',facing:'up'}}", "{Name:'minecraft:command_block',Properties:{conditional:'false',facing:'up'}}");
|
|
+ register(2194, "{Name:'minecraft:command_block',Properties:{conditional:'false',facing:'north'}}", "{Name:'minecraft:command_block',Properties:{conditional:'false',facing:'north'}}");
|
|
+ register(2195, "{Name:'minecraft:command_block',Properties:{conditional:'false',facing:'south'}}", "{Name:'minecraft:command_block',Properties:{conditional:'false',facing:'south'}}");
|
|
+ register(2196, "{Name:'minecraft:command_block',Properties:{conditional:'false',facing:'west'}}", "{Name:'minecraft:command_block',Properties:{conditional:'false',facing:'west'}}");
|
|
+ register(2197, "{Name:'minecraft:command_block',Properties:{conditional:'false',facing:'east'}}", "{Name:'minecraft:command_block',Properties:{conditional:'false',facing:'east'}}");
|
|
+ register(2200, "{Name:'minecraft:command_block',Properties:{conditional:'true',facing:'down'}}", "{Name:'minecraft:command_block',Properties:{conditional:'true',facing:'down'}}");
|
|
+ register(2201, "{Name:'minecraft:command_block',Properties:{conditional:'true',facing:'up'}}", "{Name:'minecraft:command_block',Properties:{conditional:'true',facing:'up'}}");
|
|
+ register(2202, "{Name:'minecraft:command_block',Properties:{conditional:'true',facing:'north'}}", "{Name:'minecraft:command_block',Properties:{conditional:'true',facing:'north'}}");
|
|
+ register(2203, "{Name:'minecraft:command_block',Properties:{conditional:'true',facing:'south'}}", "{Name:'minecraft:command_block',Properties:{conditional:'true',facing:'south'}}");
|
|
+ register(2204, "{Name:'minecraft:command_block',Properties:{conditional:'true',facing:'west'}}", "{Name:'minecraft:command_block',Properties:{conditional:'true',facing:'west'}}");
|
|
+ register(2205, "{Name:'minecraft:command_block',Properties:{conditional:'true',facing:'east'}}", "{Name:'minecraft:command_block',Properties:{conditional:'true',facing:'east'}}");
|
|
+ register(2208, "{Name:'minecraft:beacon'}", "{Name:'minecraft:beacon'}");
|
|
+ register(2224, "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'false',up:'false',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'false',up:'false',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'false',up:'true',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'false',up:'true',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'true',up:'false',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'true',up:'false',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'true',up:'true',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'true',up:'true',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'false',up:'false',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'false',up:'false',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'false',up:'true',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'false',up:'true',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'true',up:'false',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'true',up:'false',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'true',up:'true',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'true',up:'true',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'false',up:'false',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'false',up:'false',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'false',up:'true',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'false',up:'true',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'true',up:'false',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'true',up:'false',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'true',up:'true',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'true',up:'true',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'false',up:'false',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'false',up:'false',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'false',up:'true',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'false',up:'true',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'true',up:'false',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'true',up:'false',variant:'cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'true',up:'true',variant:'cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'true',up:'true',variant:'cobblestone',west:'true'}}");
|
|
+ register(2225, "{Name:'minecraft:mossy_cobblestone_wall',Properties:{east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'false',up:'false',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'false',up:'false',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'false',up:'true',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'false',up:'true',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'true',up:'false',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'true',up:'false',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'true',up:'true',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'false',south:'true',up:'true',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'false',up:'false',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'false',up:'false',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'false',up:'true',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'false',up:'true',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'true',up:'false',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'true',up:'false',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'true',up:'true',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'false',north:'true',south:'true',up:'true',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'false',up:'false',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'false',up:'false',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'false',up:'true',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'false',up:'true',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'true',up:'false',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'true',up:'false',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'true',up:'true',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'false',south:'true',up:'true',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'false',up:'false',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'false',up:'false',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'false',up:'true',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'false',up:'true',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'true',up:'false',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'true',up:'false',variant:'mossy_cobblestone',west:'true'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'true',up:'true',variant:'mossy_cobblestone',west:'false'}}", "{Name:'minecraft:cobblestone_wall',Properties:{east:'true',north:'true',south:'true',up:'true',variant:'mossy_cobblestone',west:'true'}}");
|
|
+ // There are a few changes made to flower pot here, notably handling how legacy data is handled.
|
|
+ // The TE itself should contain the target item and from there the proper state can be determined. However, there are
|
|
+ // blocks that do not contain a TE. So we need to make sure there is a default to fall on.
|
|
+ // I simply followed the legacy handling from BlockFlowerPot from 1.8.8 to find what legacy data mapped to what.
|
|
+ // It's better than defaulting everything to a cactus.
|
|
+ register(2240, "{Name:'minecraft:flower_pot'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'0'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'0'}}");
|
|
+ register(2241, "{Name:'minecraft:potted_poppy'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'1'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'1'}}");
|
|
+ register(2242, "{Name:'minecraft:potted_dandelion'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'2'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'2'}}");
|
|
+ register(2243, "{Name:'minecraft:potted_oak_sapling'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'3'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'3'}}");
|
|
+ register(2244, "{Name:'minecraft:potted_spruce_sapling'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'4'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'4'}}");
|
|
+ register(2245, "{Name:'minecraft:potted_birch_sapling'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'5'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'5'}}");
|
|
+ register(2246, "{Name:'minecraft:potted_jungle_sapling'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'6'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'6'}}");
|
|
+ register(2247, "{Name:'minecraft:potted_red_mushroom'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'7'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'7'}}");
|
|
+ register(2248, "{Name:'minecraft:potted_brown_mushroom'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'8'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'8'}}");
|
|
+ register(2249, "{Name:'minecraft:potted_cactus'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'9'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'9'}}");
|
|
+ register(2250, "{Name:'minecraft:potted_dead_bush'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'10'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'10'}}");
|
|
+ register(2251, "{Name:'minecraft:potted_fern'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'11'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'11'}}");
|
|
+ register(2252, "{Name:'minecraft:potted_acacia_sapling'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'12'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'12'}}");
|
|
+ register(2253, "{Name:'minecraft:potted_dark_oak_sapling'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'13'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'13'}}");
|
|
+ register(2254, "{Name:'minecraft:flower_pot'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'14'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'14'}}");
|
|
+ register(2255, "{Name:'minecraft:flower_pot'}", "{Name:'minecraft:flower_pot',Properties:{contents:'acacia_sapling',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'allium',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'birch_sapling',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'blue_orchid',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'cactus',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dandelion',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dark_oak_sapling',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'dead_bush',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'empty',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'fern',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'houstonia',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'jungle_sapling',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_brown',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'mushroom_red',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oak_sapling',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'orange_tulip',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'oxeye_daisy',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'pink_tulip',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'red_tulip',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'rose',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'spruce_sapling',legacy_data:'15'}}", "{Name:'minecraft:flower_pot',Properties:{contents:'white_tulip',legacy_data:'15'}}");
|
|
+ register(2256, "{Name:'minecraft:carrots',Properties:{age:'0'}}", "{Name:'minecraft:carrots',Properties:{age:'0'}}");
|
|
+ register(2257, "{Name:'minecraft:carrots',Properties:{age:'1'}}", "{Name:'minecraft:carrots',Properties:{age:'1'}}");
|
|
+ register(2258, "{Name:'minecraft:carrots',Properties:{age:'2'}}", "{Name:'minecraft:carrots',Properties:{age:'2'}}");
|
|
+ register(2259, "{Name:'minecraft:carrots',Properties:{age:'3'}}", "{Name:'minecraft:carrots',Properties:{age:'3'}}");
|
|
+ register(2260, "{Name:'minecraft:carrots',Properties:{age:'4'}}", "{Name:'minecraft:carrots',Properties:{age:'4'}}");
|
|
+ register(2261, "{Name:'minecraft:carrots',Properties:{age:'5'}}", "{Name:'minecraft:carrots',Properties:{age:'5'}}");
|
|
+ register(2262, "{Name:'minecraft:carrots',Properties:{age:'6'}}", "{Name:'minecraft:carrots',Properties:{age:'6'}}");
|
|
+ register(2263, "{Name:'minecraft:carrots',Properties:{age:'7'}}", "{Name:'minecraft:carrots',Properties:{age:'7'}}");
|
|
+ register(2272, "{Name:'minecraft:potatoes',Properties:{age:'0'}}", "{Name:'minecraft:potatoes',Properties:{age:'0'}}");
|
|
+ register(2273, "{Name:'minecraft:potatoes',Properties:{age:'1'}}", "{Name:'minecraft:potatoes',Properties:{age:'1'}}");
|
|
+ register(2274, "{Name:'minecraft:potatoes',Properties:{age:'2'}}", "{Name:'minecraft:potatoes',Properties:{age:'2'}}");
|
|
+ register(2275, "{Name:'minecraft:potatoes',Properties:{age:'3'}}", "{Name:'minecraft:potatoes',Properties:{age:'3'}}");
|
|
+ register(2276, "{Name:'minecraft:potatoes',Properties:{age:'4'}}", "{Name:'minecraft:potatoes',Properties:{age:'4'}}");
|
|
+ register(2277, "{Name:'minecraft:potatoes',Properties:{age:'5'}}", "{Name:'minecraft:potatoes',Properties:{age:'5'}}");
|
|
+ register(2278, "{Name:'minecraft:potatoes',Properties:{age:'6'}}", "{Name:'minecraft:potatoes',Properties:{age:'6'}}");
|
|
+ register(2279, "{Name:'minecraft:potatoes',Properties:{age:'7'}}", "{Name:'minecraft:potatoes',Properties:{age:'7'}}");
|
|
+ register(2288, "{Name:'minecraft:oak_button',Properties:{face:'ceiling',facing:'north',powered:'false'}}", "{Name:'minecraft:wooden_button',Properties:{facing:'down',powered:'false'}}");
|
|
+ register(2289, "{Name:'minecraft:oak_button',Properties:{face:'wall',facing:'east',powered:'false'}}", "{Name:'minecraft:wooden_button',Properties:{facing:'east',powered:'false'}}");
|
|
+ register(2290, "{Name:'minecraft:oak_button',Properties:{face:'wall',facing:'west',powered:'false'}}", "{Name:'minecraft:wooden_button',Properties:{facing:'west',powered:'false'}}");
|
|
+ register(2291, "{Name:'minecraft:oak_button',Properties:{face:'wall',facing:'south',powered:'false'}}", "{Name:'minecraft:wooden_button',Properties:{facing:'south',powered:'false'}}");
|
|
+ register(2292, "{Name:'minecraft:oak_button',Properties:{face:'wall',facing:'north',powered:'false'}}", "{Name:'minecraft:wooden_button',Properties:{facing:'north',powered:'false'}}");
|
|
+ register(2293, "{Name:'minecraft:oak_button',Properties:{face:'floor',facing:'north',powered:'false'}}", "{Name:'minecraft:wooden_button',Properties:{facing:'up',powered:'false'}}");
|
|
+ register(2296, "{Name:'minecraft:oak_button',Properties:{face:'ceiling',facing:'north',powered:'true'}}", "{Name:'minecraft:wooden_button',Properties:{facing:'down',powered:'true'}}");
|
|
+ register(2297, "{Name:'minecraft:oak_button',Properties:{face:'wall',facing:'east',powered:'true'}}", "{Name:'minecraft:wooden_button',Properties:{facing:'east',powered:'true'}}");
|
|
+ register(2298, "{Name:'minecraft:oak_button',Properties:{face:'wall',facing:'west',powered:'true'}}", "{Name:'minecraft:wooden_button',Properties:{facing:'west',powered:'true'}}");
|
|
+ register(2299, "{Name:'minecraft:oak_button',Properties:{face:'wall',facing:'south',powered:'true'}}", "{Name:'minecraft:wooden_button',Properties:{facing:'south',powered:'true'}}");
|
|
+ register(2300, "{Name:'minecraft:oak_button',Properties:{face:'wall',facing:'north',powered:'true'}}", "{Name:'minecraft:wooden_button',Properties:{facing:'north',powered:'true'}}");
|
|
+ register(2301, "{Name:'minecraft:oak_button',Properties:{face:'floor',facing:'north',powered:'true'}}", "{Name:'minecraft:wooden_button',Properties:{facing:'up',powered:'true'}}");
|
|
+ register(2304, "{Name:'%%FILTER_ME%%',Properties:{facing:'down',nodrop:'false'}}", "{Name:'minecraft:skull',Properties:{facing:'down',nodrop:'false'}}");
|
|
+ register(2305, "{Name:'%%FILTER_ME%%',Properties:{facing:'up',nodrop:'false'}}", "{Name:'minecraft:skull',Properties:{facing:'up',nodrop:'false'}}");
|
|
+ register(2306, "{Name:'%%FILTER_ME%%',Properties:{facing:'north',nodrop:'false'}}", "{Name:'minecraft:skull',Properties:{facing:'north',nodrop:'false'}}");
|
|
+ register(2307, "{Name:'%%FILTER_ME%%',Properties:{facing:'south',nodrop:'false'}}", "{Name:'minecraft:skull',Properties:{facing:'south',nodrop:'false'}}");
|
|
+ register(2308, "{Name:'%%FILTER_ME%%',Properties:{facing:'west',nodrop:'false'}}", "{Name:'minecraft:skull',Properties:{facing:'west',nodrop:'false'}}");
|
|
+ register(2309, "{Name:'%%FILTER_ME%%',Properties:{facing:'east',nodrop:'false'}}", "{Name:'minecraft:skull',Properties:{facing:'east',nodrop:'false'}}");
|
|
+ register(2312, "{Name:'%%FILTER_ME%%',Properties:{facing:'down',nodrop:'true'}}", "{Name:'minecraft:skull',Properties:{facing:'down',nodrop:'true'}}");
|
|
+ register(2313, "{Name:'%%FILTER_ME%%',Properties:{facing:'up',nodrop:'true'}}", "{Name:'minecraft:skull',Properties:{facing:'up',nodrop:'true'}}");
|
|
+ register(2314, "{Name:'%%FILTER_ME%%',Properties:{facing:'north',nodrop:'true'}}", "{Name:'minecraft:skull',Properties:{facing:'north',nodrop:'true'}}");
|
|
+ register(2315, "{Name:'%%FILTER_ME%%',Properties:{facing:'south',nodrop:'true'}}", "{Name:'minecraft:skull',Properties:{facing:'south',nodrop:'true'}}");
|
|
+ register(2316, "{Name:'%%FILTER_ME%%',Properties:{facing:'west',nodrop:'true'}}", "{Name:'minecraft:skull',Properties:{facing:'west',nodrop:'true'}}");
|
|
+ register(2317, "{Name:'%%FILTER_ME%%',Properties:{facing:'east',nodrop:'true'}}", "{Name:'minecraft:skull',Properties:{facing:'east',nodrop:'true'}}");
|
|
+ register(2320, "{Name:'minecraft:anvil',Properties:{facing:'south'}}", "{Name:'minecraft:anvil',Properties:{damage:'0',facing:'south'}}");
|
|
+ register(2321, "{Name:'minecraft:anvil',Properties:{facing:'west'}}", "{Name:'minecraft:anvil',Properties:{damage:'0',facing:'west'}}");
|
|
+ register(2322, "{Name:'minecraft:anvil',Properties:{facing:'north'}}", "{Name:'minecraft:anvil',Properties:{damage:'0',facing:'north'}}");
|
|
+ register(2323, "{Name:'minecraft:anvil',Properties:{facing:'east'}}", "{Name:'minecraft:anvil',Properties:{damage:'0',facing:'east'}}");
|
|
+ register(2324, "{Name:'minecraft:chipped_anvil',Properties:{facing:'south'}}", "{Name:'minecraft:anvil',Properties:{damage:'1',facing:'south'}}");
|
|
+ register(2325, "{Name:'minecraft:chipped_anvil',Properties:{facing:'west'}}", "{Name:'minecraft:anvil',Properties:{damage:'1',facing:'west'}}");
|
|
+ register(2326, "{Name:'minecraft:chipped_anvil',Properties:{facing:'north'}}", "{Name:'minecraft:anvil',Properties:{damage:'1',facing:'north'}}");
|
|
+ register(2327, "{Name:'minecraft:chipped_anvil',Properties:{facing:'east'}}", "{Name:'minecraft:anvil',Properties:{damage:'1',facing:'east'}}");
|
|
+ register(2328, "{Name:'minecraft:damaged_anvil',Properties:{facing:'south'}}", "{Name:'minecraft:anvil',Properties:{damage:'2',facing:'south'}}");
|
|
+ register(2329, "{Name:'minecraft:damaged_anvil',Properties:{facing:'west'}}", "{Name:'minecraft:anvil',Properties:{damage:'2',facing:'west'}}");
|
|
+ register(2330, "{Name:'minecraft:damaged_anvil',Properties:{facing:'north'}}", "{Name:'minecraft:anvil',Properties:{damage:'2',facing:'north'}}");
|
|
+ register(2331, "{Name:'minecraft:damaged_anvil',Properties:{facing:'east'}}", "{Name:'minecraft:anvil',Properties:{damage:'2',facing:'east'}}");
|
|
+ register(2338, "{Name:'minecraft:trapped_chest',Properties:{facing:'north',type:'single'}}", "{Name:'minecraft:trapped_chest',Properties:{facing:'north'}}");
|
|
+ register(2339, "{Name:'minecraft:trapped_chest',Properties:{facing:'south',type:'single'}}", "{Name:'minecraft:trapped_chest',Properties:{facing:'south'}}");
|
|
+ register(2340, "{Name:'minecraft:trapped_chest',Properties:{facing:'west',type:'single'}}", "{Name:'minecraft:trapped_chest',Properties:{facing:'west'}}");
|
|
+ register(2341, "{Name:'minecraft:trapped_chest',Properties:{facing:'east',type:'single'}}", "{Name:'minecraft:trapped_chest',Properties:{facing:'east'}}");
|
|
+ register(2352, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'0'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'0'}}");
|
|
+ register(2353, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'1'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'1'}}");
|
|
+ register(2354, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'2'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'2'}}");
|
|
+ register(2355, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'3'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'3'}}");
|
|
+ register(2356, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'4'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'4'}}");
|
|
+ register(2357, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'5'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'5'}}");
|
|
+ register(2358, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'6'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'6'}}");
|
|
+ register(2359, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'7'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'7'}}");
|
|
+ register(2360, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'8'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'8'}}");
|
|
+ register(2361, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'9'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'9'}}");
|
|
+ register(2362, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'10'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'10'}}");
|
|
+ register(2363, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'11'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'11'}}");
|
|
+ register(2364, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'12'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'12'}}");
|
|
+ register(2365, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'13'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'13'}}");
|
|
+ register(2366, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'14'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'14'}}");
|
|
+ register(2367, "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'15'}}", "{Name:'minecraft:light_weighted_pressure_plate',Properties:{power:'15'}}");
|
|
+ register(2368, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'0'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'0'}}");
|
|
+ register(2369, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'1'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'1'}}");
|
|
+ register(2370, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'2'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'2'}}");
|
|
+ register(2371, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'3'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'3'}}");
|
|
+ register(2372, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'4'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'4'}}");
|
|
+ register(2373, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'5'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'5'}}");
|
|
+ register(2374, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'6'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'6'}}");
|
|
+ register(2375, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'7'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'7'}}");
|
|
+ register(2376, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'8'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'8'}}");
|
|
+ register(2377, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'9'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'9'}}");
|
|
+ register(2378, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'10'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'10'}}");
|
|
+ register(2379, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'11'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'11'}}");
|
|
+ register(2380, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'12'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'12'}}");
|
|
+ register(2381, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'13'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'13'}}");
|
|
+ register(2382, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'14'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'14'}}");
|
|
+ register(2383, "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'15'}}", "{Name:'minecraft:heavy_weighted_pressure_plate',Properties:{power:'15'}}");
|
|
+ register(2384, "{Name:'minecraft:comparator',Properties:{facing:'south',mode:'compare',powered:'false'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'south',mode:'compare',powered:'false'}}");
|
|
+ register(2385, "{Name:'minecraft:comparator',Properties:{facing:'west',mode:'compare',powered:'false'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'west',mode:'compare',powered:'false'}}");
|
|
+ register(2386, "{Name:'minecraft:comparator',Properties:{facing:'north',mode:'compare',powered:'false'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'north',mode:'compare',powered:'false'}}");
|
|
+ register(2387, "{Name:'minecraft:comparator',Properties:{facing:'east',mode:'compare',powered:'false'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'east',mode:'compare',powered:'false'}}");
|
|
+ register(2388, "{Name:'minecraft:comparator',Properties:{facing:'south',mode:'subtract',powered:'false'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'south',mode:'subtract',powered:'false'}}");
|
|
+ register(2389, "{Name:'minecraft:comparator',Properties:{facing:'west',mode:'subtract',powered:'false'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'west',mode:'subtract',powered:'false'}}");
|
|
+ register(2390, "{Name:'minecraft:comparator',Properties:{facing:'north',mode:'subtract',powered:'false'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'north',mode:'subtract',powered:'false'}}");
|
|
+ register(2391, "{Name:'minecraft:comparator',Properties:{facing:'east',mode:'subtract',powered:'false'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'east',mode:'subtract',powered:'false'}}");
|
|
+ register(2392, "{Name:'minecraft:comparator',Properties:{facing:'south',mode:'compare',powered:'true'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'south',mode:'compare',powered:'true'}}");
|
|
+ register(2393, "{Name:'minecraft:comparator',Properties:{facing:'west',mode:'compare',powered:'true'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'west',mode:'compare',powered:'true'}}");
|
|
+ register(2394, "{Name:'minecraft:comparator',Properties:{facing:'north',mode:'compare',powered:'true'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'north',mode:'compare',powered:'true'}}");
|
|
+ register(2395, "{Name:'minecraft:comparator',Properties:{facing:'east',mode:'compare',powered:'true'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'east',mode:'compare',powered:'true'}}");
|
|
+ register(2396, "{Name:'minecraft:comparator',Properties:{facing:'south',mode:'subtract',powered:'true'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'south',mode:'subtract',powered:'true'}}");
|
|
+ register(2397, "{Name:'minecraft:comparator',Properties:{facing:'west',mode:'subtract',powered:'true'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'west',mode:'subtract',powered:'true'}}");
|
|
+ register(2398, "{Name:'minecraft:comparator',Properties:{facing:'north',mode:'subtract',powered:'true'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'north',mode:'subtract',powered:'true'}}");
|
|
+ register(2399, "{Name:'minecraft:comparator',Properties:{facing:'east',mode:'subtract',powered:'true'}}", "{Name:'minecraft:unpowered_comparator',Properties:{facing:'east',mode:'subtract',powered:'true'}}");
|
|
+ register(2400, "{Name:'minecraft:comparator',Properties:{facing:'south',mode:'compare',powered:'false'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'south',mode:'compare',powered:'false'}}");
|
|
+ register(2401, "{Name:'minecraft:comparator',Properties:{facing:'west',mode:'compare',powered:'false'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'west',mode:'compare',powered:'false'}}");
|
|
+ register(2402, "{Name:'minecraft:comparator',Properties:{facing:'north',mode:'compare',powered:'false'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'north',mode:'compare',powered:'false'}}");
|
|
+ register(2403, "{Name:'minecraft:comparator',Properties:{facing:'east',mode:'compare',powered:'false'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'east',mode:'compare',powered:'false'}}");
|
|
+ register(2404, "{Name:'minecraft:comparator',Properties:{facing:'south',mode:'subtract',powered:'false'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'south',mode:'subtract',powered:'false'}}");
|
|
+ register(2405, "{Name:'minecraft:comparator',Properties:{facing:'west',mode:'subtract',powered:'false'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'west',mode:'subtract',powered:'false'}}");
|
|
+ register(2406, "{Name:'minecraft:comparator',Properties:{facing:'north',mode:'subtract',powered:'false'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'north',mode:'subtract',powered:'false'}}");
|
|
+ register(2407, "{Name:'minecraft:comparator',Properties:{facing:'east',mode:'subtract',powered:'false'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'east',mode:'subtract',powered:'false'}}");
|
|
+ register(2408, "{Name:'minecraft:comparator',Properties:{facing:'south',mode:'compare',powered:'true'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'south',mode:'compare',powered:'true'}}");
|
|
+ register(2409, "{Name:'minecraft:comparator',Properties:{facing:'west',mode:'compare',powered:'true'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'west',mode:'compare',powered:'true'}}");
|
|
+ register(2410, "{Name:'minecraft:comparator',Properties:{facing:'north',mode:'compare',powered:'true'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'north',mode:'compare',powered:'true'}}");
|
|
+ register(2411, "{Name:'minecraft:comparator',Properties:{facing:'east',mode:'compare',powered:'true'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'east',mode:'compare',powered:'true'}}");
|
|
+ register(2412, "{Name:'minecraft:comparator',Properties:{facing:'south',mode:'subtract',powered:'true'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'south',mode:'subtract',powered:'true'}}");
|
|
+ register(2413, "{Name:'minecraft:comparator',Properties:{facing:'west',mode:'subtract',powered:'true'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'west',mode:'subtract',powered:'true'}}");
|
|
+ register(2414, "{Name:'minecraft:comparator',Properties:{facing:'north',mode:'subtract',powered:'true'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'north',mode:'subtract',powered:'true'}}");
|
|
+ register(2415, "{Name:'minecraft:comparator',Properties:{facing:'east',mode:'subtract',powered:'true'}}", "{Name:'minecraft:powered_comparator',Properties:{facing:'east',mode:'subtract',powered:'true'}}");
|
|
+ register(2416, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'0'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'0'}}");
|
|
+ register(2417, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'1'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'1'}}");
|
|
+ register(2418, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'2'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'2'}}");
|
|
+ register(2419, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'3'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'3'}}");
|
|
+ register(2420, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'4'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'4'}}");
|
|
+ register(2421, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'5'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'5'}}");
|
|
+ register(2422, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'6'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'6'}}");
|
|
+ register(2423, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'7'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'7'}}");
|
|
+ register(2424, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'8'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'8'}}");
|
|
+ register(2425, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'9'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'9'}}");
|
|
+ register(2426, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'10'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'10'}}");
|
|
+ register(2427, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'11'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'11'}}");
|
|
+ register(2428, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'12'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'12'}}");
|
|
+ register(2429, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'13'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'13'}}");
|
|
+ register(2430, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'14'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'14'}}");
|
|
+ register(2431, "{Name:'minecraft:daylight_detector',Properties:{inverted:'false',power:'15'}}", "{Name:'minecraft:daylight_detector',Properties:{power:'15'}}");
|
|
+ register(2432, "{Name:'minecraft:redstone_block'}", "{Name:'minecraft:redstone_block'}");
|
|
+ register(2448, "{Name:'minecraft:nether_quartz_ore'}", "{Name:'minecraft:quartz_ore'}");
|
|
+ register(2464, "{Name:'minecraft:hopper',Properties:{enabled:'true',facing:'down'}}", "{Name:'minecraft:hopper',Properties:{enabled:'true',facing:'down'}}");
|
|
+ register(2466, "{Name:'minecraft:hopper',Properties:{enabled:'true',facing:'north'}}", "{Name:'minecraft:hopper',Properties:{enabled:'true',facing:'north'}}");
|
|
+ register(2467, "{Name:'minecraft:hopper',Properties:{enabled:'true',facing:'south'}}", "{Name:'minecraft:hopper',Properties:{enabled:'true',facing:'south'}}");
|
|
+ register(2468, "{Name:'minecraft:hopper',Properties:{enabled:'true',facing:'west'}}", "{Name:'minecraft:hopper',Properties:{enabled:'true',facing:'west'}}");
|
|
+ register(2469, "{Name:'minecraft:hopper',Properties:{enabled:'true',facing:'east'}}", "{Name:'minecraft:hopper',Properties:{enabled:'true',facing:'east'}}");
|
|
+ register(2472, "{Name:'minecraft:hopper',Properties:{enabled:'false',facing:'down'}}", "{Name:'minecraft:hopper',Properties:{enabled:'false',facing:'down'}}");
|
|
+ register(2474, "{Name:'minecraft:hopper',Properties:{enabled:'false',facing:'north'}}", "{Name:'minecraft:hopper',Properties:{enabled:'false',facing:'north'}}");
|
|
+ register(2475, "{Name:'minecraft:hopper',Properties:{enabled:'false',facing:'south'}}", "{Name:'minecraft:hopper',Properties:{enabled:'false',facing:'south'}}");
|
|
+ register(2476, "{Name:'minecraft:hopper',Properties:{enabled:'false',facing:'west'}}", "{Name:'minecraft:hopper',Properties:{enabled:'false',facing:'west'}}");
|
|
+ register(2477, "{Name:'minecraft:hopper',Properties:{enabled:'false',facing:'east'}}", "{Name:'minecraft:hopper',Properties:{enabled:'false',facing:'east'}}");
|
|
+ register(2480, "{Name:'minecraft:quartz_block'}", "{Name:'minecraft:quartz_block',Properties:{variant:'default'}}");
|
|
+ register(2481, "{Name:'minecraft:chiseled_quartz_block'}", "{Name:'minecraft:quartz_block',Properties:{variant:'chiseled'}}");
|
|
+ register(2482, "{Name:'minecraft:quartz_pillar',Properties:{axis:'y'}}", "{Name:'minecraft:quartz_block',Properties:{variant:'lines_y'}}");
|
|
+ register(2483, "{Name:'minecraft:quartz_pillar',Properties:{axis:'x'}}", "{Name:'minecraft:quartz_block',Properties:{variant:'lines_x'}}");
|
|
+ register(2484, "{Name:'minecraft:quartz_pillar',Properties:{axis:'z'}}", "{Name:'minecraft:quartz_block',Properties:{variant:'lines_z'}}");
|
|
+ register(2496, "{Name:'minecraft:quartz_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(2497, "{Name:'minecraft:quartz_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(2498, "{Name:'minecraft:quartz_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(2499, "{Name:'minecraft:quartz_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(2500, "{Name:'minecraft:quartz_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(2501, "{Name:'minecraft:quartz_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(2502, "{Name:'minecraft:quartz_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(2503, "{Name:'minecraft:quartz_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:quartz_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(2512, "{Name:'minecraft:activator_rail',Properties:{powered:'false',shape:'north_south'}}", "{Name:'minecraft:activator_rail',Properties:{powered:'false',shape:'north_south'}}");
|
|
+ register(2513, "{Name:'minecraft:activator_rail',Properties:{powered:'false',shape:'east_west'}}", "{Name:'minecraft:activator_rail',Properties:{powered:'false',shape:'east_west'}}");
|
|
+ register(2514, "{Name:'minecraft:activator_rail',Properties:{powered:'false',shape:'ascending_east'}}", "{Name:'minecraft:activator_rail',Properties:{powered:'false',shape:'ascending_east'}}");
|
|
+ register(2515, "{Name:'minecraft:activator_rail',Properties:{powered:'false',shape:'ascending_west'}}", "{Name:'minecraft:activator_rail',Properties:{powered:'false',shape:'ascending_west'}}");
|
|
+ register(2516, "{Name:'minecraft:activator_rail',Properties:{powered:'false',shape:'ascending_north'}}", "{Name:'minecraft:activator_rail',Properties:{powered:'false',shape:'ascending_north'}}");
|
|
+ register(2517, "{Name:'minecraft:activator_rail',Properties:{powered:'false',shape:'ascending_south'}}", "{Name:'minecraft:activator_rail',Properties:{powered:'false',shape:'ascending_south'}}");
|
|
+ register(2520, "{Name:'minecraft:activator_rail',Properties:{powered:'true',shape:'north_south'}}", "{Name:'minecraft:activator_rail',Properties:{powered:'true',shape:'north_south'}}");
|
|
+ register(2521, "{Name:'minecraft:activator_rail',Properties:{powered:'true',shape:'east_west'}}", "{Name:'minecraft:activator_rail',Properties:{powered:'true',shape:'east_west'}}");
|
|
+ register(2522, "{Name:'minecraft:activator_rail',Properties:{powered:'true',shape:'ascending_east'}}", "{Name:'minecraft:activator_rail',Properties:{powered:'true',shape:'ascending_east'}}");
|
|
+ register(2523, "{Name:'minecraft:activator_rail',Properties:{powered:'true',shape:'ascending_west'}}", "{Name:'minecraft:activator_rail',Properties:{powered:'true',shape:'ascending_west'}}");
|
|
+ register(2524, "{Name:'minecraft:activator_rail',Properties:{powered:'true',shape:'ascending_north'}}", "{Name:'minecraft:activator_rail',Properties:{powered:'true',shape:'ascending_north'}}");
|
|
+ register(2525, "{Name:'minecraft:activator_rail',Properties:{powered:'true',shape:'ascending_south'}}", "{Name:'minecraft:activator_rail',Properties:{powered:'true',shape:'ascending_south'}}");
|
|
+ register(2528, "{Name:'minecraft:dropper',Properties:{facing:'down',triggered:'false'}}", "{Name:'minecraft:dropper',Properties:{facing:'down',triggered:'false'}}");
|
|
+ register(2529, "{Name:'minecraft:dropper',Properties:{facing:'up',triggered:'false'}}", "{Name:'minecraft:dropper',Properties:{facing:'up',triggered:'false'}}");
|
|
+ register(2530, "{Name:'minecraft:dropper',Properties:{facing:'north',triggered:'false'}}", "{Name:'minecraft:dropper',Properties:{facing:'north',triggered:'false'}}");
|
|
+ register(2531, "{Name:'minecraft:dropper',Properties:{facing:'south',triggered:'false'}}", "{Name:'minecraft:dropper',Properties:{facing:'south',triggered:'false'}}");
|
|
+ register(2532, "{Name:'minecraft:dropper',Properties:{facing:'west',triggered:'false'}}", "{Name:'minecraft:dropper',Properties:{facing:'west',triggered:'false'}}");
|
|
+ register(2533, "{Name:'minecraft:dropper',Properties:{facing:'east',triggered:'false'}}", "{Name:'minecraft:dropper',Properties:{facing:'east',triggered:'false'}}");
|
|
+ register(2536, "{Name:'minecraft:dropper',Properties:{facing:'down',triggered:'true'}}", "{Name:'minecraft:dropper',Properties:{facing:'down',triggered:'true'}}");
|
|
+ register(2537, "{Name:'minecraft:dropper',Properties:{facing:'up',triggered:'true'}}", "{Name:'minecraft:dropper',Properties:{facing:'up',triggered:'true'}}");
|
|
+ register(2538, "{Name:'minecraft:dropper',Properties:{facing:'north',triggered:'true'}}", "{Name:'minecraft:dropper',Properties:{facing:'north',triggered:'true'}}");
|
|
+ register(2539, "{Name:'minecraft:dropper',Properties:{facing:'south',triggered:'true'}}", "{Name:'minecraft:dropper',Properties:{facing:'south',triggered:'true'}}");
|
|
+ register(2540, "{Name:'minecraft:dropper',Properties:{facing:'west',triggered:'true'}}", "{Name:'minecraft:dropper',Properties:{facing:'west',triggered:'true'}}");
|
|
+ register(2541, "{Name:'minecraft:dropper',Properties:{facing:'east',triggered:'true'}}", "{Name:'minecraft:dropper',Properties:{facing:'east',triggered:'true'}}");
|
|
+ register(2544, "{Name:'minecraft:white_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'white'}}");
|
|
+ register(2545, "{Name:'minecraft:orange_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'orange'}}");
|
|
+ register(2546, "{Name:'minecraft:magenta_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'magenta'}}");
|
|
+ register(2547, "{Name:'minecraft:light_blue_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'light_blue'}}");
|
|
+ register(2548, "{Name:'minecraft:yellow_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'yellow'}}");
|
|
+ register(2549, "{Name:'minecraft:lime_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'lime'}}");
|
|
+ register(2550, "{Name:'minecraft:pink_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'pink'}}");
|
|
+ register(2551, "{Name:'minecraft:gray_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'gray'}}");
|
|
+ register(2552, "{Name:'minecraft:light_gray_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'silver'}}");
|
|
+ register(2553, "{Name:'minecraft:cyan_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'cyan'}}");
|
|
+ register(2554, "{Name:'minecraft:purple_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'purple'}}");
|
|
+ register(2555, "{Name:'minecraft:blue_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'blue'}}");
|
|
+ register(2556, "{Name:'minecraft:brown_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'brown'}}");
|
|
+ register(2557, "{Name:'minecraft:green_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'green'}}");
|
|
+ register(2558, "{Name:'minecraft:red_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'red'}}");
|
|
+ register(2559, "{Name:'minecraft:black_terracotta'}", "{Name:'minecraft:stained_hardened_clay',Properties:{color:'black'}}");
|
|
+ register(2560, "{Name:'minecraft:white_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'white',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2561, "{Name:'minecraft:orange_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'orange',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2562, "{Name:'minecraft:magenta_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'magenta',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2563, "{Name:'minecraft:light_blue_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'light_blue',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2564, "{Name:'minecraft:yellow_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'yellow',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2565, "{Name:'minecraft:lime_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'lime',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2566, "{Name:'minecraft:pink_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'pink',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2567, "{Name:'minecraft:gray_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'gray',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2568, "{Name:'minecraft:light_gray_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'silver',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2569, "{Name:'minecraft:cyan_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'cyan',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2570, "{Name:'minecraft:purple_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'purple',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2571, "{Name:'minecraft:blue_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'blue',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2572, "{Name:'minecraft:brown_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'brown',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2573, "{Name:'minecraft:green_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'green',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2574, "{Name:'minecraft:red_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'red',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2575, "{Name:'minecraft:black_stained_glass_pane',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:stained_glass_pane',Properties:{color:'black',east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(2576, "{Name:'minecraft:acacia_leaves',Properties:{check_decay:'false',decayable:'true'}}", "{Name:'minecraft:leaves2',Properties:{check_decay:'false',decayable:'true',variant:'acacia'}}");
|
|
+ register(2577, "{Name:'minecraft:dark_oak_leaves',Properties:{check_decay:'false',decayable:'true'}}", "{Name:'minecraft:leaves2',Properties:{check_decay:'false',decayable:'true',variant:'dark_oak'}}");
|
|
+ register(2580, "{Name:'minecraft:acacia_leaves',Properties:{check_decay:'false',decayable:'false'}}", "{Name:'minecraft:leaves2',Properties:{check_decay:'false',decayable:'false',variant:'acacia'}}");
|
|
+ register(2581, "{Name:'minecraft:dark_oak_leaves',Properties:{check_decay:'false',decayable:'false'}}", "{Name:'minecraft:leaves2',Properties:{check_decay:'false',decayable:'false',variant:'dark_oak'}}");
|
|
+ register(2584, "{Name:'minecraft:acacia_leaves',Properties:{check_decay:'true',decayable:'true'}}", "{Name:'minecraft:leaves2',Properties:{check_decay:'true',decayable:'true',variant:'acacia'}}");
|
|
+ register(2585, "{Name:'minecraft:dark_oak_leaves',Properties:{check_decay:'true',decayable:'true'}}", "{Name:'minecraft:leaves2',Properties:{check_decay:'true',decayable:'true',variant:'dark_oak'}}");
|
|
+ register(2588, "{Name:'minecraft:acacia_leaves',Properties:{check_decay:'true',decayable:'false'}}", "{Name:'minecraft:leaves2',Properties:{check_decay:'true',decayable:'false',variant:'acacia'}}");
|
|
+ register(2589, "{Name:'minecraft:dark_oak_leaves',Properties:{check_decay:'true',decayable:'false'}}", "{Name:'minecraft:leaves2',Properties:{check_decay:'true',decayable:'false',variant:'dark_oak'}}");
|
|
+ register(2592, "{Name:'minecraft:acacia_log',Properties:{axis:'y'}}", "{Name:'minecraft:log2',Properties:{axis:'y',variant:'acacia'}}");
|
|
+ register(2593, "{Name:'minecraft:dark_oak_log',Properties:{axis:'y'}}", "{Name:'minecraft:log2',Properties:{axis:'y',variant:'dark_oak'}}");
|
|
+ register(2596, "{Name:'minecraft:acacia_log',Properties:{axis:'x'}}", "{Name:'minecraft:log2',Properties:{axis:'x',variant:'acacia'}}");
|
|
+ register(2597, "{Name:'minecraft:dark_oak_log',Properties:{axis:'x'}}", "{Name:'minecraft:log2',Properties:{axis:'x',variant:'dark_oak'}}");
|
|
+ register(2600, "{Name:'minecraft:acacia_log',Properties:{axis:'z'}}", "{Name:'minecraft:log2',Properties:{axis:'z',variant:'acacia'}}");
|
|
+ register(2601, "{Name:'minecraft:dark_oak_log',Properties:{axis:'z'}}", "{Name:'minecraft:log2',Properties:{axis:'z',variant:'dark_oak'}}");
|
|
+ register(2604, "{Name:'minecraft:acacia_bark'}", "{Name:'minecraft:log2',Properties:{axis:'none',variant:'acacia'}}");
|
|
+ register(2605, "{Name:'minecraft:dark_oak_bark'}", "{Name:'minecraft:log2',Properties:{axis:'none',variant:'dark_oak'}}");
|
|
+ register(2608, "{Name:'minecraft:acacia_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(2609, "{Name:'minecraft:acacia_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(2610, "{Name:'minecraft:acacia_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(2611, "{Name:'minecraft:acacia_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(2612, "{Name:'minecraft:acacia_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(2613, "{Name:'minecraft:acacia_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(2614, "{Name:'minecraft:acacia_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(2615, "{Name:'minecraft:acacia_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:acacia_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(2624, "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(2625, "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(2626, "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(2627, "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(2628, "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(2629, "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(2630, "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(2631, "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:dark_oak_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(2640, "{Name:'minecraft:slime_block'}", "{Name:'minecraft:slime'}");
|
|
+ register(2656, "{Name:'minecraft:barrier'}", "{Name:'minecraft:barrier'}");
|
|
+ register(2672, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'north',half:'bottom',open:'false'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'north',half:'bottom',open:'false'}}");
|
|
+ register(2673, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'south',half:'bottom',open:'false'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'south',half:'bottom',open:'false'}}");
|
|
+ register(2674, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'west',half:'bottom',open:'false'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'west',half:'bottom',open:'false'}}");
|
|
+ register(2675, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'east',half:'bottom',open:'false'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'east',half:'bottom',open:'false'}}");
|
|
+ register(2676, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'north',half:'bottom',open:'true'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'north',half:'bottom',open:'true'}}");
|
|
+ register(2677, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'south',half:'bottom',open:'true'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'south',half:'bottom',open:'true'}}");
|
|
+ register(2678, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'west',half:'bottom',open:'true'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'west',half:'bottom',open:'true'}}");
|
|
+ register(2679, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'east',half:'bottom',open:'true'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'east',half:'bottom',open:'true'}}");
|
|
+ register(2680, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'north',half:'top',open:'false'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'north',half:'top',open:'false'}}");
|
|
+ register(2681, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'south',half:'top',open:'false'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'south',half:'top',open:'false'}}");
|
|
+ register(2682, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'west',half:'top',open:'false'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'west',half:'top',open:'false'}}");
|
|
+ register(2683, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'east',half:'top',open:'false'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'east',half:'top',open:'false'}}");
|
|
+ register(2684, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'north',half:'top',open:'true'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'north',half:'top',open:'true'}}");
|
|
+ register(2685, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'south',half:'top',open:'true'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'south',half:'top',open:'true'}}");
|
|
+ register(2686, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'west',half:'top',open:'true'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'west',half:'top',open:'true'}}");
|
|
+ register(2687, "{Name:'minecraft:iron_trapdoor',Properties:{facing:'east',half:'top',open:'true'}}", "{Name:'minecraft:iron_trapdoor',Properties:{facing:'east',half:'top',open:'true'}}");
|
|
+ register(2688, "{Name:'minecraft:prismarine'}", "{Name:'minecraft:prismarine',Properties:{variant:'prismarine'}}");
|
|
+ register(2689, "{Name:'minecraft:prismarine_bricks'}", "{Name:'minecraft:prismarine',Properties:{variant:'prismarine_bricks'}}");
|
|
+ register(2690, "{Name:'minecraft:dark_prismarine'}", "{Name:'minecraft:prismarine',Properties:{variant:'dark_prismarine'}}");
|
|
+ register(2704, "{Name:'minecraft:sea_lantern'}", "{Name:'minecraft:sea_lantern'}");
|
|
+ register(2720, "{Name:'minecraft:hay_block',Properties:{axis:'y'}}", "{Name:'minecraft:hay_block',Properties:{axis:'y'}}");
|
|
+ register(2724, "{Name:'minecraft:hay_block',Properties:{axis:'x'}}", "{Name:'minecraft:hay_block',Properties:{axis:'x'}}");
|
|
+ register(2728, "{Name:'minecraft:hay_block',Properties:{axis:'z'}}", "{Name:'minecraft:hay_block',Properties:{axis:'z'}}");
|
|
+ register(2736, "{Name:'minecraft:white_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'white'}}");
|
|
+ register(2737, "{Name:'minecraft:orange_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'orange'}}");
|
|
+ register(2738, "{Name:'minecraft:magenta_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'magenta'}}");
|
|
+ register(2739, "{Name:'minecraft:light_blue_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'light_blue'}}");
|
|
+ register(2740, "{Name:'minecraft:yellow_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'yellow'}}");
|
|
+ register(2741, "{Name:'minecraft:lime_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'lime'}}");
|
|
+ register(2742, "{Name:'minecraft:pink_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'pink'}}");
|
|
+ register(2743, "{Name:'minecraft:gray_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'gray'}}");
|
|
+ register(2744, "{Name:'minecraft:light_gray_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'silver'}}");
|
|
+ register(2745, "{Name:'minecraft:cyan_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'cyan'}}");
|
|
+ register(2746, "{Name:'minecraft:purple_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'purple'}}");
|
|
+ register(2747, "{Name:'minecraft:blue_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'blue'}}");
|
|
+ register(2748, "{Name:'minecraft:brown_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'brown'}}");
|
|
+ register(2749, "{Name:'minecraft:green_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'green'}}");
|
|
+ register(2750, "{Name:'minecraft:red_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'red'}}");
|
|
+ register(2751, "{Name:'minecraft:black_carpet'}", "{Name:'minecraft:carpet',Properties:{color:'black'}}");
|
|
+ register(2752, "{Name:'minecraft:terracotta'}", "{Name:'minecraft:hardened_clay'}");
|
|
+ register(2768, "{Name:'minecraft:coal_block'}", "{Name:'minecraft:coal_block'}");
|
|
+ register(2784, "{Name:'minecraft:packed_ice'}", "{Name:'minecraft:packed_ice'}");
|
|
+ register(2800, "{Name:'minecraft:sunflower',Properties:{half:'lower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'east',half:'lower',variant:'sunflower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'north',half:'lower',variant:'sunflower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'south',half:'lower',variant:'sunflower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'west',half:'lower',variant:'sunflower'}}");
|
|
+ register(2801, "{Name:'minecraft:lilac',Properties:{half:'lower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'east',half:'lower',variant:'syringa'}}", "{Name:'minecraft:double_plant',Properties:{facing:'north',half:'lower',variant:'syringa'}}", "{Name:'minecraft:double_plant',Properties:{facing:'south',half:'lower',variant:'syringa'}}", "{Name:'minecraft:double_plant',Properties:{facing:'west',half:'lower',variant:'syringa'}}");
|
|
+ register(2802, "{Name:'minecraft:tall_grass',Properties:{half:'lower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'east',half:'lower',variant:'double_grass'}}", "{Name:'minecraft:double_plant',Properties:{facing:'north',half:'lower',variant:'double_grass'}}", "{Name:'minecraft:double_plant',Properties:{facing:'south',half:'lower',variant:'double_grass'}}", "{Name:'minecraft:double_plant',Properties:{facing:'west',half:'lower',variant:'double_grass'}}");
|
|
+ register(2803, "{Name:'minecraft:large_fern',Properties:{half:'lower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'east',half:'lower',variant:'double_fern'}}", "{Name:'minecraft:double_plant',Properties:{facing:'north',half:'lower',variant:'double_fern'}}", "{Name:'minecraft:double_plant',Properties:{facing:'south',half:'lower',variant:'double_fern'}}", "{Name:'minecraft:double_plant',Properties:{facing:'west',half:'lower',variant:'double_fern'}}");
|
|
+ register(2804, "{Name:'minecraft:rose_bush',Properties:{half:'lower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'east',half:'lower',variant:'double_rose'}}", "{Name:'minecraft:double_plant',Properties:{facing:'north',half:'lower',variant:'double_rose'}}", "{Name:'minecraft:double_plant',Properties:{facing:'south',half:'lower',variant:'double_rose'}}", "{Name:'minecraft:double_plant',Properties:{facing:'west',half:'lower',variant:'double_rose'}}");
|
|
+ register(2805, "{Name:'minecraft:peony',Properties:{half:'lower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'east',half:'lower',variant:'paeonia'}}", "{Name:'minecraft:double_plant',Properties:{facing:'north',half:'lower',variant:'paeonia'}}", "{Name:'minecraft:double_plant',Properties:{facing:'south',half:'lower',variant:'paeonia'}}", "{Name:'minecraft:double_plant',Properties:{facing:'west',half:'lower',variant:'paeonia'}}");
|
|
+ register(2808, "{Name:'minecraft:peony',Properties:{half:'upper'}}", "{Name:'minecraft:double_plant',Properties:{facing:'south',half:'upper',variant:'double_fern'}}", "{Name:'minecraft:double_plant',Properties:{facing:'south',half:'upper',variant:'double_grass'}}", "{Name:'minecraft:double_plant',Properties:{facing:'south',half:'upper',variant:'double_rose'}}", "{Name:'minecraft:double_plant',Properties:{facing:'south',half:'upper',variant:'paeonia'}}", "{Name:'minecraft:double_plant',Properties:{facing:'south',half:'upper',variant:'sunflower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'south',half:'upper',variant:'syringa'}}");
|
|
+ register(2809, "{Name:'minecraft:peony',Properties:{half:'upper'}}", "{Name:'minecraft:double_plant',Properties:{facing:'west',half:'upper',variant:'double_fern'}}", "{Name:'minecraft:double_plant',Properties:{facing:'west',half:'upper',variant:'double_grass'}}", "{Name:'minecraft:double_plant',Properties:{facing:'west',half:'upper',variant:'double_rose'}}", "{Name:'minecraft:double_plant',Properties:{facing:'west',half:'upper',variant:'paeonia'}}", "{Name:'minecraft:double_plant',Properties:{facing:'west',half:'upper',variant:'sunflower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'west',half:'upper',variant:'syringa'}}");
|
|
+ register(2810, "{Name:'minecraft:peony',Properties:{half:'upper'}}", "{Name:'minecraft:double_plant',Properties:{facing:'north',half:'upper',variant:'double_fern'}}", "{Name:'minecraft:double_plant',Properties:{facing:'north',half:'upper',variant:'double_grass'}}", "{Name:'minecraft:double_plant',Properties:{facing:'north',half:'upper',variant:'double_rose'}}", "{Name:'minecraft:double_plant',Properties:{facing:'north',half:'upper',variant:'paeonia'}}", "{Name:'minecraft:double_plant',Properties:{facing:'north',half:'upper',variant:'sunflower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'north',half:'upper',variant:'syringa'}}");
|
|
+ register(2811, "{Name:'minecraft:peony',Properties:{half:'upper'}}", "{Name:'minecraft:double_plant',Properties:{facing:'east',half:'upper',variant:'double_fern'}}", "{Name:'minecraft:double_plant',Properties:{facing:'east',half:'upper',variant:'double_grass'}}", "{Name:'minecraft:double_plant',Properties:{facing:'east',half:'upper',variant:'double_rose'}}", "{Name:'minecraft:double_plant',Properties:{facing:'east',half:'upper',variant:'paeonia'}}", "{Name:'minecraft:double_plant',Properties:{facing:'east',half:'upper',variant:'sunflower'}}", "{Name:'minecraft:double_plant',Properties:{facing:'east',half:'upper',variant:'syringa'}}");
|
|
+ register(2816, "{Name:'minecraft:white_banner',Properties:{rotation:'0'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'0'}}");
|
|
+ register(2817, "{Name:'minecraft:white_banner',Properties:{rotation:'1'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'1'}}");
|
|
+ register(2818, "{Name:'minecraft:white_banner',Properties:{rotation:'2'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'2'}}");
|
|
+ register(2819, "{Name:'minecraft:white_banner',Properties:{rotation:'3'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'3'}}");
|
|
+ register(2820, "{Name:'minecraft:white_banner',Properties:{rotation:'4'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'4'}}");
|
|
+ register(2821, "{Name:'minecraft:white_banner',Properties:{rotation:'5'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'5'}}");
|
|
+ register(2822, "{Name:'minecraft:white_banner',Properties:{rotation:'6'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'6'}}");
|
|
+ register(2823, "{Name:'minecraft:white_banner',Properties:{rotation:'7'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'7'}}");
|
|
+ register(2824, "{Name:'minecraft:white_banner',Properties:{rotation:'8'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'8'}}");
|
|
+ register(2825, "{Name:'minecraft:white_banner',Properties:{rotation:'9'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'9'}}");
|
|
+ register(2826, "{Name:'minecraft:white_banner',Properties:{rotation:'10'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'10'}}");
|
|
+ register(2827, "{Name:'minecraft:white_banner',Properties:{rotation:'11'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'11'}}");
|
|
+ register(2828, "{Name:'minecraft:white_banner',Properties:{rotation:'12'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'12'}}");
|
|
+ register(2829, "{Name:'minecraft:white_banner',Properties:{rotation:'13'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'13'}}");
|
|
+ register(2830, "{Name:'minecraft:white_banner',Properties:{rotation:'14'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'14'}}");
|
|
+ register(2831, "{Name:'minecraft:white_banner',Properties:{rotation:'15'}}", "{Name:'minecraft:standing_banner',Properties:{rotation:'15'}}");
|
|
+ register(2834, "{Name:'minecraft:white_wall_banner',Properties:{facing:'north'}}", "{Name:'minecraft:wall_banner',Properties:{facing:'north'}}");
|
|
+ register(2835, "{Name:'minecraft:white_wall_banner',Properties:{facing:'south'}}", "{Name:'minecraft:wall_banner',Properties:{facing:'south'}}");
|
|
+ register(2836, "{Name:'minecraft:white_wall_banner',Properties:{facing:'west'}}", "{Name:'minecraft:wall_banner',Properties:{facing:'west'}}");
|
|
+ register(2837, "{Name:'minecraft:white_wall_banner',Properties:{facing:'east'}}", "{Name:'minecraft:wall_banner',Properties:{facing:'east'}}");
|
|
+ register(2848, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'0'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'0'}}");
|
|
+ register(2849, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'1'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'1'}}");
|
|
+ register(2850, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'2'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'2'}}");
|
|
+ register(2851, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'3'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'3'}}");
|
|
+ register(2852, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'4'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'4'}}");
|
|
+ register(2853, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'5'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'5'}}");
|
|
+ register(2854, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'6'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'6'}}");
|
|
+ register(2855, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'7'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'7'}}");
|
|
+ register(2856, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'8'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'8'}}");
|
|
+ register(2857, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'9'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'9'}}");
|
|
+ register(2858, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'10'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'10'}}");
|
|
+ register(2859, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'11'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'11'}}");
|
|
+ register(2860, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'12'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'12'}}");
|
|
+ register(2861, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'13'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'13'}}");
|
|
+ register(2862, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'14'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'14'}}");
|
|
+ register(2863, "{Name:'minecraft:daylight_detector',Properties:{inverted:'true',power:'15'}}", "{Name:'minecraft:daylight_detector_inverted',Properties:{power:'15'}}");
|
|
+ register(2864, "{Name:'minecraft:red_sandstone'}", "{Name:'minecraft:red_sandstone',Properties:{type:'red_sandstone'}}");
|
|
+ register(2865, "{Name:'minecraft:chiseled_red_sandstone'}", "{Name:'minecraft:red_sandstone',Properties:{type:'chiseled_red_sandstone'}}");
|
|
+ register(2866, "{Name:'minecraft:cut_red_sandstone'}", "{Name:'minecraft:red_sandstone',Properties:{type:'smooth_red_sandstone'}}");
|
|
+ register(2880, "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(2881, "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(2882, "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(2883, "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(2884, "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(2885, "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(2886, "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(2887, "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:red_sandstone_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(2896, "{Name:'minecraft:red_sandstone_slab',Properties:{type:'double'}}", "{Name:'minecraft:double_stone_slab2',Properties:{seamless:'false',variant:'red_sandstone'}}");
|
|
+ register(2904, "{Name:'minecraft:smooth_red_sandstone'}", "{Name:'minecraft:double_stone_slab2',Properties:{seamless:'true',variant:'red_sandstone'}}");
|
|
+ register(2912, "{Name:'minecraft:red_sandstone_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:stone_slab2',Properties:{half:'bottom',variant:'red_sandstone'}}");
|
|
+ register(2920, "{Name:'minecraft:red_sandstone_slab',Properties:{type:'top'}}", "{Name:'minecraft:stone_slab2',Properties:{half:'top',variant:'red_sandstone'}}");
|
|
+ register(2928, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'south',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2929, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'west',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2930, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'north',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2931, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'east',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2932, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'south',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2933, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'west',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2934, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'north',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2935, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'east',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2936, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'south',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2937, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'west',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2938, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'north',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2939, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'east',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2940, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'south',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2941, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'west',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2942, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'north',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2943, "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_fence_gate',Properties:{facing:'east',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2944, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'south',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2945, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'west',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2946, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'north',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2947, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'east',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2948, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'south',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2949, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'west',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2950, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'north',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2951, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'east',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2952, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'south',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2953, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'west',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2954, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'north',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2955, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'east',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2956, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'south',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2957, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'west',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2958, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'north',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2959, "{Name:'minecraft:birch_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:birch_fence_gate',Properties:{facing:'east',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2960, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'south',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2961, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'west',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2962, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'north',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2963, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'east',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2964, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'south',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2965, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'west',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2966, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'north',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2967, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'east',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2968, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'south',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2969, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'west',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2970, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'north',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2971, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'east',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2972, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'south',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2973, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'west',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2974, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'north',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2975, "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_fence_gate',Properties:{facing:'east',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2976, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'south',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2977, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'west',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2978, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'north',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2979, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'east',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2980, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'south',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2981, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'west',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2982, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'north',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2983, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'east',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2984, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'south',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2985, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'west',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2986, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'north',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2987, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'east',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(2988, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'south',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2989, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'west',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2990, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'north',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2991, "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_fence_gate',Properties:{facing:'east',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(2992, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'south',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2993, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'west',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2994, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'north',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2995, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'east',in_wall:'true',open:'false',powered:'false'}}");
|
|
+ register(2996, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'south',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2997, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'west',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2998, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'north',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(2999, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'east',in_wall:'true',open:'true',powered:'false'}}");
|
|
+ register(3000, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'south',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'south',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(3001, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'west',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'west',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(3002, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'north',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'north',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(3003, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'east',in_wall:'false',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'east',in_wall:'true',open:'false',powered:'true'}}");
|
|
+ register(3004, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'south',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'south',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(3005, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'west',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'west',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(3006, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'north',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'north',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(3007, "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'east',in_wall:'false',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_fence_gate',Properties:{facing:'east',in_wall:'true',open:'true',powered:'true'}}");
|
|
+ register(3008, "{Name:'minecraft:spruce_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:spruce_fence',Properties:{east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(3024, "{Name:'minecraft:birch_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:birch_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:birch_fence',Properties:{east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:birch_fence',Properties:{east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:birch_fence',Properties:{east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:birch_fence',Properties:{east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:birch_fence',Properties:{east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:birch_fence',Properties:{east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:birch_fence',Properties:{east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:birch_fence',Properties:{east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:birch_fence',Properties:{east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:birch_fence',Properties:{east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:birch_fence',Properties:{east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:birch_fence',Properties:{east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:birch_fence',Properties:{east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:birch_fence',Properties:{east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:birch_fence',Properties:{east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(3040, "{Name:'minecraft:jungle_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:jungle_fence',Properties:{east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(3056, "{Name:'minecraft:dark_oak_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:dark_oak_fence',Properties:{east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(3072, "{Name:'minecraft:acacia_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'false',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'false',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'false',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'false',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'false',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'false',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'false',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'false',north:'true',south:'true',west:'true'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'true',north:'false',south:'false',west:'false'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'true',north:'false',south:'false',west:'true'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'true',north:'false',south:'true',west:'false'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'true',north:'false',south:'true',west:'true'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'true',north:'true',south:'false',west:'false'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'true',north:'true',south:'false',west:'true'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'true',north:'true',south:'true',west:'false'}}", "{Name:'minecraft:acacia_fence',Properties:{east:'true',north:'true',south:'true',west:'true'}}");
|
|
+ register(3088, "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3089, "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3090, "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3091, "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3092, "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3093, "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3094, "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3095, "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3096, "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(3097, "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'false'}}");
|
|
+ register(3098, "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'true'}}");
|
|
+ register(3099, "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:spruce_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3104, "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3105, "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3106, "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3107, "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3108, "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3109, "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3110, "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3111, "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3112, "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(3113, "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'false'}}");
|
|
+ register(3114, "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'true'}}");
|
|
+ register(3115, "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:birch_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3120, "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3121, "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3122, "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3123, "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3124, "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3125, "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3126, "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3127, "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3128, "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(3129, "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'false'}}");
|
|
+ register(3130, "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'true'}}");
|
|
+ register(3131, "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:jungle_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3136, "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3137, "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3138, "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3139, "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3140, "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3141, "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3142, "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3143, "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3144, "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(3145, "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'false'}}");
|
|
+ register(3146, "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'true'}}");
|
|
+ register(3147, "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:acacia_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3152, "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3153, "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3154, "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3155, "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'false',powered:'true'}}");
|
|
+ register(3156, "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3157, "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3158, "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3159, "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'lower',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'lower',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3160, "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'false'}}");
|
|
+ register(3161, "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'false'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'false'}}");
|
|
+ register(3162, "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'upper',hinge:'left',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'upper',hinge:'left',open:'true',powered:'true'}}");
|
|
+ register(3163, "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'east',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'north',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'south',half:'upper',hinge:'right',open:'true',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'false',powered:'true'}}", "{Name:'minecraft:dark_oak_door',Properties:{facing:'west',half:'upper',hinge:'right',open:'true',powered:'true'}}");
|
|
+ register(3168, "{Name:'minecraft:end_rod',Properties:{facing:'down'}}", "{Name:'minecraft:end_rod',Properties:{facing:'down'}}");
|
|
+ register(3169, "{Name:'minecraft:end_rod',Properties:{facing:'up'}}", "{Name:'minecraft:end_rod',Properties:{facing:'up'}}");
|
|
+ register(3170, "{Name:'minecraft:end_rod',Properties:{facing:'north'}}", "{Name:'minecraft:end_rod',Properties:{facing:'north'}}");
|
|
+ register(3171, "{Name:'minecraft:end_rod',Properties:{facing:'south'}}", "{Name:'minecraft:end_rod',Properties:{facing:'south'}}");
|
|
+ register(3172, "{Name:'minecraft:end_rod',Properties:{facing:'west'}}", "{Name:'minecraft:end_rod',Properties:{facing:'west'}}");
|
|
+ register(3173, "{Name:'minecraft:end_rod',Properties:{facing:'east'}}", "{Name:'minecraft:end_rod',Properties:{facing:'east'}}");
|
|
+ register(3184, "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'false',east:'true',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'false',north:'true',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'false',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'false',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'false',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'false',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'false',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'false',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'false',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'false',south:'true',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'true',south:'false',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'true',south:'false',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'true',south:'false',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'true',south:'false',up:'true',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'true',south:'true',up:'false',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'true',south:'true',up:'false',west:'true'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'true',south:'true',up:'true',west:'false'}}", "{Name:'minecraft:chorus_plant',Properties:{down:'true',east:'true',north:'true',south:'true',up:'true',west:'true'}}");
|
|
+ register(3200, "{Name:'minecraft:chorus_flower',Properties:{age:'0'}}", "{Name:'minecraft:chorus_flower',Properties:{age:'0'}}");
|
|
+ register(3201, "{Name:'minecraft:chorus_flower',Properties:{age:'1'}}", "{Name:'minecraft:chorus_flower',Properties:{age:'1'}}");
|
|
+ register(3202, "{Name:'minecraft:chorus_flower',Properties:{age:'2'}}", "{Name:'minecraft:chorus_flower',Properties:{age:'2'}}");
|
|
+ register(3203, "{Name:'minecraft:chorus_flower',Properties:{age:'3'}}", "{Name:'minecraft:chorus_flower',Properties:{age:'3'}}");
|
|
+ register(3204, "{Name:'minecraft:chorus_flower',Properties:{age:'4'}}", "{Name:'minecraft:chorus_flower',Properties:{age:'4'}}");
|
|
+ register(3205, "{Name:'minecraft:chorus_flower',Properties:{age:'5'}}", "{Name:'minecraft:chorus_flower',Properties:{age:'5'}}");
|
|
+ register(3216, "{Name:'minecraft:purpur_block'}", "{Name:'minecraft:purpur_block'}");
|
|
+ register(3232, "{Name:'minecraft:purpur_pillar',Properties:{axis:'y'}}", "{Name:'minecraft:purpur_pillar',Properties:{axis:'y'}}");
|
|
+ register(3236, "{Name:'minecraft:purpur_pillar',Properties:{axis:'x'}}", "{Name:'minecraft:purpur_pillar',Properties:{axis:'x'}}");
|
|
+ register(3240, "{Name:'minecraft:purpur_pillar',Properties:{axis:'z'}}", "{Name:'minecraft:purpur_pillar',Properties:{axis:'z'}}");
|
|
+ register(3248, "{Name:'minecraft:purpur_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'east',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'east',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'east',half:'bottom',shape:'straight'}}");
|
|
+ register(3249, "{Name:'minecraft:purpur_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'west',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'west',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'west',half:'bottom',shape:'straight'}}");
|
|
+ register(3250, "{Name:'minecraft:purpur_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'south',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'south',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'south',half:'bottom',shape:'straight'}}");
|
|
+ register(3251, "{Name:'minecraft:purpur_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'north',half:'bottom',shape:'inner_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'north',half:'bottom',shape:'outer_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'north',half:'bottom',shape:'straight'}}");
|
|
+ register(3252, "{Name:'minecraft:purpur_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'east',half:'top',shape:'inner_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'east',half:'top',shape:'inner_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'east',half:'top',shape:'outer_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'east',half:'top',shape:'outer_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'east',half:'top',shape:'straight'}}");
|
|
+ register(3253, "{Name:'minecraft:purpur_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'west',half:'top',shape:'inner_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'west',half:'top',shape:'inner_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'west',half:'top',shape:'outer_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'west',half:'top',shape:'outer_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'west',half:'top',shape:'straight'}}");
|
|
+ register(3254, "{Name:'minecraft:purpur_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'south',half:'top',shape:'inner_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'south',half:'top',shape:'inner_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'south',half:'top',shape:'outer_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'south',half:'top',shape:'outer_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'south',half:'top',shape:'straight'}}");
|
|
+ register(3255, "{Name:'minecraft:purpur_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'north',half:'top',shape:'inner_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'north',half:'top',shape:'inner_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'north',half:'top',shape:'outer_left'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'north',half:'top',shape:'outer_right'}}", "{Name:'minecraft:purpur_stairs',Properties:{facing:'north',half:'top',shape:'straight'}}");
|
|
+ register(3264, "{Name:'minecraft:purpur_slab',Properties:{type:'double'}}", "{Name:'minecraft:purpur_double_slab',Properties:{variant:'default'}}");
|
|
+ register(3280, "{Name:'minecraft:purpur_slab',Properties:{type:'bottom'}}", "{Name:'minecraft:purpur_slab',Properties:{half:'bottom',variant:'default'}}");
|
|
+ register(3288, "{Name:'minecraft:purpur_slab',Properties:{type:'top'}}", "{Name:'minecraft:purpur_slab',Properties:{half:'top',variant:'default'}}");
|
|
+ register(3296, "{Name:'minecraft:end_stone_bricks'}", "{Name:'minecraft:end_bricks'}");
|
|
+ register(3312, "{Name:'minecraft:beetroots',Properties:{age:'0'}}", "{Name:'minecraft:beetroots',Properties:{age:'0'}}");
|
|
+ register(3313, "{Name:'minecraft:beetroots',Properties:{age:'1'}}", "{Name:'minecraft:beetroots',Properties:{age:'1'}}");
|
|
+ register(3314, "{Name:'minecraft:beetroots',Properties:{age:'2'}}", "{Name:'minecraft:beetroots',Properties:{age:'2'}}");
|
|
+ register(3315, "{Name:'minecraft:beetroots',Properties:{age:'3'}}", "{Name:'minecraft:beetroots',Properties:{age:'3'}}");
|
|
+ register(3328, "{Name:'minecraft:grass_path'}", "{Name:'minecraft:grass_path'}");
|
|
+ register(3344, "{Name:'minecraft:end_gateway'}", "{Name:'minecraft:end_gateway'}");
|
|
+ register(3360, "{Name:'minecraft:repeating_command_block',Properties:{conditional:'false',facing:'down'}}", "{Name:'minecraft:repeating_command_block',Properties:{conditional:'false',facing:'down'}}");
|
|
+ register(3361, "{Name:'minecraft:repeating_command_block',Properties:{conditional:'false',facing:'up'}}", "{Name:'minecraft:repeating_command_block',Properties:{conditional:'false',facing:'up'}}");
|
|
+ register(3362, "{Name:'minecraft:repeating_command_block',Properties:{conditional:'false',facing:'north'}}", "{Name:'minecraft:repeating_command_block',Properties:{conditional:'false',facing:'north'}}");
|
|
+ register(3363, "{Name:'minecraft:repeating_command_block',Properties:{conditional:'false',facing:'south'}}", "{Name:'minecraft:repeating_command_block',Properties:{conditional:'false',facing:'south'}}");
|
|
+ register(3364, "{Name:'minecraft:repeating_command_block',Properties:{conditional:'false',facing:'west'}}", "{Name:'minecraft:repeating_command_block',Properties:{conditional:'false',facing:'west'}}");
|
|
+ register(3365, "{Name:'minecraft:repeating_command_block',Properties:{conditional:'false',facing:'east'}}", "{Name:'minecraft:repeating_command_block',Properties:{conditional:'false',facing:'east'}}");
|
|
+ register(3368, "{Name:'minecraft:repeating_command_block',Properties:{conditional:'true',facing:'down'}}", "{Name:'minecraft:repeating_command_block',Properties:{conditional:'true',facing:'down'}}");
|
|
+ register(3369, "{Name:'minecraft:repeating_command_block',Properties:{conditional:'true',facing:'up'}}", "{Name:'minecraft:repeating_command_block',Properties:{conditional:'true',facing:'up'}}");
|
|
+ register(3370, "{Name:'minecraft:repeating_command_block',Properties:{conditional:'true',facing:'north'}}", "{Name:'minecraft:repeating_command_block',Properties:{conditional:'true',facing:'north'}}");
|
|
+ register(3371, "{Name:'minecraft:repeating_command_block',Properties:{conditional:'true',facing:'south'}}", "{Name:'minecraft:repeating_command_block',Properties:{conditional:'true',facing:'south'}}");
|
|
+ register(3372, "{Name:'minecraft:repeating_command_block',Properties:{conditional:'true',facing:'west'}}", "{Name:'minecraft:repeating_command_block',Properties:{conditional:'true',facing:'west'}}");
|
|
+ register(3373, "{Name:'minecraft:repeating_command_block',Properties:{conditional:'true',facing:'east'}}", "{Name:'minecraft:repeating_command_block',Properties:{conditional:'true',facing:'east'}}");
|
|
+ register(3376, "{Name:'minecraft:chain_command_block',Properties:{conditional:'false',facing:'down'}}", "{Name:'minecraft:chain_command_block',Properties:{conditional:'false',facing:'down'}}");
|
|
+ register(3377, "{Name:'minecraft:chain_command_block',Properties:{conditional:'false',facing:'up'}}", "{Name:'minecraft:chain_command_block',Properties:{conditional:'false',facing:'up'}}");
|
|
+ register(3378, "{Name:'minecraft:chain_command_block',Properties:{conditional:'false',facing:'north'}}", "{Name:'minecraft:chain_command_block',Properties:{conditional:'false',facing:'north'}}");
|
|
+ register(3379, "{Name:'minecraft:chain_command_block',Properties:{conditional:'false',facing:'south'}}", "{Name:'minecraft:chain_command_block',Properties:{conditional:'false',facing:'south'}}");
|
|
+ register(3380, "{Name:'minecraft:chain_command_block',Properties:{conditional:'false',facing:'west'}}", "{Name:'minecraft:chain_command_block',Properties:{conditional:'false',facing:'west'}}");
|
|
+ register(3381, "{Name:'minecraft:chain_command_block',Properties:{conditional:'false',facing:'east'}}", "{Name:'minecraft:chain_command_block',Properties:{conditional:'false',facing:'east'}}");
|
|
+ register(3384, "{Name:'minecraft:chain_command_block',Properties:{conditional:'true',facing:'down'}}", "{Name:'minecraft:chain_command_block',Properties:{conditional:'true',facing:'down'}}");
|
|
+ register(3385, "{Name:'minecraft:chain_command_block',Properties:{conditional:'true',facing:'up'}}", "{Name:'minecraft:chain_command_block',Properties:{conditional:'true',facing:'up'}}");
|
|
+ register(3386, "{Name:'minecraft:chain_command_block',Properties:{conditional:'true',facing:'north'}}", "{Name:'minecraft:chain_command_block',Properties:{conditional:'true',facing:'north'}}");
|
|
+ register(3387, "{Name:'minecraft:chain_command_block',Properties:{conditional:'true',facing:'south'}}", "{Name:'minecraft:chain_command_block',Properties:{conditional:'true',facing:'south'}}");
|
|
+ register(3388, "{Name:'minecraft:chain_command_block',Properties:{conditional:'true',facing:'west'}}", "{Name:'minecraft:chain_command_block',Properties:{conditional:'true',facing:'west'}}");
|
|
+ register(3389, "{Name:'minecraft:chain_command_block',Properties:{conditional:'true',facing:'east'}}", "{Name:'minecraft:chain_command_block',Properties:{conditional:'true',facing:'east'}}");
|
|
+ register(3392, "{Name:'minecraft:frosted_ice',Properties:{age:'0'}}", "{Name:'minecraft:frosted_ice',Properties:{age:'0'}}");
|
|
+ register(3393, "{Name:'minecraft:frosted_ice',Properties:{age:'1'}}", "{Name:'minecraft:frosted_ice',Properties:{age:'1'}}");
|
|
+ register(3394, "{Name:'minecraft:frosted_ice',Properties:{age:'2'}}", "{Name:'minecraft:frosted_ice',Properties:{age:'2'}}");
|
|
+ register(3395, "{Name:'minecraft:frosted_ice',Properties:{age:'3'}}", "{Name:'minecraft:frosted_ice',Properties:{age:'3'}}");
|
|
+ register(3408, "{Name:'minecraft:magma_block'}", "{Name:'minecraft:magma'}");
|
|
+ register(3424, "{Name:'minecraft:nether_wart_block'}", "{Name:'minecraft:nether_wart_block'}");
|
|
+ register(3440, "{Name:'minecraft:red_nether_bricks'}", "{Name:'minecraft:red_nether_brick'}");
|
|
+ register(3456, "{Name:'minecraft:bone_block',Properties:{axis:'y'}}", "{Name:'minecraft:bone_block',Properties:{axis:'y'}}");
|
|
+ register(3460, "{Name:'minecraft:bone_block',Properties:{axis:'x'}}", "{Name:'minecraft:bone_block',Properties:{axis:'x'}}");
|
|
+ register(3464, "{Name:'minecraft:bone_block',Properties:{axis:'z'}}", "{Name:'minecraft:bone_block',Properties:{axis:'z'}}");
|
|
+ register(3472, "{Name:'minecraft:structure_void'}", "{Name:'minecraft:structure_void'}");
|
|
+ register(3488, "{Name:'minecraft:observer',Properties:{facing:'down',powered:'false'}}", "{Name:'minecraft:observer',Properties:{facing:'down',powered:'false'}}");
|
|
+ register(3489, "{Name:'minecraft:observer',Properties:{facing:'up',powered:'false'}}", "{Name:'minecraft:observer',Properties:{facing:'up',powered:'false'}}");
|
|
+ register(3490, "{Name:'minecraft:observer',Properties:{facing:'north',powered:'false'}}", "{Name:'minecraft:observer',Properties:{facing:'north',powered:'false'}}");
|
|
+ register(3491, "{Name:'minecraft:observer',Properties:{facing:'south',powered:'false'}}", "{Name:'minecraft:observer',Properties:{facing:'south',powered:'false'}}");
|
|
+ register(3492, "{Name:'minecraft:observer',Properties:{facing:'west',powered:'false'}}", "{Name:'minecraft:observer',Properties:{facing:'west',powered:'false'}}");
|
|
+ register(3493, "{Name:'minecraft:observer',Properties:{facing:'east',powered:'false'}}", "{Name:'minecraft:observer',Properties:{facing:'east',powered:'false'}}");
|
|
+ register(3496, "{Name:'minecraft:observer',Properties:{facing:'down',powered:'true'}}", "{Name:'minecraft:observer',Properties:{facing:'down',powered:'true'}}");
|
|
+ register(3497, "{Name:'minecraft:observer',Properties:{facing:'up',powered:'true'}}", "{Name:'minecraft:observer',Properties:{facing:'up',powered:'true'}}");
|
|
+ register(3498, "{Name:'minecraft:observer',Properties:{facing:'north',powered:'true'}}", "{Name:'minecraft:observer',Properties:{facing:'north',powered:'true'}}");
|
|
+ register(3499, "{Name:'minecraft:observer',Properties:{facing:'south',powered:'true'}}", "{Name:'minecraft:observer',Properties:{facing:'south',powered:'true'}}");
|
|
+ register(3500, "{Name:'minecraft:observer',Properties:{facing:'west',powered:'true'}}", "{Name:'minecraft:observer',Properties:{facing:'west',powered:'true'}}");
|
|
+ register(3501, "{Name:'minecraft:observer',Properties:{facing:'east',powered:'true'}}", "{Name:'minecraft:observer',Properties:{facing:'east',powered:'true'}}");
|
|
+ register(3504, "{Name:'minecraft:white_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:white_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3505, "{Name:'minecraft:white_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:white_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3506, "{Name:'minecraft:white_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:white_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3507, "{Name:'minecraft:white_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:white_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3508, "{Name:'minecraft:white_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:white_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3509, "{Name:'minecraft:white_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:white_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3520, "{Name:'minecraft:orange_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:orange_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3521, "{Name:'minecraft:orange_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:orange_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3522, "{Name:'minecraft:orange_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:orange_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3523, "{Name:'minecraft:orange_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:orange_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3524, "{Name:'minecraft:orange_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:orange_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3525, "{Name:'minecraft:orange_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:orange_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3536, "{Name:'minecraft:magenta_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:magenta_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3537, "{Name:'minecraft:magenta_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:magenta_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3538, "{Name:'minecraft:magenta_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:magenta_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3539, "{Name:'minecraft:magenta_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:magenta_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3540, "{Name:'minecraft:magenta_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:magenta_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3541, "{Name:'minecraft:magenta_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:magenta_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3552, "{Name:'minecraft:light_blue_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:light_blue_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3553, "{Name:'minecraft:light_blue_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:light_blue_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3554, "{Name:'minecraft:light_blue_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:light_blue_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3555, "{Name:'minecraft:light_blue_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:light_blue_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3556, "{Name:'minecraft:light_blue_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:light_blue_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3557, "{Name:'minecraft:light_blue_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:light_blue_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3568, "{Name:'minecraft:yellow_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:yellow_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3569, "{Name:'minecraft:yellow_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:yellow_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3570, "{Name:'minecraft:yellow_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:yellow_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3571, "{Name:'minecraft:yellow_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:yellow_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3572, "{Name:'minecraft:yellow_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:yellow_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3573, "{Name:'minecraft:yellow_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:yellow_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3584, "{Name:'minecraft:lime_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:lime_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3585, "{Name:'minecraft:lime_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:lime_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3586, "{Name:'minecraft:lime_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:lime_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3587, "{Name:'minecraft:lime_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:lime_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3588, "{Name:'minecraft:lime_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:lime_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3589, "{Name:'minecraft:lime_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:lime_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3600, "{Name:'minecraft:pink_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:pink_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3601, "{Name:'minecraft:pink_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:pink_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3602, "{Name:'minecraft:pink_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:pink_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3603, "{Name:'minecraft:pink_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:pink_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3604, "{Name:'minecraft:pink_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:pink_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3605, "{Name:'minecraft:pink_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:pink_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3616, "{Name:'minecraft:gray_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:gray_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3617, "{Name:'minecraft:gray_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:gray_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3618, "{Name:'minecraft:gray_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:gray_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3619, "{Name:'minecraft:gray_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:gray_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3620, "{Name:'minecraft:gray_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:gray_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3621, "{Name:'minecraft:gray_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:gray_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3632, "{Name:'minecraft:light_gray_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:silver_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3633, "{Name:'minecraft:light_gray_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:silver_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3634, "{Name:'minecraft:light_gray_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:silver_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3635, "{Name:'minecraft:light_gray_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:silver_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3636, "{Name:'minecraft:light_gray_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:silver_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3637, "{Name:'minecraft:light_gray_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:silver_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3648, "{Name:'minecraft:cyan_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:cyan_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3649, "{Name:'minecraft:cyan_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:cyan_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3650, "{Name:'minecraft:cyan_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:cyan_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3651, "{Name:'minecraft:cyan_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:cyan_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3652, "{Name:'minecraft:cyan_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:cyan_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3653, "{Name:'minecraft:cyan_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:cyan_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3664, "{Name:'minecraft:purple_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:purple_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3665, "{Name:'minecraft:purple_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:purple_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3666, "{Name:'minecraft:purple_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:purple_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3667, "{Name:'minecraft:purple_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:purple_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3668, "{Name:'minecraft:purple_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:purple_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3669, "{Name:'minecraft:purple_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:purple_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3680, "{Name:'minecraft:blue_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:blue_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3681, "{Name:'minecraft:blue_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:blue_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3682, "{Name:'minecraft:blue_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:blue_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3683, "{Name:'minecraft:blue_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:blue_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3684, "{Name:'minecraft:blue_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:blue_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3685, "{Name:'minecraft:blue_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:blue_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3696, "{Name:'minecraft:brown_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:brown_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3697, "{Name:'minecraft:brown_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:brown_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3698, "{Name:'minecraft:brown_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:brown_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3699, "{Name:'minecraft:brown_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:brown_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3700, "{Name:'minecraft:brown_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:brown_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3701, "{Name:'minecraft:brown_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:brown_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3712, "{Name:'minecraft:green_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:green_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3713, "{Name:'minecraft:green_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:green_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3714, "{Name:'minecraft:green_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:green_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3715, "{Name:'minecraft:green_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:green_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3716, "{Name:'minecraft:green_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:green_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3717, "{Name:'minecraft:green_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:green_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3728, "{Name:'minecraft:red_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:red_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3729, "{Name:'minecraft:red_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:red_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3730, "{Name:'minecraft:red_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:red_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3731, "{Name:'minecraft:red_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:red_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3732, "{Name:'minecraft:red_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:red_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3733, "{Name:'minecraft:red_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:red_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3744, "{Name:'minecraft:black_shulker_box',Properties:{facing:'down'}}", "{Name:'minecraft:black_shulker_box',Properties:{facing:'down'}}");
|
|
+ register(3745, "{Name:'minecraft:black_shulker_box',Properties:{facing:'up'}}", "{Name:'minecraft:black_shulker_box',Properties:{facing:'up'}}");
|
|
+ register(3746, "{Name:'minecraft:black_shulker_box',Properties:{facing:'north'}}", "{Name:'minecraft:black_shulker_box',Properties:{facing:'north'}}");
|
|
+ register(3747, "{Name:'minecraft:black_shulker_box',Properties:{facing:'south'}}", "{Name:'minecraft:black_shulker_box',Properties:{facing:'south'}}");
|
|
+ register(3748, "{Name:'minecraft:black_shulker_box',Properties:{facing:'west'}}", "{Name:'minecraft:black_shulker_box',Properties:{facing:'west'}}");
|
|
+ register(3749, "{Name:'minecraft:black_shulker_box',Properties:{facing:'east'}}", "{Name:'minecraft:black_shulker_box',Properties:{facing:'east'}}");
|
|
+ register(3760, "{Name:'minecraft:white_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:white_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3761, "{Name:'minecraft:white_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:white_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3762, "{Name:'minecraft:white_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:white_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3763, "{Name:'minecraft:white_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:white_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3776, "{Name:'minecraft:orange_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:orange_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3777, "{Name:'minecraft:orange_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:orange_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3778, "{Name:'minecraft:orange_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:orange_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3779, "{Name:'minecraft:orange_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:orange_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3792, "{Name:'minecraft:magenta_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:magenta_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3793, "{Name:'minecraft:magenta_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:magenta_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3794, "{Name:'minecraft:magenta_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:magenta_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3795, "{Name:'minecraft:magenta_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:magenta_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3808, "{Name:'minecraft:light_blue_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:light_blue_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3809, "{Name:'minecraft:light_blue_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:light_blue_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3810, "{Name:'minecraft:light_blue_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:light_blue_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3811, "{Name:'minecraft:light_blue_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:light_blue_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3824, "{Name:'minecraft:yellow_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:yellow_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3825, "{Name:'minecraft:yellow_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:yellow_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3826, "{Name:'minecraft:yellow_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:yellow_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3827, "{Name:'minecraft:yellow_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:yellow_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3840, "{Name:'minecraft:lime_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:lime_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3841, "{Name:'minecraft:lime_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:lime_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3842, "{Name:'minecraft:lime_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:lime_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3843, "{Name:'minecraft:lime_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:lime_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3856, "{Name:'minecraft:pink_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:pink_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3857, "{Name:'minecraft:pink_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:pink_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3858, "{Name:'minecraft:pink_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:pink_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3859, "{Name:'minecraft:pink_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:pink_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3872, "{Name:'minecraft:gray_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:gray_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3873, "{Name:'minecraft:gray_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:gray_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3874, "{Name:'minecraft:gray_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:gray_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3875, "{Name:'minecraft:gray_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:gray_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3888, "{Name:'minecraft:light_gray_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:silver_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3889, "{Name:'minecraft:light_gray_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:silver_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3890, "{Name:'minecraft:light_gray_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:silver_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3891, "{Name:'minecraft:light_gray_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:silver_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3904, "{Name:'minecraft:cyan_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:cyan_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3905, "{Name:'minecraft:cyan_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:cyan_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3906, "{Name:'minecraft:cyan_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:cyan_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3907, "{Name:'minecraft:cyan_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:cyan_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3920, "{Name:'minecraft:purple_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:purple_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3921, "{Name:'minecraft:purple_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:purple_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3922, "{Name:'minecraft:purple_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:purple_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3923, "{Name:'minecraft:purple_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:purple_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3936, "{Name:'minecraft:blue_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:blue_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3937, "{Name:'minecraft:blue_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:blue_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3938, "{Name:'minecraft:blue_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:blue_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3939, "{Name:'minecraft:blue_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:blue_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3952, "{Name:'minecraft:brown_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:brown_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3953, "{Name:'minecraft:brown_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:brown_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3954, "{Name:'minecraft:brown_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:brown_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3955, "{Name:'minecraft:brown_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:brown_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3968, "{Name:'minecraft:green_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:green_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3969, "{Name:'minecraft:green_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:green_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3970, "{Name:'minecraft:green_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:green_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3971, "{Name:'minecraft:green_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:green_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(3984, "{Name:'minecraft:red_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:red_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(3985, "{Name:'minecraft:red_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:red_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(3986, "{Name:'minecraft:red_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:red_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(3987, "{Name:'minecraft:red_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:red_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(4000, "{Name:'minecraft:black_glazed_terracotta',Properties:{facing:'south'}}", "{Name:'minecraft:black_glazed_terracotta',Properties:{facing:'south'}}");
|
|
+ register(4001, "{Name:'minecraft:black_glazed_terracotta',Properties:{facing:'west'}}", "{Name:'minecraft:black_glazed_terracotta',Properties:{facing:'west'}}");
|
|
+ register(4002, "{Name:'minecraft:black_glazed_terracotta',Properties:{facing:'north'}}", "{Name:'minecraft:black_glazed_terracotta',Properties:{facing:'north'}}");
|
|
+ register(4003, "{Name:'minecraft:black_glazed_terracotta',Properties:{facing:'east'}}", "{Name:'minecraft:black_glazed_terracotta',Properties:{facing:'east'}}");
|
|
+ register(4016, "{Name:'minecraft:white_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'white'}}");
|
|
+ register(4017, "{Name:'minecraft:orange_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'orange'}}");
|
|
+ register(4018, "{Name:'minecraft:magenta_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'magenta'}}");
|
|
+ register(4019, "{Name:'minecraft:light_blue_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'light_blue'}}");
|
|
+ register(4020, "{Name:'minecraft:yellow_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'yellow'}}");
|
|
+ register(4021, "{Name:'minecraft:lime_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'lime'}}");
|
|
+ register(4022, "{Name:'minecraft:pink_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'pink'}}");
|
|
+ register(4023, "{Name:'minecraft:gray_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'gray'}}");
|
|
+ register(4024, "{Name:'minecraft:light_gray_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'silver'}}");
|
|
+ register(4025, "{Name:'minecraft:cyan_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'cyan'}}");
|
|
+ register(4026, "{Name:'minecraft:purple_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'purple'}}");
|
|
+ register(4027, "{Name:'minecraft:blue_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'blue'}}");
|
|
+ register(4028, "{Name:'minecraft:brown_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'brown'}}");
|
|
+ register(4029, "{Name:'minecraft:green_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'green'}}");
|
|
+ register(4030, "{Name:'minecraft:red_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'red'}}");
|
|
+ register(4031, "{Name:'minecraft:black_concrete'}", "{Name:'minecraft:concrete',Properties:{color:'black'}}");
|
|
+ register(4032, "{Name:'minecraft:white_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'white'}}");
|
|
+ register(4033, "{Name:'minecraft:orange_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'orange'}}");
|
|
+ register(4034, "{Name:'minecraft:magenta_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'magenta'}}");
|
|
+ register(4035, "{Name:'minecraft:light_blue_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'light_blue'}}");
|
|
+ register(4036, "{Name:'minecraft:yellow_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'yellow'}}");
|
|
+ register(4037, "{Name:'minecraft:lime_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'lime'}}");
|
|
+ register(4038, "{Name:'minecraft:pink_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'pink'}}");
|
|
+ register(4039, "{Name:'minecraft:gray_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'gray'}}");
|
|
+ register(4040, "{Name:'minecraft:light_gray_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'silver'}}");
|
|
+ register(4041, "{Name:'minecraft:cyan_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'cyan'}}");
|
|
+ register(4042, "{Name:'minecraft:purple_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'purple'}}");
|
|
+ register(4043, "{Name:'minecraft:blue_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'blue'}}");
|
|
+ register(4044, "{Name:'minecraft:brown_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'brown'}}");
|
|
+ register(4045, "{Name:'minecraft:green_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'green'}}");
|
|
+ register(4046, "{Name:'minecraft:red_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'red'}}");
|
|
+ register(4047, "{Name:'minecraft:black_concrete_powder'}", "{Name:'minecraft:concrete_powder',Properties:{color:'black'}}");
|
|
+ register(4080, "{Name:'minecraft:structure_block',Properties:{mode:'save'}}", "{Name:'minecraft:structure_block',Properties:{mode:'save'}}");
|
|
+ register(4081, "{Name:'minecraft:structure_block',Properties:{mode:'load'}}", "{Name:'minecraft:structure_block',Properties:{mode:'load'}}");
|
|
+ register(4082, "{Name:'minecraft:structure_block',Properties:{mode:'corner'}}", "{Name:'minecraft:structure_block',Properties:{mode:'corner'}}");
|
|
+ register(4083, "{Name:'minecraft:structure_block',Properties:{mode:'data'}}", "{Name:'minecraft:structure_block',Properties:{mode:'data'}}");
|
|
+ finalizeMaps();
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/HelperItemNameV102.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/HelperItemNameV102.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..7ce9cf645ccb2dc796b87858915dba1c3efc3d5b
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/HelperItemNameV102.java
|
|
@@ -0,0 +1,566 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.helpers;
|
|
+
|
|
+import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
|
+
|
|
+public final class HelperItemNameV102 {
|
|
+
|
|
+ // This class is responsible for mapping the id -> string update in itemstacks and potions
|
|
+
|
|
+ private static final Int2ObjectOpenHashMap<String> ITEM_NAMES = new Int2ObjectOpenHashMap<String>() {
|
|
+ @Override
|
|
+ public String put(final int k, final String o) {
|
|
+ final String ret = super.put(k, o);
|
|
+
|
|
+ if (ret != null) {
|
|
+ throw new IllegalStateException("Mapping already exists for " + k + ": prev: " + ret + ", new: " + o);
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+ };
|
|
+
|
|
+ static {
|
|
+ ITEM_NAMES.put(0, "minecraft:air");
|
|
+ ITEM_NAMES.put(1, "minecraft:stone");
|
|
+ ITEM_NAMES.put(2, "minecraft:grass");
|
|
+ ITEM_NAMES.put(3, "minecraft:dirt");
|
|
+ ITEM_NAMES.put(4, "minecraft:cobblestone");
|
|
+ ITEM_NAMES.put(5, "minecraft:planks");
|
|
+ ITEM_NAMES.put(6, "minecraft:sapling");
|
|
+ ITEM_NAMES.put(7, "minecraft:bedrock");
|
|
+ ITEM_NAMES.put(8, "minecraft:flowing_water");
|
|
+ ITEM_NAMES.put(9, "minecraft:water");
|
|
+ ITEM_NAMES.put(10, "minecraft:flowing_lava");
|
|
+ ITEM_NAMES.put(11, "minecraft:lava");
|
|
+ ITEM_NAMES.put(12, "minecraft:sand");
|
|
+ ITEM_NAMES.put(13, "minecraft:gravel");
|
|
+ ITEM_NAMES.put(14, "minecraft:gold_ore");
|
|
+ ITEM_NAMES.put(15, "minecraft:iron_ore");
|
|
+ ITEM_NAMES.put(16, "minecraft:coal_ore");
|
|
+ ITEM_NAMES.put(17, "minecraft:log");
|
|
+ ITEM_NAMES.put(18, "minecraft:leaves");
|
|
+ ITEM_NAMES.put(19, "minecraft:sponge");
|
|
+ ITEM_NAMES.put(20, "minecraft:glass");
|
|
+ ITEM_NAMES.put(21, "minecraft:lapis_ore");
|
|
+ ITEM_NAMES.put(22, "minecraft:lapis_block");
|
|
+ ITEM_NAMES.put(23, "minecraft:dispenser");
|
|
+ ITEM_NAMES.put(24, "minecraft:sandstone");
|
|
+ ITEM_NAMES.put(25, "minecraft:noteblock");
|
|
+ ITEM_NAMES.put(27, "minecraft:golden_rail");
|
|
+ ITEM_NAMES.put(28, "minecraft:detector_rail");
|
|
+ ITEM_NAMES.put(29, "minecraft:sticky_piston");
|
|
+ ITEM_NAMES.put(30, "minecraft:web");
|
|
+ ITEM_NAMES.put(31, "minecraft:tallgrass");
|
|
+ ITEM_NAMES.put(32, "minecraft:deadbush");
|
|
+ ITEM_NAMES.put(33, "minecraft:piston");
|
|
+ ITEM_NAMES.put(35, "minecraft:wool");
|
|
+ ITEM_NAMES.put(37, "minecraft:yellow_flower");
|
|
+ ITEM_NAMES.put(38, "minecraft:red_flower");
|
|
+ ITEM_NAMES.put(39, "minecraft:brown_mushroom");
|
|
+ ITEM_NAMES.put(40, "minecraft:red_mushroom");
|
|
+ ITEM_NAMES.put(41, "minecraft:gold_block");
|
|
+ ITEM_NAMES.put(42, "minecraft:iron_block");
|
|
+ ITEM_NAMES.put(43, "minecraft:double_stone_slab");
|
|
+ ITEM_NAMES.put(44, "minecraft:stone_slab");
|
|
+ ITEM_NAMES.put(45, "minecraft:brick_block");
|
|
+ ITEM_NAMES.put(46, "minecraft:tnt");
|
|
+ ITEM_NAMES.put(47, "minecraft:bookshelf");
|
|
+ ITEM_NAMES.put(48, "minecraft:mossy_cobblestone");
|
|
+ ITEM_NAMES.put(49, "minecraft:obsidian");
|
|
+ ITEM_NAMES.put(50, "minecraft:torch");
|
|
+ ITEM_NAMES.put(51, "minecraft:fire");
|
|
+ ITEM_NAMES.put(52, "minecraft:mob_spawner");
|
|
+ ITEM_NAMES.put(53, "minecraft:oak_stairs");
|
|
+ ITEM_NAMES.put(54, "minecraft:chest");
|
|
+ ITEM_NAMES.put(56, "minecraft:diamond_ore");
|
|
+ ITEM_NAMES.put(57, "minecraft:diamond_block");
|
|
+ ITEM_NAMES.put(58, "minecraft:crafting_table");
|
|
+ ITEM_NAMES.put(60, "minecraft:farmland");
|
|
+ ITEM_NAMES.put(61, "minecraft:furnace");
|
|
+ ITEM_NAMES.put(62, "minecraft:lit_furnace");
|
|
+ ITEM_NAMES.put(65, "minecraft:ladder");
|
|
+ ITEM_NAMES.put(66, "minecraft:rail");
|
|
+ ITEM_NAMES.put(67, "minecraft:stone_stairs");
|
|
+ ITEM_NAMES.put(69, "minecraft:lever");
|
|
+ ITEM_NAMES.put(70, "minecraft:stone_pressure_plate");
|
|
+ ITEM_NAMES.put(72, "minecraft:wooden_pressure_plate");
|
|
+ ITEM_NAMES.put(73, "minecraft:redstone_ore");
|
|
+ ITEM_NAMES.put(76, "minecraft:redstone_torch");
|
|
+ ITEM_NAMES.put(77, "minecraft:stone_button");
|
|
+ ITEM_NAMES.put(78, "minecraft:snow_layer");
|
|
+ ITEM_NAMES.put(79, "minecraft:ice");
|
|
+ ITEM_NAMES.put(80, "minecraft:snow");
|
|
+ ITEM_NAMES.put(81, "minecraft:cactus");
|
|
+ ITEM_NAMES.put(82, "minecraft:clay");
|
|
+ ITEM_NAMES.put(84, "minecraft:jukebox");
|
|
+ ITEM_NAMES.put(85, "minecraft:fence");
|
|
+ ITEM_NAMES.put(86, "minecraft:pumpkin");
|
|
+ ITEM_NAMES.put(87, "minecraft:netherrack");
|
|
+ ITEM_NAMES.put(88, "minecraft:soul_sand");
|
|
+ ITEM_NAMES.put(89, "minecraft:glowstone");
|
|
+ ITEM_NAMES.put(90, "minecraft:portal");
|
|
+ ITEM_NAMES.put(91, "minecraft:lit_pumpkin");
|
|
+ ITEM_NAMES.put(95, "minecraft:stained_glass");
|
|
+ ITEM_NAMES.put(96, "minecraft:trapdoor");
|
|
+ ITEM_NAMES.put(97, "minecraft:monster_egg");
|
|
+ ITEM_NAMES.put(98, "minecraft:stonebrick");
|
|
+ ITEM_NAMES.put(99, "minecraft:brown_mushroom_block");
|
|
+ ITEM_NAMES.put(100, "minecraft:red_mushroom_block");
|
|
+ ITEM_NAMES.put(101, "minecraft:iron_bars");
|
|
+ ITEM_NAMES.put(102, "minecraft:glass_pane");
|
|
+ ITEM_NAMES.put(103, "minecraft:melon_block");
|
|
+ ITEM_NAMES.put(106, "minecraft:vine");
|
|
+ ITEM_NAMES.put(107, "minecraft:fence_gate");
|
|
+ ITEM_NAMES.put(108, "minecraft:brick_stairs");
|
|
+ ITEM_NAMES.put(109, "minecraft:stone_brick_stairs");
|
|
+ ITEM_NAMES.put(110, "minecraft:mycelium");
|
|
+ ITEM_NAMES.put(111, "minecraft:waterlily");
|
|
+ ITEM_NAMES.put(112, "minecraft:nether_brick");
|
|
+ ITEM_NAMES.put(113, "minecraft:nether_brick_fence");
|
|
+ ITEM_NAMES.put(114, "minecraft:nether_brick_stairs");
|
|
+ ITEM_NAMES.put(116, "minecraft:enchanting_table");
|
|
+ ITEM_NAMES.put(119, "minecraft:end_portal");
|
|
+ ITEM_NAMES.put(120, "minecraft:end_portal_frame");
|
|
+ ITEM_NAMES.put(121, "minecraft:end_stone");
|
|
+ ITEM_NAMES.put(122, "minecraft:dragon_egg");
|
|
+ ITEM_NAMES.put(123, "minecraft:redstone_lamp");
|
|
+ ITEM_NAMES.put(125, "minecraft:double_wooden_slab");
|
|
+ ITEM_NAMES.put(126, "minecraft:wooden_slab");
|
|
+ ITEM_NAMES.put(127, "minecraft:cocoa");
|
|
+ ITEM_NAMES.put(128, "minecraft:sandstone_stairs");
|
|
+ ITEM_NAMES.put(129, "minecraft:emerald_ore");
|
|
+ ITEM_NAMES.put(130, "minecraft:ender_chest");
|
|
+ ITEM_NAMES.put(131, "minecraft:tripwire_hook");
|
|
+ ITEM_NAMES.put(133, "minecraft:emerald_block");
|
|
+ ITEM_NAMES.put(134, "minecraft:spruce_stairs");
|
|
+ ITEM_NAMES.put(135, "minecraft:birch_stairs");
|
|
+ ITEM_NAMES.put(136, "minecraft:jungle_stairs");
|
|
+ ITEM_NAMES.put(137, "minecraft:command_block");
|
|
+ ITEM_NAMES.put(138, "minecraft:beacon");
|
|
+ ITEM_NAMES.put(139, "minecraft:cobblestone_wall");
|
|
+ ITEM_NAMES.put(141, "minecraft:carrots");
|
|
+ ITEM_NAMES.put(142, "minecraft:potatoes");
|
|
+ ITEM_NAMES.put(143, "minecraft:wooden_button");
|
|
+ ITEM_NAMES.put(145, "minecraft:anvil");
|
|
+ ITEM_NAMES.put(146, "minecraft:trapped_chest");
|
|
+ ITEM_NAMES.put(147, "minecraft:light_weighted_pressure_plate");
|
|
+ ITEM_NAMES.put(148, "minecraft:heavy_weighted_pressure_plate");
|
|
+ ITEM_NAMES.put(151, "minecraft:daylight_detector");
|
|
+ ITEM_NAMES.put(152, "minecraft:redstone_block");
|
|
+ ITEM_NAMES.put(153, "minecraft:quartz_ore");
|
|
+ ITEM_NAMES.put(154, "minecraft:hopper");
|
|
+ ITEM_NAMES.put(155, "minecraft:quartz_block");
|
|
+ ITEM_NAMES.put(156, "minecraft:quartz_stairs");
|
|
+ ITEM_NAMES.put(157, "minecraft:activator_rail");
|
|
+ ITEM_NAMES.put(158, "minecraft:dropper");
|
|
+ ITEM_NAMES.put(159, "minecraft:stained_hardened_clay");
|
|
+ ITEM_NAMES.put(160, "minecraft:stained_glass_pane");
|
|
+ ITEM_NAMES.put(161, "minecraft:leaves2");
|
|
+ ITEM_NAMES.put(162, "minecraft:log2");
|
|
+ ITEM_NAMES.put(163, "minecraft:acacia_stairs");
|
|
+ ITEM_NAMES.put(164, "minecraft:dark_oak_stairs");
|
|
+ ITEM_NAMES.put(170, "minecraft:hay_block");
|
|
+ ITEM_NAMES.put(171, "minecraft:carpet");
|
|
+ ITEM_NAMES.put(172, "minecraft:hardened_clay");
|
|
+ ITEM_NAMES.put(173, "minecraft:coal_block");
|
|
+ ITEM_NAMES.put(174, "minecraft:packed_ice");
|
|
+ ITEM_NAMES.put(175, "minecraft:double_plant");
|
|
+ ITEM_NAMES.put(256, "minecraft:iron_shovel");
|
|
+ ITEM_NAMES.put(257, "minecraft:iron_pickaxe");
|
|
+ ITEM_NAMES.put(258, "minecraft:iron_axe");
|
|
+ ITEM_NAMES.put(259, "minecraft:flint_and_steel");
|
|
+ ITEM_NAMES.put(260, "minecraft:apple");
|
|
+ ITEM_NAMES.put(261, "minecraft:bow");
|
|
+ ITEM_NAMES.put(262, "minecraft:arrow");
|
|
+ ITEM_NAMES.put(263, "minecraft:coal");
|
|
+ ITEM_NAMES.put(264, "minecraft:diamond");
|
|
+ ITEM_NAMES.put(265, "minecraft:iron_ingot");
|
|
+ ITEM_NAMES.put(266, "minecraft:gold_ingot");
|
|
+ ITEM_NAMES.put(267, "minecraft:iron_sword");
|
|
+ ITEM_NAMES.put(268, "minecraft:wooden_sword");
|
|
+ ITEM_NAMES.put(269, "minecraft:wooden_shovel");
|
|
+ ITEM_NAMES.put(270, "minecraft:wooden_pickaxe");
|
|
+ ITEM_NAMES.put(271, "minecraft:wooden_axe");
|
|
+ ITEM_NAMES.put(272, "minecraft:stone_sword");
|
|
+ ITEM_NAMES.put(273, "minecraft:stone_shovel");
|
|
+ ITEM_NAMES.put(274, "minecraft:stone_pickaxe");
|
|
+ ITEM_NAMES.put(275, "minecraft:stone_axe");
|
|
+ ITEM_NAMES.put(276, "minecraft:diamond_sword");
|
|
+ ITEM_NAMES.put(277, "minecraft:diamond_shovel");
|
|
+ ITEM_NAMES.put(278, "minecraft:diamond_pickaxe");
|
|
+ ITEM_NAMES.put(279, "minecraft:diamond_axe");
|
|
+ ITEM_NAMES.put(280, "minecraft:stick");
|
|
+ ITEM_NAMES.put(281, "minecraft:bowl");
|
|
+ ITEM_NAMES.put(282, "minecraft:mushroom_stew");
|
|
+ ITEM_NAMES.put(283, "minecraft:golden_sword");
|
|
+ ITEM_NAMES.put(284, "minecraft:golden_shovel");
|
|
+ ITEM_NAMES.put(285, "minecraft:golden_pickaxe");
|
|
+ ITEM_NAMES.put(286, "minecraft:golden_axe");
|
|
+ ITEM_NAMES.put(287, "minecraft:string");
|
|
+ ITEM_NAMES.put(288, "minecraft:feather");
|
|
+ ITEM_NAMES.put(289, "minecraft:gunpowder");
|
|
+ ITEM_NAMES.put(290, "minecraft:wooden_hoe");
|
|
+ ITEM_NAMES.put(291, "minecraft:stone_hoe");
|
|
+ ITEM_NAMES.put(292, "minecraft:iron_hoe");
|
|
+ ITEM_NAMES.put(293, "minecraft:diamond_hoe");
|
|
+ ITEM_NAMES.put(294, "minecraft:golden_hoe");
|
|
+ ITEM_NAMES.put(295, "minecraft:wheat_seeds");
|
|
+ ITEM_NAMES.put(296, "minecraft:wheat");
|
|
+ ITEM_NAMES.put(297, "minecraft:bread");
|
|
+ ITEM_NAMES.put(298, "minecraft:leather_helmet");
|
|
+ ITEM_NAMES.put(299, "minecraft:leather_chestplate");
|
|
+ ITEM_NAMES.put(300, "minecraft:leather_leggings");
|
|
+ ITEM_NAMES.put(301, "minecraft:leather_boots");
|
|
+ ITEM_NAMES.put(302, "minecraft:chainmail_helmet");
|
|
+ ITEM_NAMES.put(303, "minecraft:chainmail_chestplate");
|
|
+ ITEM_NAMES.put(304, "minecraft:chainmail_leggings");
|
|
+ ITEM_NAMES.put(305, "minecraft:chainmail_boots");
|
|
+ ITEM_NAMES.put(306, "minecraft:iron_helmet");
|
|
+ ITEM_NAMES.put(307, "minecraft:iron_chestplate");
|
|
+ ITEM_NAMES.put(308, "minecraft:iron_leggings");
|
|
+ ITEM_NAMES.put(309, "minecraft:iron_boots");
|
|
+ ITEM_NAMES.put(310, "minecraft:diamond_helmet");
|
|
+ ITEM_NAMES.put(311, "minecraft:diamond_chestplate");
|
|
+ ITEM_NAMES.put(312, "minecraft:diamond_leggings");
|
|
+ ITEM_NAMES.put(313, "minecraft:diamond_boots");
|
|
+ ITEM_NAMES.put(314, "minecraft:golden_helmet");
|
|
+ ITEM_NAMES.put(315, "minecraft:golden_chestplate");
|
|
+ ITEM_NAMES.put(316, "minecraft:golden_leggings");
|
|
+ ITEM_NAMES.put(317, "minecraft:golden_boots");
|
|
+ ITEM_NAMES.put(318, "minecraft:flint");
|
|
+ ITEM_NAMES.put(319, "minecraft:porkchop");
|
|
+ ITEM_NAMES.put(320, "minecraft:cooked_porkchop");
|
|
+ ITEM_NAMES.put(321, "minecraft:painting");
|
|
+ ITEM_NAMES.put(322, "minecraft:golden_apple");
|
|
+ ITEM_NAMES.put(323, "minecraft:sign");
|
|
+ ITEM_NAMES.put(324, "minecraft:wooden_door");
|
|
+ ITEM_NAMES.put(325, "minecraft:bucket");
|
|
+ ITEM_NAMES.put(326, "minecraft:water_bucket");
|
|
+ ITEM_NAMES.put(327, "minecraft:lava_bucket");
|
|
+ ITEM_NAMES.put(328, "minecraft:minecart");
|
|
+ ITEM_NAMES.put(329, "minecraft:saddle");
|
|
+ ITEM_NAMES.put(330, "minecraft:iron_door");
|
|
+ ITEM_NAMES.put(331, "minecraft:redstone");
|
|
+ ITEM_NAMES.put(332, "minecraft:snowball");
|
|
+ ITEM_NAMES.put(333, "minecraft:boat");
|
|
+ ITEM_NAMES.put(334, "minecraft:leather");
|
|
+ ITEM_NAMES.put(335, "minecraft:milk_bucket");
|
|
+ ITEM_NAMES.put(336, "minecraft:brick");
|
|
+ ITEM_NAMES.put(337, "minecraft:clay_ball");
|
|
+ ITEM_NAMES.put(338, "minecraft:reeds");
|
|
+ ITEM_NAMES.put(339, "minecraft:paper");
|
|
+ ITEM_NAMES.put(340, "minecraft:book");
|
|
+ ITEM_NAMES.put(341, "minecraft:slime_ball");
|
|
+ ITEM_NAMES.put(342, "minecraft:chest_minecart");
|
|
+ ITEM_NAMES.put(343, "minecraft:furnace_minecart");
|
|
+ ITEM_NAMES.put(344, "minecraft:egg");
|
|
+ ITEM_NAMES.put(345, "minecraft:compass");
|
|
+ ITEM_NAMES.put(346, "minecraft:fishing_rod");
|
|
+ ITEM_NAMES.put(347, "minecraft:clock");
|
|
+ ITEM_NAMES.put(348, "minecraft:glowstone_dust");
|
|
+ ITEM_NAMES.put(349, "minecraft:fish");
|
|
+ ITEM_NAMES.put(350, "minecraft:cooked_fish"); // Fix typo, the game never recognized cooked_fished
|
|
+ ITEM_NAMES.put(351, "minecraft:dye");
|
|
+ ITEM_NAMES.put(352, "minecraft:bone");
|
|
+ ITEM_NAMES.put(353, "minecraft:sugar");
|
|
+ ITEM_NAMES.put(354, "minecraft:cake");
|
|
+ ITEM_NAMES.put(355, "minecraft:bed");
|
|
+ ITEM_NAMES.put(356, "minecraft:repeater");
|
|
+ ITEM_NAMES.put(357, "minecraft:cookie");
|
|
+ ITEM_NAMES.put(358, "minecraft:filled_map");
|
|
+ ITEM_NAMES.put(359, "minecraft:shears");
|
|
+ ITEM_NAMES.put(360, "minecraft:melon");
|
|
+ ITEM_NAMES.put(361, "minecraft:pumpkin_seeds");
|
|
+ ITEM_NAMES.put(362, "minecraft:melon_seeds");
|
|
+ ITEM_NAMES.put(363, "minecraft:beef");
|
|
+ ITEM_NAMES.put(364, "minecraft:cooked_beef");
|
|
+ ITEM_NAMES.put(365, "minecraft:chicken");
|
|
+ ITEM_NAMES.put(366, "minecraft:cooked_chicken");
|
|
+ ITEM_NAMES.put(367, "minecraft:rotten_flesh");
|
|
+ ITEM_NAMES.put(368, "minecraft:ender_pearl");
|
|
+ ITEM_NAMES.put(369, "minecraft:blaze_rod");
|
|
+ ITEM_NAMES.put(370, "minecraft:ghast_tear");
|
|
+ ITEM_NAMES.put(371, "minecraft:gold_nugget");
|
|
+ ITEM_NAMES.put(372, "minecraft:nether_wart");
|
|
+ ITEM_NAMES.put(373, "minecraft:potion");
|
|
+ ITEM_NAMES.put(374, "minecraft:glass_bottle");
|
|
+ ITEM_NAMES.put(375, "minecraft:spider_eye");
|
|
+ ITEM_NAMES.put(376, "minecraft:fermented_spider_eye");
|
|
+ ITEM_NAMES.put(377, "minecraft:blaze_powder");
|
|
+ ITEM_NAMES.put(378, "minecraft:magma_cream");
|
|
+ ITEM_NAMES.put(379, "minecraft:brewing_stand");
|
|
+ ITEM_NAMES.put(380, "minecraft:cauldron");
|
|
+ ITEM_NAMES.put(381, "minecraft:ender_eye");
|
|
+ ITEM_NAMES.put(382, "minecraft:speckled_melon");
|
|
+ ITEM_NAMES.put(383, "minecraft:spawn_egg");
|
|
+ ITEM_NAMES.put(384, "minecraft:experience_bottle");
|
|
+ ITEM_NAMES.put(385, "minecraft:fire_charge");
|
|
+ ITEM_NAMES.put(386, "minecraft:writable_book");
|
|
+ ITEM_NAMES.put(387, "minecraft:written_book");
|
|
+ ITEM_NAMES.put(388, "minecraft:emerald");
|
|
+ ITEM_NAMES.put(389, "minecraft:item_frame");
|
|
+ ITEM_NAMES.put(390, "minecraft:flower_pot");
|
|
+ ITEM_NAMES.put(391, "minecraft:carrot");
|
|
+ ITEM_NAMES.put(392, "minecraft:potato");
|
|
+ ITEM_NAMES.put(393, "minecraft:baked_potato");
|
|
+ ITEM_NAMES.put(394, "minecraft:poisonous_potato");
|
|
+ ITEM_NAMES.put(395, "minecraft:map");
|
|
+ ITEM_NAMES.put(396, "minecraft:golden_carrot");
|
|
+ ITEM_NAMES.put(397, "minecraft:skull");
|
|
+ ITEM_NAMES.put(398, "minecraft:carrot_on_a_stick");
|
|
+ ITEM_NAMES.put(399, "minecraft:nether_star");
|
|
+ ITEM_NAMES.put(400, "minecraft:pumpkin_pie");
|
|
+ ITEM_NAMES.put(401, "minecraft:fireworks");
|
|
+ ITEM_NAMES.put(402, "minecraft:firework_charge");
|
|
+ ITEM_NAMES.put(403, "minecraft:enchanted_book");
|
|
+ ITEM_NAMES.put(404, "minecraft:comparator");
|
|
+ ITEM_NAMES.put(405, "minecraft:netherbrick");
|
|
+ ITEM_NAMES.put(406, "minecraft:quartz");
|
|
+ ITEM_NAMES.put(407, "minecraft:tnt_minecart");
|
|
+ ITEM_NAMES.put(408, "minecraft:hopper_minecart");
|
|
+ ITEM_NAMES.put(417, "minecraft:iron_horse_armor");
|
|
+ ITEM_NAMES.put(418, "minecraft:golden_horse_armor");
|
|
+ ITEM_NAMES.put(419, "minecraft:diamond_horse_armor");
|
|
+ ITEM_NAMES.put(420, "minecraft:lead");
|
|
+ ITEM_NAMES.put(421, "minecraft:name_tag");
|
|
+ ITEM_NAMES.put(422, "minecraft:command_block_minecart");
|
|
+ ITEM_NAMES.put(2256, "minecraft:record_13");
|
|
+ ITEM_NAMES.put(2257, "minecraft:record_cat");
|
|
+ ITEM_NAMES.put(2258, "minecraft:record_blocks");
|
|
+ ITEM_NAMES.put(2259, "minecraft:record_chirp");
|
|
+ ITEM_NAMES.put(2260, "minecraft:record_far");
|
|
+ ITEM_NAMES.put(2261, "minecraft:record_mall");
|
|
+ ITEM_NAMES.put(2262, "minecraft:record_mellohi");
|
|
+ ITEM_NAMES.put(2263, "minecraft:record_stal");
|
|
+ ITEM_NAMES.put(2264, "minecraft:record_strad");
|
|
+ ITEM_NAMES.put(2265, "minecraft:record_ward");
|
|
+ ITEM_NAMES.put(2266, "minecraft:record_11");
|
|
+ ITEM_NAMES.put(2267, "minecraft:record_wait");
|
|
+ // https://github.com/starlis/empirecraft/commit/2da59d1901407fc0c135ef0458c0fe9b016570b3
|
|
+ // It's likely that this is a result of old CB/Spigot behavior still writing ids into items as ints.
|
|
+ // These ids do not appear to be used by regular MC anyways, so I do not see the harm of porting it here.
|
|
+ // Extras can be added if needed
|
|
+ String[] extra = new String[4_000];
|
|
+ // EMC start
|
|
+ extra[409] = "minecraft:prismarine_shard";
|
|
+ extra[410] = "minecraft:prismarine_crystals";
|
|
+ extra[411] = "minecraft:rabbit";
|
|
+ extra[412] = "minecraft:cooked_rabbit";
|
|
+ extra[413] = "minecraft:rabbit_stew";
|
|
+ extra[414] = "minecraft:rabbit_foot";
|
|
+ extra[415] = "minecraft:rabbit_hide";
|
|
+ extra[416] = "minecraft:armor_stand";
|
|
+ extra[423] = "minecraft:mutton";
|
|
+ extra[424] = "minecraft:cooked_mutton";
|
|
+ extra[425] = "minecraft:banner";
|
|
+ extra[426] = "minecraft:end_crystal";
|
|
+ extra[427] = "minecraft:spruce_door";
|
|
+ extra[428] = "minecraft:birch_door";
|
|
+ extra[429] = "minecraft:jungle_door";
|
|
+ extra[430] = "minecraft:acacia_door";
|
|
+ extra[431] = "minecraft:dark_oak_door";
|
|
+ extra[432] = "minecraft:chorus_fruit";
|
|
+ extra[433] = "minecraft:chorus_fruit_popped";
|
|
+ extra[434] = "minecraft:beetroot";
|
|
+ extra[435] = "minecraft:beetroot_seeds";
|
|
+ extra[436] = "minecraft:beetroot_soup";
|
|
+ extra[437] = "minecraft:dragon_breath";
|
|
+ extra[438] = "minecraft:splash_potion";
|
|
+ extra[439] = "minecraft:spectral_arrow";
|
|
+ extra[440] = "minecraft:tipped_arrow";
|
|
+ extra[441] = "minecraft:lingering_potion";
|
|
+ extra[442] = "minecraft:shield";
|
|
+ extra[443] = "minecraft:elytra";
|
|
+ extra[444] = "minecraft:spruce_boat";
|
|
+ extra[445] = "minecraft:birch_boat";
|
|
+ extra[446] = "minecraft:jungle_boat";
|
|
+ extra[447] = "minecraft:acacia_boat";
|
|
+ extra[448] = "minecraft:dark_oak_boat";
|
|
+ extra[449] = "minecraft:totem_of_undying";
|
|
+ extra[450] = "minecraft:shulker_shell";
|
|
+ extra[452] = "minecraft:iron_nugget";
|
|
+ extra[453] = "minecraft:knowledge_book";
|
|
+ // EMC end
|
|
+
|
|
+ // dump extra into map
|
|
+ for (int i = 0; i < extra.length; ++i) {
|
|
+ if (extra[i] != null) {
|
|
+ ITEM_NAMES.put(i, extra[i]);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // Add block ids into conversion as well
|
|
+ // Very old versions of the game handled them, but it seems 1.8.8 did not parse them at all, so no conversion
|
|
+ // was written.
|
|
+ // block ids are only skipped (set to AIR) if there is no 1-1 replacement item.
|
|
+ ITEM_NAMES.put(26, "minecraft:bed"); // bed block
|
|
+ ITEM_NAMES.put(34, ITEM_NAMES.get(0)); // skip (piston head block)
|
|
+ ITEM_NAMES.put(55, "minecraft:redstone"); // redstone wire block
|
|
+ ITEM_NAMES.put(59, ITEM_NAMES.get(0)); // skip (wheat crop block)
|
|
+ ITEM_NAMES.put(63, "minecraft:sign"); // standing sign
|
|
+ ITEM_NAMES.put(64, "minecraft:wooden_door"); // wooden door block
|
|
+ ITEM_NAMES.put(68, "minecraft:sign"); // wall sign
|
|
+ ITEM_NAMES.put(71, "minecraft:iron_door"); // iron door block
|
|
+ ITEM_NAMES.put(74, "minecraft:redstone_ore"); // lit redstone ore block
|
|
+ ITEM_NAMES.put(75, "minecraft:redstone_torch"); // unlit redstone torch
|
|
+ ITEM_NAMES.put(83, "minecraft:reeds"); // sugar cane block
|
|
+ ITEM_NAMES.put(92, "minecraft:cake"); // cake block
|
|
+ ITEM_NAMES.put(93, "minecraft:repeater"); // unpowered repeater block
|
|
+ ITEM_NAMES.put(94, "minecraft:repeater"); // powered repeater block
|
|
+ ITEM_NAMES.put(104, ITEM_NAMES.get(0)); // skip (pumpkin stem)
|
|
+ ITEM_NAMES.put(105, ITEM_NAMES.get(0)); // skip (melon stem)
|
|
+ ITEM_NAMES.put(115, "minecraft:nether_wart"); // nether wart block
|
|
+ ITEM_NAMES.put(117, "minecraft:brewing_stand"); // brewing stand block
|
|
+ ITEM_NAMES.put(118, "minecraft:cauldron"); // cauldron block
|
|
+ ITEM_NAMES.put(124, "minecraft:redstone_lamp"); // lit redstone lamp block
|
|
+ ITEM_NAMES.put(132, ITEM_NAMES.get(0)); // skip (tripwire wire block)
|
|
+ ITEM_NAMES.put(140, "minecraft:flower_pot"); // flower pot block
|
|
+ ITEM_NAMES.put(144, "minecraft:skull"); // skull block
|
|
+ ITEM_NAMES.put(149, "minecraft:comparator"); // unpowered comparator block
|
|
+ ITEM_NAMES.put(150, "minecraft:comparator"); // powered comparator block
|
|
+ // there are technically more, but at some point even older versions pre id -> name conversion didn't even load them.
|
|
+ // (all I know is 1.7.10 does not load them)
|
|
+ // and so given even the vanilla game wouldn't load them, there's no conversion path for them - they were never valid.
|
|
+ }
|
|
+
|
|
+ private static final String[] POTION_NAMES = new String[128];
|
|
+ static {
|
|
+ POTION_NAMES[0] = "minecraft:water";
|
|
+ POTION_NAMES[1] = "minecraft:regeneration";
|
|
+ POTION_NAMES[2] = "minecraft:swiftness";
|
|
+ POTION_NAMES[3] = "minecraft:fire_resistance";
|
|
+ POTION_NAMES[4] = "minecraft:poison";
|
|
+ POTION_NAMES[5] = "minecraft:healing";
|
|
+ POTION_NAMES[6] = "minecraft:night_vision";
|
|
+ POTION_NAMES[7] = null;
|
|
+ POTION_NAMES[8] = "minecraft:weakness";
|
|
+ POTION_NAMES[9] = "minecraft:strength";
|
|
+ POTION_NAMES[10] = "minecraft:slowness";
|
|
+ POTION_NAMES[11] = "minecraft:leaping";
|
|
+ POTION_NAMES[12] = "minecraft:harming";
|
|
+ POTION_NAMES[13] = "minecraft:water_breathing";
|
|
+ POTION_NAMES[14] = "minecraft:invisibility";
|
|
+ POTION_NAMES[15] = null;
|
|
+ POTION_NAMES[16] = "minecraft:awkward";
|
|
+ POTION_NAMES[17] = "minecraft:regeneration";
|
|
+ POTION_NAMES[18] = "minecraft:swiftness";
|
|
+ POTION_NAMES[19] = "minecraft:fire_resistance";
|
|
+ POTION_NAMES[20] = "minecraft:poison";
|
|
+ POTION_NAMES[21] = "minecraft:healing";
|
|
+ POTION_NAMES[22] = "minecraft:night_vision";
|
|
+ POTION_NAMES[23] = null;
|
|
+ POTION_NAMES[24] = "minecraft:weakness";
|
|
+ POTION_NAMES[25] = "minecraft:strength";
|
|
+ POTION_NAMES[26] = "minecraft:slowness";
|
|
+ POTION_NAMES[27] = "minecraft:leaping";
|
|
+ POTION_NAMES[28] = "minecraft:harming";
|
|
+ POTION_NAMES[29] = "minecraft:water_breathing";
|
|
+ POTION_NAMES[30] = "minecraft:invisibility";
|
|
+ POTION_NAMES[31] = null;
|
|
+ POTION_NAMES[32] = "minecraft:thick";
|
|
+ POTION_NAMES[33] = "minecraft:strong_regeneration";
|
|
+ POTION_NAMES[34] = "minecraft:strong_swiftness";
|
|
+ POTION_NAMES[35] = "minecraft:fire_resistance";
|
|
+ POTION_NAMES[36] = "minecraft:strong_poison";
|
|
+ POTION_NAMES[37] = "minecraft:strong_healing";
|
|
+ POTION_NAMES[38] = "minecraft:night_vision";
|
|
+ POTION_NAMES[39] = null;
|
|
+ POTION_NAMES[40] = "minecraft:weakness";
|
|
+ POTION_NAMES[41] = "minecraft:strong_strength";
|
|
+ POTION_NAMES[42] = "minecraft:slowness";
|
|
+ POTION_NAMES[43] = "minecraft:strong_leaping";
|
|
+ POTION_NAMES[44] = "minecraft:strong_harming";
|
|
+ POTION_NAMES[45] = "minecraft:water_breathing";
|
|
+ POTION_NAMES[46] = "minecraft:invisibility";
|
|
+ POTION_NAMES[47] = null;
|
|
+ POTION_NAMES[48] = null;
|
|
+ POTION_NAMES[49] = "minecraft:strong_regeneration";
|
|
+ POTION_NAMES[50] = "minecraft:strong_swiftness";
|
|
+ POTION_NAMES[51] = "minecraft:fire_resistance";
|
|
+ POTION_NAMES[52] = "minecraft:strong_poison";
|
|
+ POTION_NAMES[53] = "minecraft:strong_healing";
|
|
+ POTION_NAMES[54] = "minecraft:night_vision";
|
|
+ POTION_NAMES[55] = null;
|
|
+ POTION_NAMES[56] = "minecraft:weakness";
|
|
+ POTION_NAMES[57] = "minecraft:strong_strength";
|
|
+ POTION_NAMES[58] = "minecraft:slowness";
|
|
+ POTION_NAMES[59] = "minecraft:strong_leaping";
|
|
+ POTION_NAMES[60] = "minecraft:strong_harming";
|
|
+ POTION_NAMES[61] = "minecraft:water_breathing";
|
|
+ POTION_NAMES[62] = "minecraft:invisibility";
|
|
+ POTION_NAMES[63] = null;
|
|
+ POTION_NAMES[64] = "minecraft:mundane";
|
|
+ POTION_NAMES[65] = "minecraft:long_regeneration";
|
|
+ POTION_NAMES[66] = "minecraft:long_swiftness";
|
|
+ POTION_NAMES[67] = "minecraft:long_fire_resistance";
|
|
+ POTION_NAMES[68] = "minecraft:long_poison";
|
|
+ POTION_NAMES[69] = "minecraft:healing";
|
|
+ POTION_NAMES[70] = "minecraft:long_night_vision";
|
|
+ POTION_NAMES[71] = null;
|
|
+ POTION_NAMES[72] = "minecraft:long_weakness";
|
|
+ POTION_NAMES[73] = "minecraft:long_strength";
|
|
+ POTION_NAMES[74] = "minecraft:long_slowness";
|
|
+ POTION_NAMES[75] = "minecraft:long_leaping";
|
|
+ POTION_NAMES[76] = "minecraft:harming";
|
|
+ POTION_NAMES[77] = "minecraft:long_water_breathing";
|
|
+ POTION_NAMES[78] = "minecraft:long_invisibility";
|
|
+ POTION_NAMES[79] = null;
|
|
+ POTION_NAMES[80] = "minecraft:awkward";
|
|
+ POTION_NAMES[81] = "minecraft:long_regeneration";
|
|
+ POTION_NAMES[82] = "minecraft:long_swiftness";
|
|
+ POTION_NAMES[83] = "minecraft:long_fire_resistance";
|
|
+ POTION_NAMES[84] = "minecraft:long_poison";
|
|
+ POTION_NAMES[85] = "minecraft:healing";
|
|
+ POTION_NAMES[86] = "minecraft:long_night_vision";
|
|
+ POTION_NAMES[87] = null;
|
|
+ POTION_NAMES[88] = "minecraft:long_weakness";
|
|
+ POTION_NAMES[89] = "minecraft:long_strength";
|
|
+ POTION_NAMES[90] = "minecraft:long_slowness";
|
|
+ POTION_NAMES[91] = "minecraft:long_leaping";
|
|
+ POTION_NAMES[92] = "minecraft:harming";
|
|
+ POTION_NAMES[93] = "minecraft:long_water_breathing";
|
|
+ POTION_NAMES[94] = "minecraft:long_invisibility";
|
|
+ POTION_NAMES[95] = null;
|
|
+ POTION_NAMES[96] = "minecraft:thick";
|
|
+ POTION_NAMES[97] = "minecraft:regeneration";
|
|
+ POTION_NAMES[98] = "minecraft:swiftness";
|
|
+ POTION_NAMES[99] = "minecraft:long_fire_resistance";
|
|
+ POTION_NAMES[100] = "minecraft:poison";
|
|
+ POTION_NAMES[101] = "minecraft:strong_healing";
|
|
+ POTION_NAMES[102] = "minecraft:long_night_vision";
|
|
+ POTION_NAMES[103] = null;
|
|
+ POTION_NAMES[104] = "minecraft:long_weakness";
|
|
+ POTION_NAMES[105] = "minecraft:strength";
|
|
+ POTION_NAMES[106] = "minecraft:long_slowness";
|
|
+ POTION_NAMES[107] = "minecraft:leaping";
|
|
+ POTION_NAMES[108] = "minecraft:strong_harming";
|
|
+ POTION_NAMES[109] = "minecraft:long_water_breathing";
|
|
+ POTION_NAMES[110] = "minecraft:long_invisibility";
|
|
+ POTION_NAMES[111] = null;
|
|
+ POTION_NAMES[112] = null;
|
|
+ POTION_NAMES[113] = "minecraft:regeneration";
|
|
+ POTION_NAMES[114] = "minecraft:swiftness";
|
|
+ POTION_NAMES[115] = "minecraft:long_fire_resistance";
|
|
+ POTION_NAMES[116] = "minecraft:poison";
|
|
+ POTION_NAMES[117] = "minecraft:strong_healing";
|
|
+ POTION_NAMES[118] = "minecraft:long_night_vision";
|
|
+ POTION_NAMES[119] = null;
|
|
+ POTION_NAMES[120] = "minecraft:long_weakness";
|
|
+ POTION_NAMES[121] = "minecraft:strength";
|
|
+ POTION_NAMES[122] = "minecraft:long_slowness";
|
|
+ POTION_NAMES[123] = "minecraft:leaping";
|
|
+ POTION_NAMES[124] = "minecraft:strong_harming";
|
|
+ POTION_NAMES[125] = "minecraft:long_water_breathing";
|
|
+ POTION_NAMES[126] = "minecraft:long_invisibility";
|
|
+ POTION_NAMES[127] = null;
|
|
+ }
|
|
+
|
|
+ // ret is nullable, you are supposed to log when it does not exist, NOT HIDE IT!
|
|
+ public static String getNameFromId(final int id) {
|
|
+ return ITEM_NAMES.get(id);
|
|
+ }
|
|
+
|
|
+ public static String getPotionNameFromId(final short id) {
|
|
+ return POTION_NAMES[id & 127];
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/HelperSpawnEggNameV105.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/HelperSpawnEggNameV105.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5008c6d28b7f9b730bfaf257a264edcb45c78487
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/HelperSpawnEggNameV105.java
|
|
@@ -0,0 +1,79 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.helpers;
|
|
+
|
|
+public final class HelperSpawnEggNameV105 {
|
|
+
|
|
+ private static final String[] ID_TO_STRING = new String[256];
|
|
+ static {
|
|
+ ID_TO_STRING[1] = "Item";
|
|
+ ID_TO_STRING[2] = "XPOrb";
|
|
+ ID_TO_STRING[7] = "ThrownEgg";
|
|
+ ID_TO_STRING[8] = "LeashKnot";
|
|
+ ID_TO_STRING[9] = "Painting";
|
|
+ ID_TO_STRING[10] = "Arrow";
|
|
+ ID_TO_STRING[11] = "Snowball";
|
|
+ ID_TO_STRING[12] = "Fireball";
|
|
+ ID_TO_STRING[13] = "SmallFireball";
|
|
+ ID_TO_STRING[14] = "ThrownEnderpearl";
|
|
+ ID_TO_STRING[15] = "EyeOfEnderSignal";
|
|
+ ID_TO_STRING[16] = "ThrownPotion";
|
|
+ ID_TO_STRING[17] = "ThrownExpBottle";
|
|
+ ID_TO_STRING[18] = "ItemFrame";
|
|
+ ID_TO_STRING[19] = "WitherSkull";
|
|
+ ID_TO_STRING[20] = "PrimedTnt";
|
|
+ ID_TO_STRING[21] = "FallingSand";
|
|
+ ID_TO_STRING[22] = "FireworksRocketEntity";
|
|
+ ID_TO_STRING[23] = "TippedArrow";
|
|
+ ID_TO_STRING[24] = "SpectralArrow";
|
|
+ ID_TO_STRING[25] = "ShulkerBullet";
|
|
+ ID_TO_STRING[26] = "DragonFireball";
|
|
+ ID_TO_STRING[30] = "ArmorStand";
|
|
+ ID_TO_STRING[41] = "Boat";
|
|
+ ID_TO_STRING[42] = "MinecartRideable";
|
|
+ ID_TO_STRING[43] = "MinecartChest";
|
|
+ ID_TO_STRING[44] = "MinecartFurnace";
|
|
+ ID_TO_STRING[45] = "MinecartTNT";
|
|
+ ID_TO_STRING[46] = "MinecartHopper";
|
|
+ ID_TO_STRING[47] = "MinecartSpawner";
|
|
+ ID_TO_STRING[40] = "MinecartCommandBlock";
|
|
+ ID_TO_STRING[48] = "Mob";
|
|
+ ID_TO_STRING[49] = "Monster";
|
|
+ ID_TO_STRING[50] = "Creeper";
|
|
+ ID_TO_STRING[51] = "Skeleton";
|
|
+ ID_TO_STRING[52] = "Spider";
|
|
+ ID_TO_STRING[53] = "Giant";
|
|
+ ID_TO_STRING[54] = "Zombie";
|
|
+ ID_TO_STRING[55] = "Slime";
|
|
+ ID_TO_STRING[56] = "Ghast";
|
|
+ ID_TO_STRING[57] = "PigZombie";
|
|
+ ID_TO_STRING[58] = "Enderman";
|
|
+ ID_TO_STRING[59] = "CaveSpider";
|
|
+ ID_TO_STRING[60] = "Silverfish";
|
|
+ ID_TO_STRING[61] = "Blaze";
|
|
+ ID_TO_STRING[62] = "LavaSlime";
|
|
+ ID_TO_STRING[63] = "EnderDragon";
|
|
+ ID_TO_STRING[64] = "WitherBoss";
|
|
+ ID_TO_STRING[65] = "Bat";
|
|
+ ID_TO_STRING[66] = "Witch";
|
|
+ ID_TO_STRING[67] = "Endermite";
|
|
+ ID_TO_STRING[68] = "Guardian";
|
|
+ ID_TO_STRING[69] = "Shulker";
|
|
+ ID_TO_STRING[90] = "Pig";
|
|
+ ID_TO_STRING[91] = "Sheep";
|
|
+ ID_TO_STRING[92] = "Cow";
|
|
+ ID_TO_STRING[93] = "Chicken";
|
|
+ ID_TO_STRING[94] = "Squid";
|
|
+ ID_TO_STRING[95] = "Wolf";
|
|
+ ID_TO_STRING[96] = "MushroomCow";
|
|
+ ID_TO_STRING[97] = "SnowMan";
|
|
+ ID_TO_STRING[98] = "Ozelot";
|
|
+ ID_TO_STRING[99] = "VillagerGolem";
|
|
+ ID_TO_STRING[100] = "EntityHorse";
|
|
+ ID_TO_STRING[101] = "Rabbit";
|
|
+ ID_TO_STRING[120] = "Villager";
|
|
+ ID_TO_STRING[200] = "EnderCrystal";
|
|
+ }
|
|
+
|
|
+ public static String getSpawnNameFromId(final short id) {
|
|
+ return ID_TO_STRING[id & 255];
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/RenameHelper.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/RenameHelper.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..fb235cf3b597abb8c6557def215efac7cc1a53f5
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/helpers/RenameHelper.java
|
|
@@ -0,0 +1,58 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.helpers;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import java.util.ArrayList;
|
|
+import java.util.List;
|
|
+import java.util.function.Function;
|
|
+
|
|
+public final class RenameHelper {
|
|
+
|
|
+ // assumes no two or more entries are renamed to a single value, otherwise result will be only one of them will win
|
|
+ // and there is no defined winner in such a case
|
|
+ public static void renameKeys(final MapType<String> data, final Function<String, String> renamer) {
|
|
+ boolean needsRename = false;
|
|
+ for (final String key : data.keys()) {
|
|
+ if (renamer.apply(key) != null) {
|
|
+ needsRename = true;
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ if (!needsRename) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final List<String> newKeys = new ArrayList<>();
|
|
+ final List<Object> newValues = new ArrayList<>();
|
|
+
|
|
+ for (final String key : new ArrayList<>(data.keys())) {
|
|
+ final String renamed = renamer.apply(key);
|
|
+
|
|
+ if (renamed != null) {
|
|
+ newValues.add(data.getGeneric(key));
|
|
+ newKeys.add(renamed);
|
|
+ data.remove(key);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // insert new keys
|
|
+ for (int i = 0, len = newKeys.size(); i < len; ++i) {
|
|
+ final String key = newKeys.get(i);
|
|
+ final Object value = newValues.get(i);
|
|
+
|
|
+ data.setGeneric(key, value);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // Clobbers anything in toKey if fromKey exists
|
|
+ public static void renameSingle(final MapType<String> data, final String fromKey, final String toKey) {
|
|
+ final Object value = data.getGeneric(fromKey);
|
|
+ if (value != null) {
|
|
+ data.remove(fromKey);
|
|
+ data.setGeneric(toKey, value);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private RenameHelper() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/itemname/ConverterAbstractItemRename.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/itemname/ConverterAbstractItemRename.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..94569f0ccff0d3a09eafd4ba73572d9db0a0ac5b
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/itemname/ConverterAbstractItemRename.java
|
|
@@ -0,0 +1,18 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.itemname;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.ConverterAbstractStringValueTypeRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import java.util.function.Function;
|
|
+
|
|
+public final class ConverterAbstractItemRename {
|
|
+
|
|
+ private ConverterAbstractItemRename() {}
|
|
+
|
|
+ public static void register(final int version, final Function<String, String> renamer) {
|
|
+ register(version, 0, renamer);
|
|
+ }
|
|
+ public static void register(final int version, final int subVersion, final Function<String, String> renamer) {
|
|
+ ConverterAbstractStringValueTypeRename.register(version, subVersion, MCTypeRegistry.ITEM_NAME, renamer);
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/itemstack/ConverterFlattenItemStack.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/itemstack/ConverterFlattenItemStack.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..48a1fdd4e8a9ba334ff264820b20e5f4224b3ce6
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/itemstack/ConverterFlattenItemStack.java
|
|
@@ -0,0 +1,461 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.itemstack;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+import org.apache.logging.log4j.LogManager;
|
|
+import org.apache.logging.log4j.Logger;
|
|
+
|
|
+import java.util.Arrays;
|
|
+import java.util.HashMap;
|
|
+import java.util.HashSet;
|
|
+import java.util.Map;
|
|
+import java.util.Set;
|
|
+
|
|
+public final class ConverterFlattenItemStack extends DataConverter<MapType<String>, MapType<String>> {
|
|
+
|
|
+ private static final Logger LOGGER = LogManager.getLogger();
|
|
+
|
|
+ // Map of "id.damage" -> "flattened id"
|
|
+ private static final Map<String, String> FLATTEN_MAP = new HashMap<>();
|
|
+ static {
|
|
+ FLATTEN_MAP.put("minecraft:stone.0", "minecraft:stone");
|
|
+ FLATTEN_MAP.put("minecraft:stone.1", "minecraft:granite");
|
|
+ FLATTEN_MAP.put("minecraft:stone.2", "minecraft:polished_granite");
|
|
+ FLATTEN_MAP.put("minecraft:stone.3", "minecraft:diorite");
|
|
+ FLATTEN_MAP.put("minecraft:stone.4", "minecraft:polished_diorite");
|
|
+ FLATTEN_MAP.put("minecraft:stone.5", "minecraft:andesite");
|
|
+ FLATTEN_MAP.put("minecraft:stone.6", "minecraft:polished_andesite");
|
|
+ FLATTEN_MAP.put("minecraft:dirt.0", "minecraft:dirt");
|
|
+ FLATTEN_MAP.put("minecraft:dirt.1", "minecraft:coarse_dirt");
|
|
+ FLATTEN_MAP.put("minecraft:dirt.2", "minecraft:podzol");
|
|
+ FLATTEN_MAP.put("minecraft:leaves.0", "minecraft:oak_leaves");
|
|
+ FLATTEN_MAP.put("minecraft:leaves.1", "minecraft:spruce_leaves");
|
|
+ FLATTEN_MAP.put("minecraft:leaves.2", "minecraft:birch_leaves");
|
|
+ FLATTEN_MAP.put("minecraft:leaves.3", "minecraft:jungle_leaves");
|
|
+ FLATTEN_MAP.put("minecraft:leaves2.0", "minecraft:acacia_leaves");
|
|
+ FLATTEN_MAP.put("minecraft:leaves2.1", "minecraft:dark_oak_leaves");
|
|
+ FLATTEN_MAP.put("minecraft:log.0", "minecraft:oak_log");
|
|
+ FLATTEN_MAP.put("minecraft:log.1", "minecraft:spruce_log");
|
|
+ FLATTEN_MAP.put("minecraft:log.2", "minecraft:birch_log");
|
|
+ FLATTEN_MAP.put("minecraft:log.3", "minecraft:jungle_log");
|
|
+ FLATTEN_MAP.put("minecraft:log2.0", "minecraft:acacia_log");
|
|
+ FLATTEN_MAP.put("minecraft:log2.1", "minecraft:dark_oak_log");
|
|
+ FLATTEN_MAP.put("minecraft:sapling.0", "minecraft:oak_sapling");
|
|
+ FLATTEN_MAP.put("minecraft:sapling.1", "minecraft:spruce_sapling");
|
|
+ FLATTEN_MAP.put("minecraft:sapling.2", "minecraft:birch_sapling");
|
|
+ FLATTEN_MAP.put("minecraft:sapling.3", "minecraft:jungle_sapling");
|
|
+ FLATTEN_MAP.put("minecraft:sapling.4", "minecraft:acacia_sapling");
|
|
+ FLATTEN_MAP.put("minecraft:sapling.5", "minecraft:dark_oak_sapling");
|
|
+ FLATTEN_MAP.put("minecraft:planks.0", "minecraft:oak_planks");
|
|
+ FLATTEN_MAP.put("minecraft:planks.1", "minecraft:spruce_planks");
|
|
+ FLATTEN_MAP.put("minecraft:planks.2", "minecraft:birch_planks");
|
|
+ FLATTEN_MAP.put("minecraft:planks.3", "minecraft:jungle_planks");
|
|
+ FLATTEN_MAP.put("minecraft:planks.4", "minecraft:acacia_planks");
|
|
+ FLATTEN_MAP.put("minecraft:planks.5", "minecraft:dark_oak_planks");
|
|
+ FLATTEN_MAP.put("minecraft:sand.0", "minecraft:sand");
|
|
+ FLATTEN_MAP.put("minecraft:sand.1", "minecraft:red_sand");
|
|
+ FLATTEN_MAP.put("minecraft:quartz_block.0", "minecraft:quartz_block");
|
|
+ FLATTEN_MAP.put("minecraft:quartz_block.1", "minecraft:chiseled_quartz_block");
|
|
+ FLATTEN_MAP.put("minecraft:quartz_block.2", "minecraft:quartz_pillar");
|
|
+ FLATTEN_MAP.put("minecraft:anvil.0", "minecraft:anvil");
|
|
+ FLATTEN_MAP.put("minecraft:anvil.1", "minecraft:chipped_anvil");
|
|
+ FLATTEN_MAP.put("minecraft:anvil.2", "minecraft:damaged_anvil");
|
|
+ FLATTEN_MAP.put("minecraft:wool.0", "minecraft:white_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.1", "minecraft:orange_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.2", "minecraft:magenta_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.3", "minecraft:light_blue_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.4", "minecraft:yellow_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.5", "minecraft:lime_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.6", "minecraft:pink_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.7", "minecraft:gray_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.8", "minecraft:light_gray_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.9", "minecraft:cyan_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.10", "minecraft:purple_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.11", "minecraft:blue_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.12", "minecraft:brown_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.13", "minecraft:green_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.14", "minecraft:red_wool");
|
|
+ FLATTEN_MAP.put("minecraft:wool.15", "minecraft:black_wool");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.0", "minecraft:white_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.1", "minecraft:orange_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.2", "minecraft:magenta_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.3", "minecraft:light_blue_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.4", "minecraft:yellow_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.5", "minecraft:lime_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.6", "minecraft:pink_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.7", "minecraft:gray_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.8", "minecraft:light_gray_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.9", "minecraft:cyan_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.10", "minecraft:purple_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.11", "minecraft:blue_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.12", "minecraft:brown_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.13", "minecraft:green_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.14", "minecraft:red_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:carpet.15", "minecraft:black_carpet");
|
|
+ FLATTEN_MAP.put("minecraft:hardened_clay.0", "minecraft:terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.0", "minecraft:white_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.1", "minecraft:orange_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.2", "minecraft:magenta_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.3", "minecraft:light_blue_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.4", "minecraft:yellow_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.5", "minecraft:lime_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.6", "minecraft:pink_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.7", "minecraft:gray_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.8", "minecraft:light_gray_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.9", "minecraft:cyan_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.10", "minecraft:purple_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.11", "minecraft:blue_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.12", "minecraft:brown_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.13", "minecraft:green_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.14", "minecraft:red_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_hardened_clay.15", "minecraft:black_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:silver_glazed_terracotta.0", "minecraft:light_gray_glazed_terracotta");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.0", "minecraft:white_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.1", "minecraft:orange_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.2", "minecraft:magenta_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.3", "minecraft:light_blue_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.4", "minecraft:yellow_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.5", "minecraft:lime_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.6", "minecraft:pink_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.7", "minecraft:gray_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.8", "minecraft:light_gray_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.9", "minecraft:cyan_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.10", "minecraft:purple_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.11", "minecraft:blue_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.12", "minecraft:brown_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.13", "minecraft:green_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.14", "minecraft:red_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass.15", "minecraft:black_stained_glass");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.0", "minecraft:white_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.1", "minecraft:orange_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.2", "minecraft:magenta_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.3", "minecraft:light_blue_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.4", "minecraft:yellow_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.5", "minecraft:lime_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.6", "minecraft:pink_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.7", "minecraft:gray_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.8", "minecraft:light_gray_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.9", "minecraft:cyan_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.10", "minecraft:purple_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.11", "minecraft:blue_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.12", "minecraft:brown_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.13", "minecraft:green_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.14", "minecraft:red_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:stained_glass_pane.15", "minecraft:black_stained_glass_pane");
|
|
+ FLATTEN_MAP.put("minecraft:prismarine.0", "minecraft:prismarine");
|
|
+ FLATTEN_MAP.put("minecraft:prismarine.1", "minecraft:prismarine_bricks");
|
|
+ FLATTEN_MAP.put("minecraft:prismarine.2", "minecraft:dark_prismarine");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.0", "minecraft:white_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.1", "minecraft:orange_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.2", "minecraft:magenta_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.3", "minecraft:light_blue_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.4", "minecraft:yellow_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.5", "minecraft:lime_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.6", "minecraft:pink_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.7", "minecraft:gray_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.8", "minecraft:light_gray_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.9", "minecraft:cyan_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.10", "minecraft:purple_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.11", "minecraft:blue_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.12", "minecraft:brown_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.13", "minecraft:green_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.14", "minecraft:red_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete.15", "minecraft:black_concrete");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.0", "minecraft:white_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.1", "minecraft:orange_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.2", "minecraft:magenta_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.3", "minecraft:light_blue_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.4", "minecraft:yellow_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.5", "minecraft:lime_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.6", "minecraft:pink_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.7", "minecraft:gray_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.8", "minecraft:light_gray_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.9", "minecraft:cyan_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.10", "minecraft:purple_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.11", "minecraft:blue_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.12", "minecraft:brown_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.13", "minecraft:green_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.14", "minecraft:red_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:concrete_powder.15", "minecraft:black_concrete_powder");
|
|
+ FLATTEN_MAP.put("minecraft:cobblestone_wall.0", "minecraft:cobblestone_wall");
|
|
+ FLATTEN_MAP.put("minecraft:cobblestone_wall.1", "minecraft:mossy_cobblestone_wall");
|
|
+ FLATTEN_MAP.put("minecraft:sandstone.0", "minecraft:sandstone");
|
|
+ FLATTEN_MAP.put("minecraft:sandstone.1", "minecraft:chiseled_sandstone");
|
|
+ FLATTEN_MAP.put("minecraft:sandstone.2", "minecraft:cut_sandstone");
|
|
+ FLATTEN_MAP.put("minecraft:red_sandstone.0", "minecraft:red_sandstone");
|
|
+ FLATTEN_MAP.put("minecraft:red_sandstone.1", "minecraft:chiseled_red_sandstone");
|
|
+ FLATTEN_MAP.put("minecraft:red_sandstone.2", "minecraft:cut_red_sandstone");
|
|
+ FLATTEN_MAP.put("minecraft:stonebrick.0", "minecraft:stone_bricks");
|
|
+ FLATTEN_MAP.put("minecraft:stonebrick.1", "minecraft:mossy_stone_bricks");
|
|
+ FLATTEN_MAP.put("minecraft:stonebrick.2", "minecraft:cracked_stone_bricks");
|
|
+ FLATTEN_MAP.put("minecraft:stonebrick.3", "minecraft:chiseled_stone_bricks");
|
|
+ FLATTEN_MAP.put("minecraft:monster_egg.0", "minecraft:infested_stone");
|
|
+ FLATTEN_MAP.put("minecraft:monster_egg.1", "minecraft:infested_cobblestone");
|
|
+ FLATTEN_MAP.put("minecraft:monster_egg.2", "minecraft:infested_stone_bricks");
|
|
+ FLATTEN_MAP.put("minecraft:monster_egg.3", "minecraft:infested_mossy_stone_bricks");
|
|
+ FLATTEN_MAP.put("minecraft:monster_egg.4", "minecraft:infested_cracked_stone_bricks");
|
|
+ FLATTEN_MAP.put("minecraft:monster_egg.5", "minecraft:infested_chiseled_stone_bricks");
|
|
+ FLATTEN_MAP.put("minecraft:yellow_flower.0", "minecraft:dandelion");
|
|
+ FLATTEN_MAP.put("minecraft:red_flower.0", "minecraft:poppy");
|
|
+ FLATTEN_MAP.put("minecraft:red_flower.1", "minecraft:blue_orchid");
|
|
+ FLATTEN_MAP.put("minecraft:red_flower.2", "minecraft:allium");
|
|
+ FLATTEN_MAP.put("minecraft:red_flower.3", "minecraft:azure_bluet");
|
|
+ FLATTEN_MAP.put("minecraft:red_flower.4", "minecraft:red_tulip");
|
|
+ FLATTEN_MAP.put("minecraft:red_flower.5", "minecraft:orange_tulip");
|
|
+ FLATTEN_MAP.put("minecraft:red_flower.6", "minecraft:white_tulip");
|
|
+ FLATTEN_MAP.put("minecraft:red_flower.7", "minecraft:pink_tulip");
|
|
+ FLATTEN_MAP.put("minecraft:red_flower.8", "minecraft:oxeye_daisy");
|
|
+ FLATTEN_MAP.put("minecraft:double_plant.0", "minecraft:sunflower");
|
|
+ FLATTEN_MAP.put("minecraft:double_plant.1", "minecraft:lilac");
|
|
+ FLATTEN_MAP.put("minecraft:double_plant.2", "minecraft:tall_grass");
|
|
+ FLATTEN_MAP.put("minecraft:double_plant.3", "minecraft:large_fern");
|
|
+ FLATTEN_MAP.put("minecraft:double_plant.4", "minecraft:rose_bush");
|
|
+ FLATTEN_MAP.put("minecraft:double_plant.5", "minecraft:peony");
|
|
+ FLATTEN_MAP.put("minecraft:deadbush.0", "minecraft:dead_bush");
|
|
+ FLATTEN_MAP.put("minecraft:tallgrass.0", "minecraft:dead_bush");
|
|
+ FLATTEN_MAP.put("minecraft:tallgrass.1", "minecraft:grass");
|
|
+ FLATTEN_MAP.put("minecraft:tallgrass.2", "minecraft:fern");
|
|
+ FLATTEN_MAP.put("minecraft:sponge.0", "minecraft:sponge");
|
|
+ FLATTEN_MAP.put("minecraft:sponge.1", "minecraft:wet_sponge");
|
|
+ FLATTEN_MAP.put("minecraft:purpur_slab.0", "minecraft:purpur_slab");
|
|
+ FLATTEN_MAP.put("minecraft:stone_slab.0", "minecraft:stone_slab");
|
|
+ FLATTEN_MAP.put("minecraft:stone_slab.1", "minecraft:sandstone_slab");
|
|
+ FLATTEN_MAP.put("minecraft:stone_slab.2", "minecraft:petrified_oak_slab");
|
|
+ FLATTEN_MAP.put("minecraft:stone_slab.3", "minecraft:cobblestone_slab");
|
|
+ FLATTEN_MAP.put("minecraft:stone_slab.4", "minecraft:brick_slab");
|
|
+ FLATTEN_MAP.put("minecraft:stone_slab.5", "minecraft:stone_brick_slab");
|
|
+ FLATTEN_MAP.put("minecraft:stone_slab.6", "minecraft:nether_brick_slab");
|
|
+ FLATTEN_MAP.put("minecraft:stone_slab.7", "minecraft:quartz_slab");
|
|
+ FLATTEN_MAP.put("minecraft:stone_slab2.0", "minecraft:red_sandstone_slab");
|
|
+ FLATTEN_MAP.put("minecraft:wooden_slab.0", "minecraft:oak_slab");
|
|
+ FLATTEN_MAP.put("minecraft:wooden_slab.1", "minecraft:spruce_slab");
|
|
+ FLATTEN_MAP.put("minecraft:wooden_slab.2", "minecraft:birch_slab");
|
|
+ FLATTEN_MAP.put("minecraft:wooden_slab.3", "minecraft:jungle_slab");
|
|
+ FLATTEN_MAP.put("minecraft:wooden_slab.4", "minecraft:acacia_slab");
|
|
+ FLATTEN_MAP.put("minecraft:wooden_slab.5", "minecraft:dark_oak_slab");
|
|
+ FLATTEN_MAP.put("minecraft:coal.0", "minecraft:coal");
|
|
+ FLATTEN_MAP.put("minecraft:coal.1", "minecraft:charcoal");
|
|
+ FLATTEN_MAP.put("minecraft:fish.0", "minecraft:cod");
|
|
+ FLATTEN_MAP.put("minecraft:fish.1", "minecraft:salmon");
|
|
+ FLATTEN_MAP.put("minecraft:fish.2", "minecraft:clownfish");
|
|
+ FLATTEN_MAP.put("minecraft:fish.3", "minecraft:pufferfish");
|
|
+ FLATTEN_MAP.put("minecraft:cooked_fish.0", "minecraft:cooked_cod");
|
|
+ FLATTEN_MAP.put("minecraft:cooked_fish.1", "minecraft:cooked_salmon");
|
|
+ FLATTEN_MAP.put("minecraft:skull.0", "minecraft:skeleton_skull");
|
|
+ FLATTEN_MAP.put("minecraft:skull.1", "minecraft:wither_skeleton_skull");
|
|
+ FLATTEN_MAP.put("minecraft:skull.2", "minecraft:zombie_head");
|
|
+ FLATTEN_MAP.put("minecraft:skull.3", "minecraft:player_head");
|
|
+ FLATTEN_MAP.put("minecraft:skull.4", "minecraft:creeper_head");
|
|
+ FLATTEN_MAP.put("minecraft:skull.5", "minecraft:dragon_head");
|
|
+ FLATTEN_MAP.put("minecraft:golden_apple.0", "minecraft:golden_apple");
|
|
+ FLATTEN_MAP.put("minecraft:golden_apple.1", "minecraft:enchanted_golden_apple");
|
|
+ FLATTEN_MAP.put("minecraft:fireworks.0", "minecraft:firework_rocket");
|
|
+ FLATTEN_MAP.put("minecraft:firework_charge.0", "minecraft:firework_star");
|
|
+ FLATTEN_MAP.put("minecraft:dye.0", "minecraft:ink_sac");
|
|
+ FLATTEN_MAP.put("minecraft:dye.1", "minecraft:rose_red");
|
|
+ FLATTEN_MAP.put("minecraft:dye.2", "minecraft:cactus_green");
|
|
+ FLATTEN_MAP.put("minecraft:dye.3", "minecraft:cocoa_beans");
|
|
+ FLATTEN_MAP.put("minecraft:dye.4", "minecraft:lapis_lazuli");
|
|
+ FLATTEN_MAP.put("minecraft:dye.5", "minecraft:purple_dye");
|
|
+ FLATTEN_MAP.put("minecraft:dye.6", "minecraft:cyan_dye");
|
|
+ FLATTEN_MAP.put("minecraft:dye.7", "minecraft:light_gray_dye");
|
|
+ FLATTEN_MAP.put("minecraft:dye.8", "minecraft:gray_dye");
|
|
+ FLATTEN_MAP.put("minecraft:dye.9", "minecraft:pink_dye");
|
|
+ FLATTEN_MAP.put("minecraft:dye.10", "minecraft:lime_dye");
|
|
+ FLATTEN_MAP.put("minecraft:dye.11", "minecraft:dandelion_yellow");
|
|
+ FLATTEN_MAP.put("minecraft:dye.12", "minecraft:light_blue_dye");
|
|
+ FLATTEN_MAP.put("minecraft:dye.13", "minecraft:magenta_dye");
|
|
+ FLATTEN_MAP.put("minecraft:dye.14", "minecraft:orange_dye");
|
|
+ FLATTEN_MAP.put("minecraft:dye.15", "minecraft:bone_meal");
|
|
+ FLATTEN_MAP.put("minecraft:silver_shulker_box.0", "minecraft:light_gray_shulker_box");
|
|
+ FLATTEN_MAP.put("minecraft:fence.0", "minecraft:oak_fence");
|
|
+ FLATTEN_MAP.put("minecraft:fence_gate.0", "minecraft:oak_fence_gate");
|
|
+ FLATTEN_MAP.put("minecraft:wooden_door.0", "minecraft:oak_door");
|
|
+ FLATTEN_MAP.put("minecraft:boat.0", "minecraft:oak_boat");
|
|
+ FLATTEN_MAP.put("minecraft:lit_pumpkin.0", "minecraft:jack_o_lantern");
|
|
+ FLATTEN_MAP.put("minecraft:pumpkin.0", "minecraft:carved_pumpkin");
|
|
+ FLATTEN_MAP.put("minecraft:trapdoor.0", "minecraft:oak_trapdoor");
|
|
+ FLATTEN_MAP.put("minecraft:nether_brick.0", "minecraft:nether_bricks");
|
|
+ FLATTEN_MAP.put("minecraft:red_nether_brick.0", "minecraft:red_nether_bricks");
|
|
+ FLATTEN_MAP.put("minecraft:netherbrick.0", "minecraft:nether_brick");
|
|
+ FLATTEN_MAP.put("minecraft:wooden_button.0", "minecraft:oak_button");
|
|
+ FLATTEN_MAP.put("minecraft:wooden_pressure_plate.0", "minecraft:oak_pressure_plate");
|
|
+ FLATTEN_MAP.put("minecraft:noteblock.0", "minecraft:note_block");
|
|
+ FLATTEN_MAP.put("minecraft:bed.0", "minecraft:white_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.1", "minecraft:orange_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.2", "minecraft:magenta_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.3", "minecraft:light_blue_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.4", "minecraft:yellow_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.5", "minecraft:lime_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.6", "minecraft:pink_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.7", "minecraft:gray_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.8", "minecraft:light_gray_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.9", "minecraft:cyan_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.10", "minecraft:purple_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.11", "minecraft:blue_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.12", "minecraft:brown_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.13", "minecraft:green_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.14", "minecraft:red_bed");
|
|
+ FLATTEN_MAP.put("minecraft:bed.15", "minecraft:black_bed");
|
|
+ FLATTEN_MAP.put("minecraft:banner.15", "minecraft:white_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.14", "minecraft:orange_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.13", "minecraft:magenta_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.12", "minecraft:light_blue_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.11", "minecraft:yellow_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.10", "minecraft:lime_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.9", "minecraft:pink_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.8", "minecraft:gray_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.7", "minecraft:light_gray_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.6", "minecraft:cyan_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.5", "minecraft:purple_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.4", "minecraft:blue_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.3", "minecraft:brown_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.2", "minecraft:green_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.1", "minecraft:red_banner");
|
|
+ FLATTEN_MAP.put("minecraft:banner.0", "minecraft:black_banner");
|
|
+ FLATTEN_MAP.put("minecraft:grass.0", "minecraft:grass_block");
|
|
+ FLATTEN_MAP.put("minecraft:brick_block.0", "minecraft:bricks");
|
|
+ FLATTEN_MAP.put("minecraft:end_bricks.0", "minecraft:end_stone_bricks");
|
|
+ FLATTEN_MAP.put("minecraft:golden_rail.0", "minecraft:powered_rail");
|
|
+ FLATTEN_MAP.put("minecraft:magma.0", "minecraft:magma_block");
|
|
+ FLATTEN_MAP.put("minecraft:quartz_ore.0", "minecraft:nether_quartz_ore");
|
|
+ FLATTEN_MAP.put("minecraft:reeds.0", "minecraft:sugar_cane");
|
|
+ FLATTEN_MAP.put("minecraft:slime.0", "minecraft:slime_block");
|
|
+ FLATTEN_MAP.put("minecraft:stone_stairs.0", "minecraft:cobblestone_stairs");
|
|
+ FLATTEN_MAP.put("minecraft:waterlily.0", "minecraft:lily_pad");
|
|
+ FLATTEN_MAP.put("minecraft:web.0", "minecraft:cobweb");
|
|
+ FLATTEN_MAP.put("minecraft:snow.0", "minecraft:snow_block");
|
|
+ FLATTEN_MAP.put("minecraft:snow_layer.0", "minecraft:snow");
|
|
+ FLATTEN_MAP.put("minecraft:record_11.0", "minecraft:music_disc_11");
|
|
+ FLATTEN_MAP.put("minecraft:record_13.0", "minecraft:music_disc_13");
|
|
+ FLATTEN_MAP.put("minecraft:record_blocks.0", "minecraft:music_disc_blocks");
|
|
+ FLATTEN_MAP.put("minecraft:record_cat.0", "minecraft:music_disc_cat");
|
|
+ FLATTEN_MAP.put("minecraft:record_chirp.0", "minecraft:music_disc_chirp");
|
|
+ FLATTEN_MAP.put("minecraft:record_far.0", "minecraft:music_disc_far");
|
|
+ FLATTEN_MAP.put("minecraft:record_mall.0", "minecraft:music_disc_mall");
|
|
+ FLATTEN_MAP.put("minecraft:record_mellohi.0", "minecraft:music_disc_mellohi");
|
|
+ FLATTEN_MAP.put("minecraft:record_stal.0", "minecraft:music_disc_stal");
|
|
+ FLATTEN_MAP.put("minecraft:record_strad.0", "minecraft:music_disc_strad");
|
|
+ FLATTEN_MAP.put("minecraft:record_wait.0", "minecraft:music_disc_wait");
|
|
+ FLATTEN_MAP.put("minecraft:record_ward.0", "minecraft:music_disc_ward");
|
|
+ }
|
|
+
|
|
+ // maps out ids requiring flattening
|
|
+ private static final Set<String> IDS_REQUIRING_FLATTENING = new HashSet<>();
|
|
+ static {
|
|
+ for (final String key : FLATTEN_MAP.keySet()) {
|
|
+ IDS_REQUIRING_FLATTENING.add(key.substring(0, key.indexOf('.')));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // Damage tag is moved from the ItemStack base tag to the ItemStack tag, and we only want to migrate that
|
|
+ // for items that actually require it for damage purposes (Remember, old damage was used to differentiate item types)
|
|
+ // It should be noted that this ID set should not be included in the flattening map, because damage for these items
|
|
+ // is actual damage and not a subtype specifier
|
|
+ private static final Set<String> ITEMS_WITH_DAMAGE = new HashSet<>(Arrays.asList(
|
|
+ "minecraft:bow",
|
|
+ "minecraft:carrot_on_a_stick",
|
|
+ "minecraft:chainmail_boots",
|
|
+ "minecraft:chainmail_chestplate",
|
|
+ "minecraft:chainmail_helmet",
|
|
+ "minecraft:chainmail_leggings",
|
|
+ "minecraft:diamond_axe",
|
|
+ "minecraft:diamond_boots",
|
|
+ "minecraft:diamond_chestplate",
|
|
+ "minecraft:diamond_helmet",
|
|
+ "minecraft:diamond_hoe",
|
|
+ "minecraft:diamond_leggings",
|
|
+ "minecraft:diamond_pickaxe",
|
|
+ "minecraft:diamond_shovel",
|
|
+ "minecraft:diamond_sword",
|
|
+ "minecraft:elytra",
|
|
+ "minecraft:fishing_rod",
|
|
+ "minecraft:flint_and_steel",
|
|
+ "minecraft:golden_axe",
|
|
+ "minecraft:golden_boots",
|
|
+ "minecraft:golden_chestplate",
|
|
+ "minecraft:golden_helmet",
|
|
+ "minecraft:golden_hoe",
|
|
+ "minecraft:golden_leggings",
|
|
+ "minecraft:golden_pickaxe",
|
|
+ "minecraft:golden_shovel",
|
|
+ "minecraft:golden_sword",
|
|
+ "minecraft:iron_axe",
|
|
+ "minecraft:iron_boots",
|
|
+ "minecraft:iron_chestplate",
|
|
+ "minecraft:iron_helmet",
|
|
+ "minecraft:iron_hoe",
|
|
+ "minecraft:iron_leggings",
|
|
+ "minecraft:iron_pickaxe",
|
|
+ "minecraft:iron_shovel",
|
|
+ "minecraft:iron_sword",
|
|
+ "minecraft:leather_boots",
|
|
+ "minecraft:leather_chestplate",
|
|
+ "minecraft:leather_helmet",
|
|
+ "minecraft:leather_leggings",
|
|
+ "minecraft:shears",
|
|
+ "minecraft:shield",
|
|
+ "minecraft:stone_axe",
|
|
+ "minecraft:stone_hoe",
|
|
+ "minecraft:stone_pickaxe",
|
|
+ "minecraft:stone_shovel",
|
|
+ "minecraft:stone_sword",
|
|
+ "minecraft:wooden_axe",
|
|
+ "minecraft:wooden_hoe",
|
|
+ "minecraft:wooden_pickaxe",
|
|
+ "minecraft:wooden_shovel",
|
|
+ "minecraft:wooden_sword"
|
|
+ ));
|
|
+
|
|
+ public ConverterFlattenItemStack() {
|
|
+ super(MCVersions.V17W47A, 4);
|
|
+ }
|
|
+
|
|
+ public static String flattenItem(final String oldName, final int data) {
|
|
+ if (IDS_REQUIRING_FLATTENING.contains(oldName)) {
|
|
+ final String flattened = FLATTEN_MAP.get(oldName + '.' + data);
|
|
+ return flattened == null ? FLATTEN_MAP.get(oldName.concat(".0")) : flattened;
|
|
+ } else {
|
|
+ return null;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String id = data.getString("id");
|
|
+
|
|
+ if (id == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final int damage = data.getInt("Damage");
|
|
+ data.remove("Damage");
|
|
+
|
|
+ if (IDS_REQUIRING_FLATTENING.contains(id)) {
|
|
+ String remap = FLATTEN_MAP.get(id + '.' + damage);
|
|
+ if (remap == null) {
|
|
+ remap = FLATTEN_MAP.get(id.concat(".0"));
|
|
+ // this shouldn't be null
|
|
+ }
|
|
+ if (remap != null) {
|
|
+ data.setString("id", remap);
|
|
+ } else {
|
|
+ LOGGER.warn("Item '" + id + "' requires flattening but found no mapping for it! (ConverterFlattenItemStack)");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ if (damage != 0 && ITEMS_WITH_DAMAGE.contains(id)) {
|
|
+ // migrate damage
|
|
+ MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ tag = Types.NBT.createEmptyMap();
|
|
+ data.setMap("tag", tag);
|
|
+ }
|
|
+ tag.setInt("Damage", damage);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/itemstack/ConverterFlattenSpawnEgg.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/itemstack/ConverterFlattenSpawnEgg.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..d88b12e6b9e381ba614dc04599a44e472a37ca03
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/itemstack/ConverterFlattenSpawnEgg.java
|
|
@@ -0,0 +1,83 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.itemstack;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import java.util.HashMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class ConverterFlattenSpawnEgg extends DataConverter<MapType<String>, MapType<String>> {
|
|
+
|
|
+ private static final Map<String, String> ENTITY_ID_TO_NEW_EGG_ID = new HashMap<>();
|
|
+ static {
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:bat", "minecraft:bat_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:blaze", "minecraft:blaze_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:cave_spider", "minecraft:cave_spider_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:chicken", "minecraft:chicken_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:cow", "minecraft:cow_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:creeper", "minecraft:creeper_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:donkey", "minecraft:donkey_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:elder_guardian", "minecraft:elder_guardian_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:enderman", "minecraft:enderman_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:endermite", "minecraft:endermite_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:evocation_illager", "minecraft:evocation_illager_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:ghast", "minecraft:ghast_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:guardian", "minecraft:guardian_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:horse", "minecraft:horse_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:husk", "minecraft:husk_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:llama", "minecraft:llama_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:magma_cube", "minecraft:magma_cube_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:mooshroom", "minecraft:mooshroom_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:mule", "minecraft:mule_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:ocelot", "minecraft:ocelot_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:pufferfish", "minecraft:pufferfish_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:parrot", "minecraft:parrot_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:pig", "minecraft:pig_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:polar_bear", "minecraft:polar_bear_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:rabbit", "minecraft:rabbit_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:sheep", "minecraft:sheep_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:shulker", "minecraft:shulker_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:silverfish", "minecraft:silverfish_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:skeleton", "minecraft:skeleton_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:skeleton_horse", "minecraft:skeleton_horse_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:slime", "minecraft:slime_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:spider", "minecraft:spider_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:squid", "minecraft:squid_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:stray", "minecraft:stray_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:turtle", "minecraft:turtle_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:vex", "minecraft:vex_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:villager", "minecraft:villager_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:vindication_illager", "minecraft:vindication_illager_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:witch", "minecraft:witch_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:wither_skeleton", "minecraft:wither_skeleton_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:wolf", "minecraft:wolf_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:zombie", "minecraft:zombie_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:zombie_horse", "minecraft:zombie_horse_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:zombie_pigman", "minecraft:zombie_pigman_spawn_egg");
|
|
+ ENTITY_ID_TO_NEW_EGG_ID.put("minecraft:zombie_villager", "minecraft:zombie_villager_spawn_egg");
|
|
+ }
|
|
+
|
|
+ public ConverterFlattenSpawnEgg() {
|
|
+ super(MCVersions.V17W47A,5);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> entityTag = tag.getMap("EntityTag");
|
|
+ if (entityTag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String id = entityTag.getString("id");
|
|
+ if (id != null) {
|
|
+ data.setString("id", ENTITY_ID_TO_NEW_EGG_ID.getOrDefault(id, "minecraft:pig_spawn_egg"));
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/options/ConverterAbstractOptionsRename.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/options/ConverterAbstractOptionsRename.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..769dd8447976b66dcfc36283ede4ae16f1e4206d
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/options/ConverterAbstractOptionsRename.java
|
|
@@ -0,0 +1,28 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.options;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.RenameHelper;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import java.util.ArrayList;
|
|
+import java.util.function.Function;
|
|
+
|
|
+public final class ConverterAbstractOptionsRename {
|
|
+
|
|
+ private ConverterAbstractOptionsRename() {}
|
|
+
|
|
+ public static void register(final int version, final Function<String, String> renamer) {
|
|
+ register(version, 0, renamer);
|
|
+ }
|
|
+
|
|
+ public static void register(final int version, final int subVersion, final Function<String, String> renamer) {
|
|
+ MCTypeRegistry.OPTIONS.addStructureConverter(new DataConverter<>(version, subVersion) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ RenameHelper.renameKeys(data, renamer);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/poi/ConverterAbstractPOIRename.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/poi/ConverterAbstractPOIRename.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..57e210bf2bb189b15a32899011c4800b19668a5e
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/poi/ConverterAbstractPOIRename.java
|
|
@@ -0,0 +1,53 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.poi;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import java.util.function.Function;
|
|
+
|
|
+public final class ConverterAbstractPOIRename {
|
|
+
|
|
+ private ConverterAbstractPOIRename() {}
|
|
+
|
|
+ public static void register(final int version, final Function<String, String> renamer) {
|
|
+ register(version, 0, renamer);
|
|
+ }
|
|
+
|
|
+ public static void register(final int version, final int subVersion, final Function<String, String> renamer) {
|
|
+ MCTypeRegistry.POI_CHUNK.addStructureConverter(new DataConverter<>(version, subVersion) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> sections = data.getMap("Sections");
|
|
+ if (sections == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (final String key : sections.keys()) {
|
|
+ final MapType<String> section = sections.getMap(key);
|
|
+
|
|
+ final ListType records = section.getList("Records", ObjectType.MAP);
|
|
+
|
|
+ if (records == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = records.size(); i < len; ++i) {
|
|
+ final MapType<String> record = records.getMap(i);
|
|
+
|
|
+ final String type = record.getString("type");
|
|
+ if (type != null) {
|
|
+ final String converted = renamer.apply(type);
|
|
+ if (converted != null) {
|
|
+ record.setString("type", converted);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/recipe/ConverterAbstractRecipeRename.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/recipe/ConverterAbstractRecipeRename.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..8f35cbbd78a629712f9ae3cd5d180269f015a11d
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/recipe/ConverterAbstractRecipeRename.java
|
|
@@ -0,0 +1,18 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.recipe;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.ConverterAbstractStringValueTypeRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import java.util.function.Function;
|
|
+
|
|
+public final class ConverterAbstractRecipeRename {
|
|
+
|
|
+ private ConverterAbstractRecipeRename() {}
|
|
+
|
|
+ public static void register(final int version, final Function<String, String> renamer) {
|
|
+ register(version, 0, renamer);
|
|
+ }
|
|
+
|
|
+ public static void register(final int version, final int subVersion, final Function<String, String> renamer) {
|
|
+ ConverterAbstractStringValueTypeRename.register(version, subVersion, MCTypeRegistry.RECIPE, renamer);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/stats/ConverterAbstractStatsRename.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/stats/ConverterAbstractStatsRename.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..a1985c85aa9193699d7d20e6f4f11b6e9744ee70
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/stats/ConverterAbstractStatsRename.java
|
|
@@ -0,0 +1,66 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.stats;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.RenameHelper;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import java.util.ArrayList;
|
|
+import java.util.function.Function;
|
|
+
|
|
+public final class ConverterAbstractStatsRename {
|
|
+
|
|
+ private ConverterAbstractStatsRename() {}
|
|
+
|
|
+ public static void register(final int version, final Function<String, String> renamer) {
|
|
+ register(version, 0, renamer);
|
|
+ }
|
|
+
|
|
+ public static void register(final int version, final int subVersion, final Function<String, String> renamer) {
|
|
+ MCTypeRegistry.OBJECTIVE.addStructureConverter(new DataConverter<>(version, subVersion) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> criteriaType = data.getMap("CriteriaType");
|
|
+ if (criteriaType == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String type = criteriaType.getString("type");
|
|
+ if (!"minecraft:custom".equals(type)) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String id = criteriaType.getString("id");
|
|
+ if (id == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String rename = renamer.apply(id);
|
|
+ if (rename != null) {
|
|
+ criteriaType.setString("id", rename);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.STATS.addStructureConverter(new DataConverter<>(version, subVersion) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> stats = data.getMap("stats");
|
|
+
|
|
+ if (stats == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> custom = stats.getMap("minecraft:custom");
|
|
+ if (custom == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ RenameHelper.renameKeys(custom, renamer);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/stats/ConverterFlattenStats.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/stats/ConverterFlattenStats.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..99d2c2c84820295be1f8bb0b43784e58f51a46dd
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/converters/stats/ConverterFlattenStats.java
|
|
@@ -0,0 +1,94 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.converters.stats;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.HelperBlockFlatteningV1450;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemstack.ConverterFlattenItemStack;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import com.google.common.collect.ImmutableSet;
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
+import java.util.Map;
|
|
+import java.util.Set;
|
|
+
|
|
+public final class ConverterFlattenStats extends DataConverter<MapType<String>, MapType<String>> {
|
|
+
|
|
+ private static final Set<String> SKIP = ImmutableSet.<String>builder().add("stat.craftItem.minecraft.spawn_egg").add("stat.useItem.minecraft.spawn_egg").add("stat.breakItem.minecraft.spawn_egg").add("stat.pickup.minecraft.spawn_egg").add("stat.drop.minecraft.spawn_egg").build();
|
|
+ private static final Map<String, String> CUSTOM_MAP = ImmutableMap.<String, String>builder().put("stat.leaveGame", "minecraft:leave_game").put("stat.playOneMinute", "minecraft:play_one_minute").put("stat.timeSinceDeath", "minecraft:time_since_death").put("stat.sneakTime", "minecraft:sneak_time").put("stat.walkOneCm", "minecraft:walk_one_cm").put("stat.crouchOneCm", "minecraft:crouch_one_cm").put("stat.sprintOneCm", "minecraft:sprint_one_cm").put("stat.swimOneCm", "minecraft:swim_one_cm").put("stat.fallOneCm", "minecraft:fall_one_cm").put("stat.climbOneCm", "minecraft:climb_one_cm").put("stat.flyOneCm", "minecraft:fly_one_cm").put("stat.diveOneCm", "minecraft:dive_one_cm").put("stat.minecartOneCm", "minecraft:minecart_one_cm").put("stat.boatOneCm", "minecraft:boat_one_cm").put("stat.pigOneCm", "minecraft:pig_one_cm").put("stat.horseOneCm", "minecraft:horse_one_cm").put("stat.aviateOneCm", "minecraft:aviate_one_cm").put("stat.jump", "minecraft:jump").put("stat.drop", "minecraft:drop").put("stat.damageDealt", "minecraft:damage_dealt").put("stat.damageTaken", "minecraft:damage_taken").put("stat.deaths", "minecraft:deaths").put("stat.mobKills", "minecraft:mob_kills").put("stat.animalsBred", "minecraft:animals_bred").put("stat.playerKills", "minecraft:player_kills").put("stat.fishCaught", "minecraft:fish_caught").put("stat.talkedToVillager", "minecraft:talked_to_villager").put("stat.tradedWithVillager", "minecraft:traded_with_villager").put("stat.cakeSlicesEaten", "minecraft:eat_cake_slice").put("stat.cauldronFilled", "minecraft:fill_cauldron").put("stat.cauldronUsed", "minecraft:use_cauldron").put("stat.armorCleaned", "minecraft:clean_armor").put("stat.bannerCleaned", "minecraft:clean_banner").put("stat.brewingstandInteraction", "minecraft:interact_with_brewingstand").put("stat.beaconInteraction", "minecraft:interact_with_beacon").put("stat.dropperInspected", "minecraft:inspect_dropper").put("stat.hopperInspected", "minecraft:inspect_hopper").put("stat.dispenserInspected", "minecraft:inspect_dispenser").put("stat.noteblockPlayed", "minecraft:play_noteblock").put("stat.noteblockTuned", "minecraft:tune_noteblock").put("stat.flowerPotted", "minecraft:pot_flower").put("stat.trappedChestTriggered", "minecraft:trigger_trapped_chest").put("stat.enderchestOpened", "minecraft:open_enderchest").put("stat.itemEnchanted", "minecraft:enchant_item").put("stat.recordPlayed", "minecraft:play_record").put("stat.furnaceInteraction", "minecraft:interact_with_furnace").put("stat.craftingTableInteraction", "minecraft:interact_with_crafting_table").put("stat.chestOpened", "minecraft:open_chest").put("stat.sleepInBed", "minecraft:sleep_in_bed").put("stat.shulkerBoxOpened", "minecraft:open_shulker_box").build();
|
|
+ private static final Map<String, String> ITEM_KEYS = ImmutableMap.<String, String>builder().put("stat.craftItem", "minecraft:crafted").put("stat.useItem", "minecraft:used").put("stat.breakItem", "minecraft:broken").put("stat.pickup", "minecraft:picked_up").put("stat.drop", "minecraft:dropped").build();
|
|
+ private static final Map<String, String> ENTITY_KEYS = ImmutableMap.<String, String>builder().put("stat.entityKilledBy", "minecraft:killed_by").put("stat.killEntity", "minecraft:killed").build();
|
|
+ private static final Map<String, String> ENTITIES = ImmutableMap.<String, String>builder().put("Bat", "minecraft:bat").put("Blaze", "minecraft:blaze").put("CaveSpider", "minecraft:cave_spider").put("Chicken", "minecraft:chicken").put("Cow", "minecraft:cow").put("Creeper", "minecraft:creeper").put("Donkey", "minecraft:donkey").put("ElderGuardian", "minecraft:elder_guardian").put("Enderman", "minecraft:enderman").put("Endermite", "minecraft:endermite").put("EvocationIllager", "minecraft:evocation_illager").put("Ghast", "minecraft:ghast").put("Guardian", "minecraft:guardian").put("Horse", "minecraft:horse").put("Husk", "minecraft:husk").put("Llama", "minecraft:llama").put("LavaSlime", "minecraft:magma_cube").put("MushroomCow", "minecraft:mooshroom").put("Mule", "minecraft:mule").put("Ozelot", "minecraft:ocelot").put("Parrot", "minecraft:parrot").put("Pig", "minecraft:pig").put("PolarBear", "minecraft:polar_bear").put("Rabbit", "minecraft:rabbit").put("Sheep", "minecraft:sheep").put("Shulker", "minecraft:shulker").put("Silverfish", "minecraft:silverfish").put("SkeletonHorse", "minecraft:skeleton_horse").put("Skeleton", "minecraft:skeleton").put("Slime", "minecraft:slime").put("Spider", "minecraft:spider").put("Squid", "minecraft:squid").put("Stray", "minecraft:stray").put("Vex", "minecraft:vex").put("Villager", "minecraft:villager").put("VindicationIllager", "minecraft:vindication_illager").put("Witch", "minecraft:witch").put("WitherSkeleton", "minecraft:wither_skeleton").put("Wolf", "minecraft:wolf").put("ZombieHorse", "minecraft:zombie_horse").put("PigZombie", "minecraft:zombie_pigman").put("ZombieVillager", "minecraft:zombie_villager").put("Zombie", "minecraft:zombie").build();
|
|
+
|
|
+ public ConverterFlattenStats() {
|
|
+ super(MCVersions.V17W47A, 6);
|
|
+ }
|
|
+
|
|
+ private static String upgradeItem(final String itemName) {
|
|
+ return ConverterFlattenItemStack.flattenItem(itemName, 0);
|
|
+ }
|
|
+
|
|
+ private static String upgradeBlock(final String block) {
|
|
+ return HelperBlockFlatteningV1450.getNewBlockName(block);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> stats = Types.NBT.createEmptyMap();
|
|
+
|
|
+ for (final String statKey : data.keys()) {
|
|
+ final Number value = data.getNumber(statKey);
|
|
+ if (value == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ if (SKIP.contains(statKey)) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String statType;
|
|
+ final String newStatKey;
|
|
+
|
|
+ if (CUSTOM_MAP.containsKey(statKey)) {
|
|
+ statType = "minecraft:custom";
|
|
+ newStatKey = CUSTOM_MAP.get(statKey);
|
|
+ } else {
|
|
+ final int i = StringUtils.ordinalIndexOf(statKey, ".", 2);
|
|
+ if (i < 0) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String key = statKey.substring(0, i);
|
|
+
|
|
+ if ("stat.mineBlock".equals(key)) {
|
|
+ statType = "minecraft:mined";
|
|
+ newStatKey = upgradeBlock(statKey.substring(i + 1).replace('.', ':'));
|
|
+ } else if (ITEM_KEYS.containsKey(key)) {
|
|
+ statType = ITEM_KEYS.get(key);
|
|
+ final String item = statKey.substring(i + 1).replace('.', ':');
|
|
+ final String upgradedItem = upgradeItem(item);
|
|
+ newStatKey = upgradedItem == null ? item : upgradedItem;
|
|
+ } else if (ENTITY_KEYS.containsKey(key)) {
|
|
+ statType = ENTITY_KEYS.get(key);
|
|
+ final String entity = statKey.substring(i + 1).replace('.', ':');
|
|
+ newStatKey = ENTITIES.getOrDefault(entity, entity);
|
|
+ } else {
|
|
+ continue;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ MapType<String> statTypeMap = stats.getMap(statType);
|
|
+ if (statTypeMap == null) {
|
|
+ stats.setMap(statType, statTypeMap = Types.NBT.createEmptyMap());
|
|
+ }
|
|
+
|
|
+ statTypeMap.setGeneric(newStatKey, value);
|
|
+ }
|
|
+
|
|
+ data.clear();
|
|
+
|
|
+ data.setMap("stats", stats);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/datatypes/IDDataType.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/datatypes/IDDataType.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..b2c2b4c4ae83f14639fa53e38f2c75ccd284c2d2
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/datatypes/IDDataType.java
|
|
@@ -0,0 +1,166 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.datatypes;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataHook;
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataWalker;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersionRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.util.Long2ObjectArraySortedMap;
|
|
+
|
|
+import java.util.ArrayList;
|
|
+import java.util.HashMap;
|
|
+import java.util.List;
|
|
+import java.util.Map;
|
|
+
|
|
+public class IDDataType extends MCDataType {
|
|
+
|
|
+ protected final Map<String, Long2ObjectArraySortedMap<List<DataWalker<String>>>> walkersById = new HashMap<>();
|
|
+
|
|
+ public IDDataType(final String name) {
|
|
+ super(name);
|
|
+ }
|
|
+
|
|
+ public void addConverterForId(final String id, final DataConverter<MapType<String>, MapType<String>> converter) {
|
|
+ this.addStructureConverter(new DataConverter<>(converter.getToVersion(), converter.getVersionStep()) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (!id.equals(data.getString("id"))) {
|
|
+ return null;
|
|
+ }
|
|
+ return converter.convert(data, sourceVersion, toVersion);
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ public void addWalker(final int minVersion, final String id, final DataWalker<String> walker) {
|
|
+ this.addWalker(minVersion, 0, id, walker);
|
|
+ }
|
|
+
|
|
+ public void addWalker(final int minVersion, final int versionStep, final String id, final DataWalker<String> walker) {
|
|
+ this.walkersById.computeIfAbsent(id, (final String keyInMap) -> {
|
|
+ return new Long2ObjectArraySortedMap<>();
|
|
+ }).computeIfAbsent(DataConverter.encodeVersions(minVersion, versionStep), (final long keyInMap) -> {
|
|
+ return new ArrayList<>();
|
|
+ }).add(walker);
|
|
+ }
|
|
+
|
|
+ public void copyWalkers(final int minVersion, final String fromId, final String toId) {
|
|
+ this.copyWalkers(minVersion, 0, fromId, toId);
|
|
+ }
|
|
+
|
|
+ public void copyWalkers(final int minVersion, final int versionStep, final String fromId, final String toId) {
|
|
+ final long version = DataConverter.encodeVersions(minVersion, versionStep);
|
|
+ final Long2ObjectArraySortedMap<List<DataWalker<String>>> walkersForId = this.walkersById.get(fromId);
|
|
+ if (walkersForId == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final List<DataWalker<String>> nearest = walkersForId.getFloor(version);
|
|
+
|
|
+ if (nearest == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ for (final DataWalker<String> walker : nearest) {
|
|
+ this.addWalker(minVersion, versionStep, toId, walker);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(MapType<String> data, final long fromVersion, final long toVersion) {
|
|
+ MapType<String> ret = null;
|
|
+
|
|
+ final List<DataConverter<MapType<String>, MapType<String>>> converters = this.structureConverters;
|
|
+ for (int i = 0, len = converters.size(); i < len; ++i) {
|
|
+ final DataConverter<MapType<String>, MapType<String>> converter = converters.get(i);
|
|
+ final long converterVersion = converter.getEncodedVersion();
|
|
+
|
|
+ if (converterVersion <= fromVersion) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ if (converterVersion > toVersion) {
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ List<DataHook<MapType<String>, MapType<String>>> hooks = this.structureHooks.getFloor(converterVersion);
|
|
+
|
|
+ if (hooks != null) {
|
|
+ for (int k = 0, klen = hooks.size(); k < klen; ++k) {
|
|
+ final MapType<String> replace = hooks.get(k).preHook(data, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ ret = data = replace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final MapType<String> replace = converter.convert(data, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ ret = data = replace;
|
|
+ }
|
|
+
|
|
+ // possibly new data format, update hooks
|
|
+ hooks = this.structureHooks.getFloor(toVersion);
|
|
+
|
|
+ if (hooks != null) {
|
|
+ for (int klen = hooks.size(), k = klen - 1; k >= 0; --k) {
|
|
+ final MapType<String> postReplace = hooks.get(k).postHook(data, fromVersion, toVersion);
|
|
+ if (postReplace != null) {
|
|
+ ret = data = postReplace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final List<DataHook<MapType<String>, MapType<String>>> hooks = this.structureHooks.getFloor(toVersion);
|
|
+
|
|
+ // run pre hooks
|
|
+
|
|
+ if (hooks != null) {
|
|
+ for (int k = 0, klen = hooks.size(); k < klen; ++k) {
|
|
+ final MapType<String> replace = hooks.get(k).preHook(data, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ ret = data = replace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // run all walkers
|
|
+
|
|
+ final List<DataWalker<String>> walkers = this.structureWalkers.getFloor(toVersion);
|
|
+ if (walkers != null) {
|
|
+ for (int i = 0, len = walkers.size(); i < len; ++i) {
|
|
+ final MapType<String> replace = walkers.get(i).walk(data, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ ret = data = replace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final Long2ObjectArraySortedMap<List<DataWalker<String>>> walkersByVersion = this.walkersById.get(data.getString("id"));
|
|
+ if (walkersByVersion != null) {
|
|
+ final List<DataWalker<String>> walkersForId = walkersByVersion.getFloor(toVersion);
|
|
+ if (walkersForId != null) {
|
|
+ for (int i = 0, len = walkersForId.size(); i < len; ++i) {
|
|
+ final MapType<String> replace = walkersForId.get(i).walk(data, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ ret = data = replace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // run post hooks
|
|
+
|
|
+ if (hooks != null) {
|
|
+ for (int klen = hooks.size(), k = klen - 1; k >= 0; --k) {
|
|
+ final MapType<String> postReplace = hooks.get(k).postHook(data, fromVersion, toVersion);
|
|
+ if (postReplace != null) {
|
|
+ ret = data = postReplace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/datatypes/MCDataType.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/datatypes/MCDataType.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..76a6e3efa5c69150e8f5e0063cb6357bed1bffae
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/datatypes/MCDataType.java
|
|
@@ -0,0 +1,129 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.datatypes;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataHook;
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataType;
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataWalker;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersionRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.util.Long2ObjectArraySortedMap;
|
|
+import java.util.ArrayList;
|
|
+import java.util.List;
|
|
+
|
|
+public class MCDataType extends DataType<MapType<String>, MapType<String>> {
|
|
+
|
|
+ public final String name;
|
|
+
|
|
+ protected final ArrayList<DataConverter<MapType<String>, MapType<String>>> structureConverters = new ArrayList<>();
|
|
+ protected final Long2ObjectArraySortedMap<List<DataWalker<String>>> structureWalkers = new Long2ObjectArraySortedMap<>();
|
|
+ protected final Long2ObjectArraySortedMap<List<DataHook<MapType<String>, MapType<String>>>> structureHooks = new Long2ObjectArraySortedMap<>();
|
|
+
|
|
+ public MCDataType(final String name) {
|
|
+ this.name = name;
|
|
+ }
|
|
+
|
|
+ public void addStructureConverter(final DataConverter<MapType<String>, MapType<String>> converter) {
|
|
+ MCVersionRegistry.checkVersion(converter.getEncodedVersion());
|
|
+ this.structureConverters.add(converter);
|
|
+ this.structureConverters.sort(DataConverter.LOWEST_VERSION_COMPARATOR);
|
|
+ }
|
|
+
|
|
+ public void addStructureWalker(final int minVersion, final DataWalker<String> walker) {
|
|
+ this.addStructureWalker(minVersion, 0, walker);
|
|
+ }
|
|
+
|
|
+ public void addStructureWalker(final int minVersion, final int versionStep, final DataWalker<String> walker) {
|
|
+ this.structureWalkers.computeIfAbsent(DataConverter.encodeVersions(minVersion, versionStep), (final long keyInMap) -> {
|
|
+ return new ArrayList<>();
|
|
+ }).add(walker);
|
|
+ }
|
|
+
|
|
+ public void addStructureHook(final int minVersion, final DataHook<MapType<String>, MapType<String>> hook) {
|
|
+ this.addStructureHook(minVersion, 0, hook);
|
|
+ }
|
|
+
|
|
+ public void addStructureHook(final int minVersion, final int versionStep, final DataHook<MapType<String>, MapType<String>> hook) {
|
|
+ this.structureHooks.computeIfAbsent(DataConverter.encodeVersions(minVersion, versionStep), (final long keyInMap) -> {
|
|
+ return new ArrayList<>();
|
|
+ }).add(hook);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(MapType<String> data, final long fromVersion, final long toVersion) {
|
|
+ MapType<String> ret = null;
|
|
+
|
|
+ final List<DataConverter<MapType<String>, MapType<String>>> converters = this.structureConverters;
|
|
+ for (int i = 0, len = converters.size(); i < len; ++i) {
|
|
+ final DataConverter<MapType<String>, MapType<String>> converter = converters.get(i);
|
|
+ final long converterVersion = converter.getEncodedVersion();
|
|
+
|
|
+ if (converterVersion <= fromVersion) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ if (converterVersion > toVersion) {
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ List<DataHook<MapType<String>, MapType<String>>> hooks = this.structureHooks.getFloor(converterVersion);
|
|
+
|
|
+ if (hooks != null) {
|
|
+ for (int k = 0, klen = hooks.size(); k < klen; ++k) {
|
|
+ final MapType<String> replace = hooks.get(k).preHook(data, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ ret = data = replace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final MapType<String> replace = converter.convert(data, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ ret = data = replace;
|
|
+ }
|
|
+
|
|
+ // possibly new data format, update hooks
|
|
+ hooks = this.structureHooks.getFloor(toVersion);
|
|
+
|
|
+ if (hooks != null) {
|
|
+ for (int klen = hooks.size(), k = klen - 1; k >= 0; --k) {
|
|
+ final MapType<String> postReplace = hooks.get(k).postHook(data, fromVersion, toVersion);
|
|
+ if (postReplace != null) {
|
|
+ ret = data = postReplace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final List<DataHook<MapType<String>, MapType<String>>> hooks = this.structureHooks.getFloor(toVersion);
|
|
+
|
|
+ if (hooks != null) {
|
|
+ for (int k = 0, klen = hooks.size(); k < klen; ++k) {
|
|
+ final MapType<String> replace = hooks.get(k).preHook(data, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ ret = data = replace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final List<DataWalker<String>> walkers = this.structureWalkers.getFloor(toVersion);
|
|
+ if (walkers != null) {
|
|
+ for (int i = 0, len = walkers.size(); i < len; ++i) {
|
|
+ final MapType<String> replace = walkers.get(i).walk(data, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ ret = data = replace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ if (hooks != null) {
|
|
+ for (int klen = hooks.size(), k = klen - 1; k >= 0; --k) {
|
|
+ final MapType<String> postReplace = hooks.get(k).postHook(data, fromVersion, toVersion);
|
|
+ if (postReplace != null) {
|
|
+ ret = data = postReplace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/datatypes/MCTypeRegistry.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/datatypes/MCTypeRegistry.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..40fa4f9b8ad8c658ec43e1b4a9d3dec7de4744da
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/datatypes/MCTypeRegistry.java
|
|
@@ -0,0 +1,339 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.datatypes;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V100;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V101;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V102;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1022;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V105;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V106;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V107;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V108;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V109;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V110;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V111;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1125;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V113;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1344;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V135;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V143;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1446;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1450;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1451;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1456;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1458;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1460;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1466;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V147;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1470;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1474;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1475;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1480;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1483;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1484;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1486;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1487;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1488;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1490;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1492;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1494;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1496;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1500;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1501;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1502;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1506;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1510;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1514;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1515;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1624;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V165;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1800;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1801;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1802;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1803;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1904;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1905;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1906;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1911;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1917;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1918;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1920;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1925;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1928;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1929;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1931;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1936;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1946;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1948;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1953;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1955;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1961;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V1963;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2100;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2202;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2209;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2211;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2218;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2501;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2502;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2503;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2505;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2508;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2509;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2511;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2514;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2516;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2518;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2519;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2522;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2523;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2527;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2528;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2529;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2531;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2533;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2535;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2550;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2551;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2552;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2553;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2558;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2568;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2671;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2679;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2680;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2686;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2688;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2690;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2691;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2693;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2696;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2700;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2701;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2702;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2707;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2710;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2717;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2825;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2831;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2832;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2833;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2838;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2841;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2842;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2843;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2846;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V2852;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V501;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V502;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V505;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V700;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V701;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V702;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V703;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V704;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V705;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V804;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V806;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V808;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V813;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V816;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V820;
|
|
+import ca.spottedleaf.dataconverter.minecraft.versions.V99;
|
|
+
|
|
+public final class MCTypeRegistry {
|
|
+
|
|
+ public static final MCDataType LEVEL = new MCDataType("Level");
|
|
+ public static final MCDataType PLAYER = new MCDataType("Player");
|
|
+ public static final MCDataType CHUNK = new MCDataType("Chunk");
|
|
+ public static final MCDataType HOTBAR = new MCDataType("CreativeHotbar");
|
|
+ public static final MCDataType OPTIONS = new MCDataType("Options");
|
|
+ public static final MCDataType STRUCTURE = new MCDataType("Structure");
|
|
+ public static final MCDataType STATS = new MCDataType("Stats");
|
|
+ public static final MCDataType SAVED_DATA = new MCDataType("SavedData");
|
|
+ public static final MCDataType ADVANCEMENTS = new MCDataType("Advancements");
|
|
+ public static final MCDataType POI_CHUNK = new MCDataType("PoiChunk");
|
|
+ public static final MCDataType ENTITY_CHUNK = new MCDataType("EntityChunk");
|
|
+ public static final IDDataType TILE_ENTITY = new IDDataType("TileEntity");
|
|
+ public static final IDDataType ITEM_STACK = new IDDataType("ItemStack");
|
|
+ public static final MCDataType BLOCK_STATE = new MCDataType("BlockState");
|
|
+ public static final MCValueType ENTITY_NAME = new MCValueType("EntityName");
|
|
+ public static final IDDataType ENTITY = new IDDataType("Entity");
|
|
+ public static final MCValueType BLOCK_NAME = new MCValueType("BlockName");
|
|
+ public static final MCValueType ITEM_NAME = new MCValueType("ItemName");
|
|
+ public static final MCDataType UNTAGGED_SPAWNER = new MCDataType("Spawner");
|
|
+ public static final MCDataType STRUCTURE_FEATURE = new MCDataType("StructureFeature");
|
|
+ public static final MCDataType OBJECTIVE = new MCDataType("Objective");
|
|
+ public static final MCDataType TEAM = new MCDataType("Team");
|
|
+ public static final MCValueType RECIPE = new MCValueType("RecipeName");
|
|
+ public static final MCValueType BIOME = new MCValueType("Biome");
|
|
+ public static final MCDataType WORLD_GEN_SETTINGS = new MCDataType("WorldGenSettings");
|
|
+
|
|
+ static {
|
|
+ // General notes:
|
|
+ // - Structure converters run before everything.
|
|
+ // - ID specific converters run after structure converters.
|
|
+ // - Structure walkers run after id specific converters.
|
|
+ // - ID specific walkers run after structure walkers.
|
|
+
|
|
+ V99.register(); // all legacy data before converters existed
|
|
+ V100.register(); // first version with version id
|
|
+ V101.register();
|
|
+ V102.register();
|
|
+ V105.register();
|
|
+ V106.register();
|
|
+ V107.register();
|
|
+ V108.register();
|
|
+ V109.register();
|
|
+ V110.register();
|
|
+ V111.register();
|
|
+ V113.register();
|
|
+ V135.register();
|
|
+ V143.register();
|
|
+ V147.register();
|
|
+ V165.register();
|
|
+ V501.register();
|
|
+ V502.register();
|
|
+ V505.register();
|
|
+ V700.register();
|
|
+ V701.register();
|
|
+ V702.register();
|
|
+ V703.register();
|
|
+ V704.register();
|
|
+ V705.register();
|
|
+ V804.register();
|
|
+ V806.register();
|
|
+ V808.register();
|
|
+ V813.register();
|
|
+ V816.register();
|
|
+ V820.register();
|
|
+ V1022.register();
|
|
+ V1125.register();
|
|
+ // END OF LEGACY DATA CONVERTERS
|
|
+
|
|
+ // V1.13
|
|
+ V1344.register();
|
|
+ V1446.register();
|
|
+ // START THE FLATTENING
|
|
+ V1450.register();
|
|
+ V1451.register();
|
|
+ // END THE FLATTENING
|
|
+
|
|
+ V1456.register();
|
|
+ V1458.register();
|
|
+ V1460.register();
|
|
+ V1466.register();
|
|
+ V1470.register();
|
|
+ V1474.register();
|
|
+ V1475.register();
|
|
+ V1480.register();
|
|
+ // V1481 is adding simple block entity
|
|
+ V1483.register();
|
|
+ V1484.register();
|
|
+ V1486.register();
|
|
+ V1487.register();
|
|
+ V1488.register();
|
|
+ V1490.register();
|
|
+ V1492.register();
|
|
+ V1494.register();
|
|
+ V1496.register();
|
|
+ V1500.register();
|
|
+ V1501.register();
|
|
+ V1502.register();
|
|
+ V1506.register();
|
|
+ V1510.register();
|
|
+ V1514.register();
|
|
+ V1515.register();
|
|
+ V1624.register();
|
|
+ // V1.14
|
|
+ V1800.register();
|
|
+ V1801.register();
|
|
+ V1802.register();
|
|
+ V1803.register();
|
|
+ V1904.register();
|
|
+ V1905.register();
|
|
+ V1906.register();
|
|
+ // V1909 is just adding a simple block entity (jigsaw)
|
|
+ V1911.register();
|
|
+ V1917.register();
|
|
+ V1918.register();
|
|
+ V1920.register();
|
|
+ V1925.register();
|
|
+ V1928.register();
|
|
+ V1929.register();
|
|
+ V1931.register();
|
|
+ V1936.register();
|
|
+ V1946.register();
|
|
+ V1948.register();
|
|
+ V1953.register();
|
|
+ V1955.register();
|
|
+ V1961.register();
|
|
+ V1963.register();
|
|
+ // V1.15
|
|
+ V2100.register();
|
|
+ V2202.register();
|
|
+ V2209.register();
|
|
+ V2211.register();
|
|
+ V2218.register();
|
|
+ // V1.16
|
|
+ V2501.register();
|
|
+ V2502.register();
|
|
+ V2503.register();
|
|
+ V2505.register();
|
|
+ V2508.register();
|
|
+ V2509.register();
|
|
+ V2511.register();
|
|
+ V2514.register();
|
|
+ V2516.register();
|
|
+ V2518.register();
|
|
+ V2519.register();
|
|
+ V2522.register();
|
|
+ V2523.register();
|
|
+ V2527.register();
|
|
+ V2528.register();
|
|
+ V2529.register();
|
|
+ V2531.register();
|
|
+ V2533.register();
|
|
+ V2535.register();
|
|
+ V2550.register();
|
|
+ V2551.register();
|
|
+ V2552.register();
|
|
+ V2553.register();
|
|
+ V2558.register();
|
|
+ V2568.register();
|
|
+ // V1.17
|
|
+ // WARN: Mojang registers V2671 under 2571, but that version predates 1.16.5? So it looks like a typo...
|
|
+ // I changed it to 2671, just so that it's after 1.16.5, but even then this looks misplaced... Thankfully this is
|
|
+ // the first datafixer, and all it does is add a walker, so I think even if the version here is just wrong it will
|
|
+ // work.
|
|
+ V2671.register();
|
|
+ V2679.register();
|
|
+ V2680.register();
|
|
+ // V2684 is registering a simple tile entity (skulk sensor)
|
|
+ V2686.register();
|
|
+ V2688.register();
|
|
+ V2690.register();
|
|
+ V2691.register();
|
|
+ V2693.register();
|
|
+ V2696.register();
|
|
+ V2700.register();
|
|
+ V2701.register();
|
|
+ V2702.register();
|
|
+ // In reference to V2671, why the fuck is goat being registered again? For this obvious reason, V2704 is absent.
|
|
+ V2707.register();
|
|
+ V2710.register();
|
|
+ V2717.register();
|
|
+ // V1.18
|
|
+ V2825.register();
|
|
+ V2831.register();
|
|
+ V2832.register();
|
|
+ V2833.register();
|
|
+ V2838.register();
|
|
+ V2841.register();
|
|
+ V2842.register();
|
|
+ V2843.register();
|
|
+ V2846.register();
|
|
+ V2852.register();
|
|
+ }
|
|
+
|
|
+ private MCTypeRegistry() {}
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/datatypes/MCValueType.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/datatypes/MCValueType.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..13c1381261909ef672fbeb665907f01f2d5c1ced
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/datatypes/MCValueType.java
|
|
@@ -0,0 +1,86 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.datatypes;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataHook;
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataType;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersionRegistry;
|
|
+import ca.spottedleaf.dataconverter.util.Long2ObjectArraySortedMap;
|
|
+import java.util.ArrayList;
|
|
+import java.util.List;
|
|
+
|
|
+public class MCValueType extends DataType<Object, Object> {
|
|
+
|
|
+ public final String name;
|
|
+
|
|
+ protected final ArrayList<DataConverter<Object, Object>> converters = new ArrayList<>();
|
|
+ protected final Long2ObjectArraySortedMap<List<DataHook<Object, Object>>> structureHooks = new Long2ObjectArraySortedMap<>();
|
|
+
|
|
+ public MCValueType(final String name) {
|
|
+ this.name = name;
|
|
+ }
|
|
+
|
|
+ public void addStructureHook(final int minVersion, final DataHook<Object, Object> hook) {
|
|
+ this.addStructureHook(minVersion, 0, hook);
|
|
+ }
|
|
+
|
|
+ public void addStructureHook(final int minVersion, final int versionStep, final DataHook<Object, Object> hook) {
|
|
+ this.structureHooks.computeIfAbsent(DataConverter.encodeVersions(minVersion, versionStep), (final long keyInMap) -> {
|
|
+ return new ArrayList<>();
|
|
+ }).add(hook);
|
|
+ }
|
|
+
|
|
+ public void addConverter(final DataConverter<Object, Object> converter) {
|
|
+ MCVersionRegistry.checkVersion(converter.getEncodedVersion());
|
|
+ this.converters.add(converter);
|
|
+ this.converters.sort(DataConverter.LOWEST_VERSION_COMPARATOR);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Object convert(final Object data, final long fromVersion, final long toVersion) {
|
|
+ Object ret = null;
|
|
+ final List<DataConverter<Object, Object>> converters = this.converters;
|
|
+
|
|
+ for (int i = 0, len = converters.size(); i < len; ++i) {
|
|
+ final DataConverter<Object, Object> converter = converters.get(i);
|
|
+ final long converterVersion = converter.getEncodedVersion();
|
|
+
|
|
+ if (converterVersion <= fromVersion) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ if (converterVersion > toVersion) {
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ List<DataHook<Object, Object>> hooks = this.structureHooks.getFloor(converterVersion);
|
|
+
|
|
+ if (hooks != null) {
|
|
+ for (int k = 0, klen = hooks.size(); k < klen; ++k) {
|
|
+ final Object replace = hooks.get(k).preHook(ret == null ? data : ret, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ ret = replace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final Object converted = converter.convert(ret == null ? data : ret, fromVersion, toVersion);
|
|
+ if (converted != null) {
|
|
+ ret = converted;
|
|
+ }
|
|
+
|
|
+ // possibly new data format, update hooks
|
|
+ hooks = this.structureHooks.getFloor(toVersion);
|
|
+
|
|
+ if (hooks != null) {
|
|
+ for (int k = 0, klen = hooks.size(); k < klen; ++k) {
|
|
+ final Object replace = hooks.get(k).postHook(ret == null ? data : ret, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ ret = replace;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/hooks/DataHookEnforceNamespacedID.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/hooks/DataHookEnforceNamespacedID.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..26a03007a4386ff037a1ae50045d0c44dd438235
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/hooks/DataHookEnforceNamespacedID.java
|
|
@@ -0,0 +1,35 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.hooks;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataHook;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.util.NamespaceUtil;
|
|
+
|
|
+public class DataHookEnforceNamespacedID implements DataHook<MapType<String>, MapType<String>> {
|
|
+
|
|
+ private final String path;
|
|
+
|
|
+ public DataHookEnforceNamespacedID() {
|
|
+ this("id");
|
|
+ }
|
|
+
|
|
+ public DataHookEnforceNamespacedID(final String path) {
|
|
+ this.path = path;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> preHook(final MapType<String> data, final long fromVersion, final long toVersion) {
|
|
+ final String id = data.getString(this.path);
|
|
+ if (id != null) {
|
|
+ final String replace = NamespaceUtil.correctNamespaceOrNull(id);
|
|
+ if (replace != null) {
|
|
+ data.setString(this.path, replace);
|
|
+ }
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> postHook(final MapType<String> data, final long fromVersion, final long toVersion) {
|
|
+ return null;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/hooks/DataHookValueTypeEnforceNamespaced.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/hooks/DataHookValueTypeEnforceNamespaced.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..7f88487e7db589070512fafef1eb243ae29a379a
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/hooks/DataHookValueTypeEnforceNamespaced.java
|
|
@@ -0,0 +1,20 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.hooks;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataHook;
|
|
+import ca.spottedleaf.dataconverter.util.NamespaceUtil;
|
|
+
|
|
+public class DataHookValueTypeEnforceNamespaced implements DataHook<Object, Object> {
|
|
+
|
|
+ @Override
|
|
+ public Object preHook(final Object data, final long fromVersion, final long toVersion) {
|
|
+ if (data instanceof String) {
|
|
+ return NamespaceUtil.correctNamespaceOrNull((String)data);
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Object postHook(final Object data, final long fromVersion, final long toVersion) {
|
|
+ return null;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V100.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V100.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..7e8f42eb57c12c885a1c17eafab1c9d9be4d8963
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V100.java
|
|
@@ -0,0 +1,159 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.block_name.DataWalkerBlockNames;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItems;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V100 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W32A;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final ListType equipment = data.getList("Equipment", ObjectType.MAP);
|
|
+ data.remove("Equipment");
|
|
+
|
|
+ if (equipment != null) {
|
|
+ if (equipment.size() > 0 && data.getListUnchecked("HandItems") == null) {
|
|
+ final ListType handItems = Types.NBT.createEmptyList();
|
|
+ data.setList("HandItems", handItems);
|
|
+ handItems.addMap(equipment.getMap(0));
|
|
+ handItems.addMap(Types.NBT.createEmptyMap());
|
|
+ }
|
|
+
|
|
+ if (equipment.size() > 1 && data.getListUnchecked("ArmorItems") == null) {
|
|
+ final ListType armorItems = Types.NBT.createEmptyList();
|
|
+ data.setList("ArmorItems", armorItems);
|
|
+ for (int i = 1; i < Math.min(equipment.size(), 5); ++i) {
|
|
+ armorItems.addMap(equipment.getMap(i));
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final ListType dropChances = data.getList("DropChances", ObjectType.FLOAT);
|
|
+ data.remove("DropChances");
|
|
+
|
|
+ if (dropChances != null) {
|
|
+ if (data.getListUnchecked("HandDropChances") == null) {
|
|
+ final ListType handDropChances = Types.NBT.createEmptyList();
|
|
+ data.setList("HandDropChances", handDropChances);
|
|
+ if (0 < dropChances.size()) {
|
|
+ handDropChances.addFloat(dropChances.getFloat(0));
|
|
+ } else {
|
|
+ handDropChances.addFloat(0.0F);
|
|
+ }
|
|
+ handDropChances.addFloat(0.0F);
|
|
+ }
|
|
+
|
|
+ if (data.getListUnchecked("ArmorDropChances") == null) {
|
|
+ final ListType armorDropChances = Types.NBT.createEmptyList();
|
|
+ data.setList("ArmorDropChances", armorDropChances);
|
|
+ for (int i = 1; i < 5; ++i) {
|
|
+ if (i < dropChances.size()) {
|
|
+ armorDropChances.addFloat(dropChances.getFloat(i));
|
|
+ } else {
|
|
+ armorDropChances.addFloat(0.0F);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ registerMob("ArmorStand");
|
|
+ registerMob("Creeper");
|
|
+ registerMob("Skeleton");
|
|
+ registerMob("Spider");
|
|
+ registerMob("Giant");
|
|
+ registerMob("Zombie");
|
|
+ registerMob("Slime");
|
|
+ registerMob("Ghast");
|
|
+ registerMob("PigZombie");
|
|
+ registerMob("Enderman");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Enderman", new DataWalkerBlockNames("carried"));
|
|
+ registerMob("CaveSpider");
|
|
+ registerMob("Silverfish");
|
|
+ registerMob("Blaze");
|
|
+ registerMob("LavaSlime");
|
|
+ registerMob("EnderDragon");
|
|
+ registerMob("WitherBoss");
|
|
+ registerMob("Bat");
|
|
+ registerMob("Witch");
|
|
+ registerMob("Endermite");
|
|
+ registerMob("Guardian");
|
|
+ registerMob("Pig");
|
|
+ registerMob("Sheep");
|
|
+ registerMob("Cow");
|
|
+ registerMob("Chicken");
|
|
+ registerMob("Squid");
|
|
+ registerMob("Wolf");
|
|
+ registerMob("MushroomCow");
|
|
+ registerMob("SnowMan");
|
|
+ registerMob("Ozelot");
|
|
+ registerMob("VillagerGolem");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "EntityHorse", new DataWalkerItemLists("Items", "ArmorItems", "HandItems"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "EntityHorse", new DataWalkerItems("ArmorItem", "SaddleItem"));
|
|
+ registerMob("Rabbit");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Villager", (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "Inventory", fromVersion, toVersion);
|
|
+
|
|
+ final MapType<String> offers = data.getMap("Offers");
|
|
+ if (offers != null) {
|
|
+ final ListType recipes = offers.getList("Recipes", ObjectType.MAP);
|
|
+ if (recipes != null) {
|
|
+ for (int i = 0, len = recipes.size(); i < len; ++i) {
|
|
+ final MapType<String> recipe = recipes.getMap(i);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, recipe, "buy", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, recipe, "buyB", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, recipe, "sell", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "ArmorItems", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "HandItems", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ registerMob("Shulker");
|
|
+
|
|
+ MCTypeRegistry.STRUCTURE.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final ListType entities = data.getList("entities", ObjectType.MAP);
|
|
+ if (entities != null) {
|
|
+ for (int i = 0, len = entities.size(); i < len; ++i) {
|
|
+ WalkerUtils.convert(MCTypeRegistry.ENTITY, entities.getMap(i), "nbt", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final ListType blocks = data.getList("blocks", ObjectType.MAP);
|
|
+ if (blocks != null) {
|
|
+ for (int i = 0, len = blocks.size(); i < len; ++i) {
|
|
+ WalkerUtils.convert(MCTypeRegistry.TILE_ENTITY, blocks.getMap(i), "nbt", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BLOCK_STATE, data, "palette", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V100() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V101.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V101.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..f91caab4432c87238d6ac2453068bb2ef05f7c35
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V101.java
|
|
@@ -0,0 +1,73 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import com.google.gson.JsonParseException;
|
|
+import net.minecraft.network.chat.Component;
|
|
+import net.minecraft.network.chat.TextComponent;
|
|
+import net.minecraft.util.GsonHelper;
|
|
+import net.minecraft.util.datafix.fixes.BlockEntitySignTextStrictJsonFix;
|
|
+
|
|
+public final class V101 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W32A + 1;
|
|
+
|
|
+ protected static void updateLine(final MapType<String> data, final String path) {
|
|
+ final String textString = data.getString(path);
|
|
+ if (textString == null || textString.isEmpty() || "null".equals(textString)) {
|
|
+ data.setString(path, Component.Serializer.toJson(TextComponent.EMPTY));
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ Component component = null;
|
|
+
|
|
+ if (textString.charAt(0) == '"' && textString.charAt(textString.length() - 1) == '"'
|
|
+ || textString.charAt(0) == '{' && textString.charAt(textString.length() - 1) == '}') {
|
|
+ try {
|
|
+ component = GsonHelper.fromJson(BlockEntitySignTextStrictJsonFix.GSON, textString, Component.class, true);
|
|
+ if (component == null) {
|
|
+ component = TextComponent.EMPTY;
|
|
+ }
|
|
+ } catch (final JsonParseException ignored) {}
|
|
+
|
|
+ if (component == null) {
|
|
+ try {
|
|
+ component = Component.Serializer.fromJson(textString);
|
|
+ } catch (final JsonParseException ignored) {}
|
|
+ }
|
|
+
|
|
+ if (component == null) {
|
|
+ try {
|
|
+ component = Component.Serializer.fromJsonLenient(textString);
|
|
+ } catch (final JsonParseException ignored) {}
|
|
+ }
|
|
+
|
|
+ if (component == null) {
|
|
+ component = new TextComponent(textString);
|
|
+ }
|
|
+ } else {
|
|
+ component = new TextComponent(textString);
|
|
+ }
|
|
+
|
|
+ data.setString(path, Component.Serializer.toJson(component));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("Sign", new DataConverter<>(VERSION) {
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateLine(data, "Text1");
|
|
+ updateLine(data, "Text2");
|
|
+ updateLine(data, "Text3");
|
|
+ updateLine(data, "Text4");
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V101() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V102.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V102.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..660134f3fdc8db11033b310dbf52aed328bf4d99
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V102.java
|
|
@@ -0,0 +1,87 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.HelperItemNameV102;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+import org.apache.logging.log4j.LogManager;
|
|
+import org.apache.logging.log4j.Logger;
|
|
+
|
|
+public final class V102 {
|
|
+
|
|
+ private static final Logger LOGGER = LogManager.getLogger();
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W32A + 2;
|
|
+
|
|
+ public static void register() {
|
|
+ // V102 -> V15W32A + 2
|
|
+ // V102 schema only modifies ITEM_STACK to have only a string ID, but our ITEM_NAME is generic (int or String) so we don't
|
|
+ // actually need to update the walker
|
|
+
|
|
+ MCTypeRegistry.ITEM_NAME.addConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public Object convert(final Object data, final long sourceVersion, final long toVersion) {
|
|
+ if (!(data instanceof Number)) {
|
|
+ return null;
|
|
+ }
|
|
+ final int id = ((Number)data).intValue();
|
|
+ final String remap = HelperItemNameV102.getNameFromId(id);
|
|
+ if (remap == null) {
|
|
+ LOGGER.warn("Unknown legacy integer id (V102) " + id);
|
|
+ }
|
|
+ return remap == null ? HelperItemNameV102.getNameFromId(0) : remap;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.ITEM_STACK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (!data.hasKey("id", ObjectType.NUMBER)) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final int id = data.getInt("id");
|
|
+
|
|
+ String remap = HelperItemNameV102.getNameFromId(id);
|
|
+ if (remap == null) {
|
|
+ LOGGER.warn("Unknown legacy integer id (V102) " + id);
|
|
+ remap = HelperItemNameV102.getNameFromId(0);
|
|
+ }
|
|
+
|
|
+ data.setString("id", remap);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ MCTypeRegistry.ITEM_STACK.addConverterForId("minecraft:potion", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final short damage = data.getShort("Damage");
|
|
+ if (damage != 0) {
|
|
+ data.setShort("Damage", (short)0);
|
|
+ }
|
|
+ MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ tag = Types.NBT.createEmptyMap();
|
|
+ data.setMap("tag", tag);
|
|
+ }
|
|
+
|
|
+ if (!tag.hasKey("Potion", ObjectType.STRING)) {
|
|
+ final String converted = HelperItemNameV102.getPotionNameFromId(damage);
|
|
+ tag.setString("Potion", converted == null ? "minecraft:water" : converted);
|
|
+ if ((damage & 16384) == 16384) {
|
|
+ data.setString("id", "minecraft:splash_potion");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V102() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1022.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1022.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..e251ead28d7d90937ae5871ffac489c1161e6e87
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1022.java
|
|
@@ -0,0 +1,45 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1022 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V17W06A;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.PLAYER.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final MapType<String> rootVehicle = data.getMap("RootVehicle");
|
|
+ if (rootVehicle != null) {
|
|
+ WalkerUtils.convert(MCTypeRegistry.ENTITY, rootVehicle, "Entity", fromVersion, toVersion);
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "Inventory", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "EnderItems", fromVersion, toVersion);
|
|
+
|
|
+ WalkerUtils.convert(MCTypeRegistry.ENTITY, data, "ShoulderEntityLeft", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ENTITY, data, "ShoulderEntityRight", fromVersion, toVersion);
|
|
+
|
|
+ final MapType<String> recipeBook = data.getMap("recipeBook");
|
|
+ if (recipeBook != null) {
|
|
+ WalkerUtils.convertList(MCTypeRegistry.RECIPE, recipeBook, "recipes", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.RECIPE, recipeBook, "toBeDisplayed", fromVersion, toVersion);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.HOTBAR.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ for (final String key : data.keys()) {
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, key, fromVersion, toVersion);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V1022() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V105.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V105.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..544f6a54041147a8c9ee3ff52c31c480a3696924
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V105.java
|
|
@@ -0,0 +1,49 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.HelperSpawnEggNameV105;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V105 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W32C + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ITEM_STACK.addConverterForId("minecraft:spawn_egg", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ tag = Types.NBT.createEmptyMap();
|
|
+ }
|
|
+
|
|
+ final short damage = data.getShort("Damage");
|
|
+ if (damage != 0) {
|
|
+ data.setShort("Damage", (short)0);
|
|
+ }
|
|
+
|
|
+ MapType<String> entityTag = tag.getMap("EntityTag");
|
|
+ if (entityTag == null) {
|
|
+ entityTag = Types.NBT.createEmptyMap();
|
|
+ }
|
|
+
|
|
+ if (!entityTag.hasKey("id", ObjectType.STRING)) {
|
|
+ final String converted = HelperSpawnEggNameV105.getSpawnNameFromId(damage);
|
|
+ if (converted != null) {
|
|
+ entityTag.setString("id", converted);
|
|
+ tag.setMap("EntityTag", entityTag);
|
|
+ data.setMap("tag", tag);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V105() {}
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V106.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V106.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..951838b0f4f2b4ed82d707706ef15d779f3f41eb
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V106.java
|
|
@@ -0,0 +1,84 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V106 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W32C + 2;
|
|
+
|
|
+ public static void register() {
|
|
+ // V106 -> V15W32C + 2
|
|
+
|
|
+ MCTypeRegistry.UNTAGGED_SPAWNER.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ // While all converters for spawners check the id for this version, we don't because spawners exist in minecarts. ooops! Loading a chunk
|
|
+ // with a minecart spawner from 1.7.10 in 1.16.5 vanilla will fail to convert! Clearly there was a mistake in how they
|
|
+ // used and applied spawner converters. In anycase, do not check the id - we are not guaranteed to be a tile
|
|
+ // entity. We can be a regular old minecart spawner. And we know we are a spawner because this is only called from data walkers.
|
|
+
|
|
+ final String entityId = data.getString("EntityId");
|
|
+ if (entityId != null) {
|
|
+ data.remove("EntityId");
|
|
+ MapType<String> spawnData = data.getMap("SpawnData");
|
|
+ if (spawnData == null) {
|
|
+ spawnData = Types.NBT.createEmptyMap();
|
|
+ data.setMap("SpawnData", spawnData);
|
|
+ }
|
|
+ spawnData.setString("id", entityId.isEmpty() ? "Pig" : entityId);
|
|
+ }
|
|
+
|
|
+ final ListType spawnPotentials = data.getList("SpawnPotentials", ObjectType.MAP);
|
|
+ if (spawnPotentials != null) {
|
|
+ for (int i = 0, len = spawnPotentials.size(); i < len; ++i) {
|
|
+ // convert to standard entity format (it's not a coincidence a walker for spawners is only added
|
|
+ // in this version)
|
|
+ final MapType<String> spawn = spawnPotentials.getMap(i);
|
|
+ final String spawnType = spawn.getString("Type");
|
|
+ if (spawnType == null) {
|
|
+ continue;
|
|
+ }
|
|
+ spawn.remove("Type");
|
|
+
|
|
+ MapType<String> properties = spawn.getMap("Properties");
|
|
+ if (properties == null) {
|
|
+ properties = Types.NBT.createEmptyMap();
|
|
+ } else {
|
|
+ spawn.remove("Properties");
|
|
+ }
|
|
+
|
|
+ properties.setString("id", spawnType);
|
|
+
|
|
+ spawn.setMap("Entity", properties);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.UNTAGGED_SPAWNER.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final ListType spawnPotentials = data.getList("SpawnPotentials", ObjectType.MAP);
|
|
+ if (spawnPotentials != null) {
|
|
+ for (int i = 0, len = spawnPotentials.size(); i < len; ++i) {
|
|
+ final MapType<String> spawnPotential = spawnPotentials.getMap(i);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ENTITY, spawnPotential, "Entity", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convert(MCTypeRegistry.ENTITY, data, "SpawnData", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V106() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V107.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V107.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..aa8c8d22ee2a77604d923b62f5a93ede9b3f333f
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V107.java
|
|
@@ -0,0 +1,44 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V107 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W32C + 3;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("Minecart", new DataConverter<>(VERSION) {
|
|
+ protected final String[] MINECART_IDS = new String[] {
|
|
+ "MinecartRideable", // 0
|
|
+ "MinecartChest", // 1
|
|
+ "MinecartFurnace", // 2
|
|
+ "MinecartTNT", // 3
|
|
+ "MinecartSpawner", // 4
|
|
+ "MinecartHopper", // 5
|
|
+ "MinecartCommandBlock" // 6
|
|
+ };
|
|
+ // Vanilla does not use all of the IDs here. The legacy (pre DFU) code does, so I'm going to use them.
|
|
+ // No harm in catching more cases here.
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ String newId = "MinecartRideable"; // dfl
|
|
+ final int type = data.getInt("Type");
|
|
+ data.remove("Type");
|
|
+
|
|
+ if (type >= 0 && type < MINECART_IDS.length) {
|
|
+ newId = MINECART_IDS[type];
|
|
+ }
|
|
+ data.setString("id", newId);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V107() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V108.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V108.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..2300f4db851510cfa3b8dd704b555e12bc4ea725
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V108.java
|
|
@@ -0,0 +1,47 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import org.apache.logging.log4j.LogManager;
|
|
+import org.apache.logging.log4j.Logger;
|
|
+import java.util.UUID;
|
|
+
|
|
+public final class V108 {
|
|
+
|
|
+ private static final Logger LOGGER = LogManager.getLogger();
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W32C + 4;
|
|
+
|
|
+ public static void register() {
|
|
+ // Convert String UUID into UUIDMost and UUIDLeast
|
|
+ MCTypeRegistry.ENTITY.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String uuidString = data.getString("UUID");
|
|
+
|
|
+ if (uuidString == null) {
|
|
+ return null;
|
|
+ }
|
|
+ data.remove("UUID");
|
|
+
|
|
+ final UUID uuid;
|
|
+ try {
|
|
+ uuid = UUID.fromString(uuidString);
|
|
+ } catch (final Exception ex) {
|
|
+ LOGGER.warn("Failed to parse UUID for legacy entity (V108): " + uuidString, ex);
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ data.setLong("UUIDMost", uuid.getMostSignificantBits());
|
|
+ data.setLong("UUIDLeast", uuid.getLeastSignificantBits());
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V108() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V109.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V109.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5e0e52fa2d8988ca973f8a97b2374a8c3d4ef80c
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V109.java
|
|
@@ -0,0 +1,83 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import com.google.common.collect.Sets;
|
|
+import java.util.Set;
|
|
+
|
|
+public final class V109 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W32C + 5;
|
|
+
|
|
+ // DFU declares this exact field but leaves it unused. Not sure why, legacy conversion system checked if the ID matched.
|
|
+ // I'm going to leave it here unused as well, just in case it's needed in the future.
|
|
+ protected static final Set<String> ENTITIES = Sets.newHashSet(
|
|
+ "ArmorStand",
|
|
+ "Bat",
|
|
+ "Blaze",
|
|
+ "CaveSpider",
|
|
+ "Chicken",
|
|
+ "Cow",
|
|
+ "Creeper",
|
|
+ "EnderDragon",
|
|
+ "Enderman",
|
|
+ "Endermite",
|
|
+ "EntityHorse",
|
|
+ "Ghast",
|
|
+ "Giant",
|
|
+ "Guardian",
|
|
+ "LavaSlime",
|
|
+ "MushroomCow",
|
|
+ "Ozelot",
|
|
+ "Pig",
|
|
+ "PigZombie",
|
|
+ "Rabbit",
|
|
+ "Sheep",
|
|
+ "Shulker",
|
|
+ "Silverfish",
|
|
+ "Skeleton",
|
|
+ "Slime",
|
|
+ "SnowMan",
|
|
+ "Spider",
|
|
+ "Squid",
|
|
+ "Villager",
|
|
+ "VillagerGolem",
|
|
+ "Witch",
|
|
+ "WitherBoss",
|
|
+ "Wolf",
|
|
+ "Zombie"
|
|
+ );
|
|
+
|
|
+ public static void register() {
|
|
+ // Converts health to be in float, and cleans up whatever the hell was going on with HealF and Health...
|
|
+ MCTypeRegistry.ENTITY.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final Number healF = data.getNumber("HealF");
|
|
+ final Number heal = data.getNumber("Health");
|
|
+
|
|
+ final float newHealth;
|
|
+
|
|
+ if (healF != null) {
|
|
+ data.remove("HealF");
|
|
+ newHealth = healF.floatValue();
|
|
+ } else {
|
|
+ if (heal == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ newHealth = heal.floatValue();
|
|
+ }
|
|
+
|
|
+ data.setFloat("Health", newHealth);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V109() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V110.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V110.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..9771810a1f1cbf760fd9a8a5fd575f6052f40ea9
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V110.java
|
|
@@ -0,0 +1,39 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V110 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W32C + 6;
|
|
+
|
|
+ public static void register() {
|
|
+ // Moves the Saddle boolean to be an actual saddle item. Note: The data walker for the SaddleItem exists
|
|
+ // in V99, it doesn't need to be added here.
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("EntityHorse", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (!data.getBoolean("Saddle") || data.hasKey("SaddleItem", ObjectType.MAP)) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> saddleItem = Types.NBT.createEmptyMap();
|
|
+ data.remove("Saddle");
|
|
+ data.setMap("SaddleItem", saddleItem);
|
|
+
|
|
+ saddleItem.setString("id", "minecraft:saddle");
|
|
+ saddleItem.setByte("Count", (byte)1);
|
|
+ saddleItem.setShort("Damage", (short)0);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V110() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V111.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V111.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5bae7effda7761a3f2a0a2ce550d867cb2c18b99
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V111.java
|
|
@@ -0,0 +1,67 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V111 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W33B;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("Painting", new EntityRotationFix("Painting"));
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("ItemFrame", new EntityRotationFix("ItemFrame"));
|
|
+ }
|
|
+
|
|
+ private V111() {}
|
|
+
|
|
+ protected static final class EntityRotationFix extends DataConverter<MapType<String>, MapType<String>> {
|
|
+
|
|
+ private static final int[][] DIRECTIONS = new int[][] {
|
|
+ {0, 0, 1},
|
|
+ {-1, 0, 0},
|
|
+ {0, 0, -1},
|
|
+ {1, 0, 0}
|
|
+ };
|
|
+
|
|
+ protected final String id;
|
|
+
|
|
+ public EntityRotationFix(final String id) {
|
|
+ super(VERSION);
|
|
+ this.id = id;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (data.getNumber("Facing") != null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final Number direction = data.getNumber("Direction");
|
|
+ final int facing;
|
|
+ if (direction != null) {
|
|
+ data.remove("Direction");
|
|
+ facing = direction.intValue() % DIRECTIONS.length;
|
|
+ final int[] offsets = DIRECTIONS[facing];
|
|
+ data.setInt("TileX", data.getInt("TileX") + offsets[0]);
|
|
+ data.setInt("TileY", data.getInt("TileY") + offsets[1]);
|
|
+ data.setInt("TileZ", data.getInt("TileZ") + offsets[2]);
|
|
+ if ("ItemFrame".equals(data.getString("id"))) {
|
|
+ final Number rotation = data.getNumber("ItemRotation");
|
|
+ if (rotation != null) {
|
|
+ data.setByte("ItemRotation", (byte)(rotation.byteValue() * 2));
|
|
+ }
|
|
+ }
|
|
+ } else {
|
|
+ facing = data.getByte("Dir") % DIRECTIONS.length;
|
|
+ data.remove("Dir");
|
|
+ }
|
|
+
|
|
+ data.setByte("Facing", (byte)facing);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1125.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1125.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..a6d3c28e8c97b53f388c03ccad3449390937d3b2
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1125.java
|
|
@@ -0,0 +1,102 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.hooks.DataHookValueTypeEnforceNamespaced;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V1125 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V17W15A;
|
|
+ protected static final int BED_BLOCK_ID = 416;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final int chunkX = level.getInt("xPos");
|
|
+ final int chunkZ = level.getInt("zPos");
|
|
+
|
|
+ final ListType sections = level.getList("Sections", ObjectType.MAP);
|
|
+ if (sections == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ ListType tileEntities = level.getList("TileEntities", ObjectType.MAP);
|
|
+ if (tileEntities == null) {
|
|
+ tileEntities = Types.NBT.createEmptyList();
|
|
+ level.setList("TileEntities", tileEntities);
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = sections.size(); i < len; ++i) {
|
|
+ final MapType<String> section = sections.getMap(i);
|
|
+
|
|
+ final byte sectionY = section.getByte("Y");
|
|
+ final byte[] blocks = section.getBytes("Blocks");
|
|
+
|
|
+ if (blocks == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ for (int blockIndex = 0; blockIndex < blocks.length; ++blockIndex) {
|
|
+ if (BED_BLOCK_ID != ((blocks[blockIndex] & 255) << 4)) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final int localX = blockIndex & 15;
|
|
+ final int localZ = (blockIndex >> 4) & 15;
|
|
+ final int localY = (blockIndex >> 8) & 15;
|
|
+
|
|
+ final MapType<String> newTile = Types.NBT.createEmptyMap();
|
|
+ newTile.setString("id", "minecraft:bed");
|
|
+ newTile.setInt("x", localX + (chunkX << 4));
|
|
+ newTile.setInt("y", localY + (sectionY << 4));
|
|
+ newTile.setInt("z", localZ + (chunkZ << 4));
|
|
+ newTile.setShort("color", (short)14); // Red
|
|
+
|
|
+ tileEntities.addMap(newTile);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.ITEM_STACK.addConverterForId("minecraft:bed", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (data.getShort("Damage") == 0) {
|
|
+ data.setShort("Damage", (short)14); // Red
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+
|
|
+ MCTypeRegistry.ADVANCEMENTS.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.BIOME, data.getMap("minecraft:adventure/adventuring_time"), "criteria", fromVersion, toVersion);
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.ENTITY_NAME, data.getMap("minecraft:adventure/kill_a_mob"), "criteria", fromVersion, toVersion);
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.ENTITY_NAME, data.getMap("minecraft:adventure/kill_all_mobs"), "criteria", fromVersion, toVersion);
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.ENTITY_NAME, data.getMap("minecraft:adventure/bred_all_animals"), "criteria", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+ // Enforce namespacing for ids
|
|
+ MCTypeRegistry.BIOME.addStructureHook(VERSION, new DataHookValueTypeEnforceNamespaced());
|
|
+ }
|
|
+
|
|
+ private V1125() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V113.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V113.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..8b93bba2b084e20d346461f53d2f7662c3d6238b
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V113.java
|
|
@@ -0,0 +1,41 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V113 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W33C + 1;
|
|
+
|
|
+ protected static void checkList(final MapType<String> data, final String id, final int requiredLength) {
|
|
+ final ListType list = data.getList(id, ObjectType.FLOAT);
|
|
+ if (list != null && list.size() == requiredLength) {
|
|
+ for (int i = 0; i < requiredLength; ++i) {
|
|
+ if (list.getFloat(i) != 0.0F) {
|
|
+ return;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ data.remove(id);
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ // Removes "HandDropChances" and "ArmorDropChances" if they're empty.
|
|
+ MCTypeRegistry.ENTITY.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ checkList(data, "HandDropChances", 2);
|
|
+ checkList(data, "ArmorDropChances", 4);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V113() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1344.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1344.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..ac390a6111ba1a4aae3d5726747f60f4929fa254
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1344.java
|
|
@@ -0,0 +1,177 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
|
+
|
|
+public final class V1344 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_12_2 + 1;
|
|
+
|
|
+ private static final Int2ObjectOpenHashMap<String> BUTTON_ID_TO_NAME = new Int2ObjectOpenHashMap<>();
|
|
+ static {
|
|
+ BUTTON_ID_TO_NAME.put(0, "key.unknown");
|
|
+ BUTTON_ID_TO_NAME.put(11, "key.0");
|
|
+ BUTTON_ID_TO_NAME.put(2, "key.1");
|
|
+ BUTTON_ID_TO_NAME.put(3, "key.2");
|
|
+ BUTTON_ID_TO_NAME.put(4, "key.3");
|
|
+ BUTTON_ID_TO_NAME.put(5, "key.4");
|
|
+ BUTTON_ID_TO_NAME.put(6, "key.5");
|
|
+ BUTTON_ID_TO_NAME.put(7, "key.6");
|
|
+ BUTTON_ID_TO_NAME.put(8, "key.7");
|
|
+ BUTTON_ID_TO_NAME.put(9, "key.8");
|
|
+ BUTTON_ID_TO_NAME.put(10, "key.9");
|
|
+ BUTTON_ID_TO_NAME.put(30, "key.a");
|
|
+ BUTTON_ID_TO_NAME.put(40, "key.apostrophe");
|
|
+ BUTTON_ID_TO_NAME.put(48, "key.b");
|
|
+ BUTTON_ID_TO_NAME.put(43, "key.backslash");
|
|
+ BUTTON_ID_TO_NAME.put(14, "key.backspace");
|
|
+ BUTTON_ID_TO_NAME.put(46, "key.c");
|
|
+ BUTTON_ID_TO_NAME.put(58, "key.caps.lock");
|
|
+ BUTTON_ID_TO_NAME.put(51, "key.comma");
|
|
+ BUTTON_ID_TO_NAME.put(32, "key.d");
|
|
+ BUTTON_ID_TO_NAME.put(211, "key.delete");
|
|
+ BUTTON_ID_TO_NAME.put(208, "key.down");
|
|
+ BUTTON_ID_TO_NAME.put(18, "key.e");
|
|
+ BUTTON_ID_TO_NAME.put(207, "key.end");
|
|
+ BUTTON_ID_TO_NAME.put(28, "key.enter");
|
|
+ BUTTON_ID_TO_NAME.put(13, "key.equal");
|
|
+ BUTTON_ID_TO_NAME.put(1, "key.escape");
|
|
+ BUTTON_ID_TO_NAME.put(33, "key.f");
|
|
+ BUTTON_ID_TO_NAME.put(59, "key.f1");
|
|
+ BUTTON_ID_TO_NAME.put(68, "key.f10");
|
|
+ BUTTON_ID_TO_NAME.put(87, "key.f11");
|
|
+ BUTTON_ID_TO_NAME.put(88, "key.f12");
|
|
+ BUTTON_ID_TO_NAME.put(100, "key.f13");
|
|
+ BUTTON_ID_TO_NAME.put(101, "key.f14");
|
|
+ BUTTON_ID_TO_NAME.put(102, "key.f15");
|
|
+ BUTTON_ID_TO_NAME.put(103, "key.f16");
|
|
+ BUTTON_ID_TO_NAME.put(104, "key.f17");
|
|
+ BUTTON_ID_TO_NAME.put(105, "key.f18");
|
|
+ BUTTON_ID_TO_NAME.put(113, "key.f19");
|
|
+ BUTTON_ID_TO_NAME.put(60, "key.f2");
|
|
+ BUTTON_ID_TO_NAME.put(61, "key.f3");
|
|
+ BUTTON_ID_TO_NAME.put(62, "key.f4");
|
|
+ BUTTON_ID_TO_NAME.put(63, "key.f5");
|
|
+ BUTTON_ID_TO_NAME.put(64, "key.f6");
|
|
+ BUTTON_ID_TO_NAME.put(65, "key.f7");
|
|
+ BUTTON_ID_TO_NAME.put(66, "key.f8");
|
|
+ BUTTON_ID_TO_NAME.put(67, "key.f9");
|
|
+ BUTTON_ID_TO_NAME.put(34, "key.g");
|
|
+ BUTTON_ID_TO_NAME.put(41, "key.grave.accent");
|
|
+ BUTTON_ID_TO_NAME.put(35, "key.h");
|
|
+ BUTTON_ID_TO_NAME.put(199, "key.home");
|
|
+ BUTTON_ID_TO_NAME.put(23, "key.i");
|
|
+ BUTTON_ID_TO_NAME.put(210, "key.insert");
|
|
+ BUTTON_ID_TO_NAME.put(36, "key.j");
|
|
+ BUTTON_ID_TO_NAME.put(37, "key.k");
|
|
+ BUTTON_ID_TO_NAME.put(82, "key.keypad.0");
|
|
+ BUTTON_ID_TO_NAME.put(79, "key.keypad.1");
|
|
+ BUTTON_ID_TO_NAME.put(80, "key.keypad.2");
|
|
+ BUTTON_ID_TO_NAME.put(81, "key.keypad.3");
|
|
+ BUTTON_ID_TO_NAME.put(75, "key.keypad.4");
|
|
+ BUTTON_ID_TO_NAME.put(76, "key.keypad.5");
|
|
+ BUTTON_ID_TO_NAME.put(77, "key.keypad.6");
|
|
+ BUTTON_ID_TO_NAME.put(71, "key.keypad.7");
|
|
+ BUTTON_ID_TO_NAME.put(72, "key.keypad.8");
|
|
+ BUTTON_ID_TO_NAME.put(73, "key.keypad.9");
|
|
+ BUTTON_ID_TO_NAME.put(78, "key.keypad.add");
|
|
+ BUTTON_ID_TO_NAME.put(83, "key.keypad.decimal");
|
|
+ BUTTON_ID_TO_NAME.put(181, "key.keypad.divide");
|
|
+ BUTTON_ID_TO_NAME.put(156, "key.keypad.enter");
|
|
+ BUTTON_ID_TO_NAME.put(141, "key.keypad.equal");
|
|
+ BUTTON_ID_TO_NAME.put(55, "key.keypad.multiply");
|
|
+ BUTTON_ID_TO_NAME.put(74, "key.keypad.subtract");
|
|
+ BUTTON_ID_TO_NAME.put(38, "key.l");
|
|
+ BUTTON_ID_TO_NAME.put(203, "key.left");
|
|
+ BUTTON_ID_TO_NAME.put(56, "key.left.alt");
|
|
+ BUTTON_ID_TO_NAME.put(26, "key.left.bracket");
|
|
+ BUTTON_ID_TO_NAME.put(29, "key.left.control");
|
|
+ BUTTON_ID_TO_NAME.put(42, "key.left.shift");
|
|
+ BUTTON_ID_TO_NAME.put(219, "key.left.win");
|
|
+ BUTTON_ID_TO_NAME.put(50, "key.m");
|
|
+ BUTTON_ID_TO_NAME.put(12, "key.minus");
|
|
+ BUTTON_ID_TO_NAME.put(49, "key.n");
|
|
+ BUTTON_ID_TO_NAME.put(69, "key.num.lock");
|
|
+ BUTTON_ID_TO_NAME.put(24, "key.o");
|
|
+ BUTTON_ID_TO_NAME.put(25, "key.p");
|
|
+ BUTTON_ID_TO_NAME.put(209, "key.page.down");
|
|
+ BUTTON_ID_TO_NAME.put(201, "key.page.up");
|
|
+ BUTTON_ID_TO_NAME.put(197, "key.pause");
|
|
+ BUTTON_ID_TO_NAME.put(52, "key.period");
|
|
+ BUTTON_ID_TO_NAME.put(183, "key.print.screen");
|
|
+ BUTTON_ID_TO_NAME.put(16, "key.q");
|
|
+ BUTTON_ID_TO_NAME.put(19, "key.r");
|
|
+ BUTTON_ID_TO_NAME.put(205, "key.right");
|
|
+ BUTTON_ID_TO_NAME.put(184, "key.right.alt");
|
|
+ BUTTON_ID_TO_NAME.put(27, "key.right.bracket");
|
|
+ BUTTON_ID_TO_NAME.put(157, "key.right.control");
|
|
+ BUTTON_ID_TO_NAME.put(54, "key.right.shift");
|
|
+ BUTTON_ID_TO_NAME.put(220, "key.right.win");
|
|
+ BUTTON_ID_TO_NAME.put(31, "key.s");
|
|
+ BUTTON_ID_TO_NAME.put(70, "key.scroll.lock");
|
|
+ BUTTON_ID_TO_NAME.put(39, "key.semicolon");
|
|
+ BUTTON_ID_TO_NAME.put(53, "key.slash");
|
|
+ BUTTON_ID_TO_NAME.put(57, "key.space");
|
|
+ BUTTON_ID_TO_NAME.put(20, "key.t");
|
|
+ BUTTON_ID_TO_NAME.put(15, "key.tab");
|
|
+ BUTTON_ID_TO_NAME.put(22, "key.u");
|
|
+ BUTTON_ID_TO_NAME.put(200, "key.up");
|
|
+ BUTTON_ID_TO_NAME.put(47, "key.v");
|
|
+ BUTTON_ID_TO_NAME.put(17, "key.w");
|
|
+ BUTTON_ID_TO_NAME.put(45, "key.x");
|
|
+ BUTTON_ID_TO_NAME.put(21, "key.y");
|
|
+ BUTTON_ID_TO_NAME.put(44, "key.z");
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.OPTIONS.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ for (final String key : data.keys()) {
|
|
+ if (!key.startsWith("key_")) {
|
|
+ continue;
|
|
+ }
|
|
+ final String value = data.getString(key);
|
|
+ final int code;
|
|
+ try {
|
|
+ code = Integer.parseInt(value);
|
|
+ } catch (final NumberFormatException ex) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String newEntry;
|
|
+
|
|
+ if (code < 0) {
|
|
+ final int mouseCode = code + 100;
|
|
+ switch (mouseCode) {
|
|
+ case 0:
|
|
+ newEntry = "key.mouse.left";
|
|
+ break;
|
|
+ case 1:
|
|
+ newEntry = "key.mouse.right";
|
|
+ break;
|
|
+ case 2:
|
|
+ newEntry = "key.mouse.middle";
|
|
+ break;
|
|
+ default:
|
|
+ newEntry = "key.mouse." + (mouseCode + 1);
|
|
+ break;
|
|
+ }
|
|
+ } else {
|
|
+ newEntry = BUTTON_ID_TO_NAME.getOrDefault(code, "key.unknown");
|
|
+ }
|
|
+
|
|
+ // No CMEs occur for existing entries in maps.
|
|
+ data.setString(key, newEntry);
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V1344() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V135.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V135.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..764a56fda5ee909ac47a0c1b3b581c8c26deb591
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V135.java
|
|
@@ -0,0 +1,61 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V135 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W40B + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ // In this update they changed the "Riding" value to be "Passengers", which is now a list. So it added
|
|
+ // support for multiple entities riding. Of course, Riding and Passenger are opposites - so it also will
|
|
+ // switch the data layout to be from highest rider to lowest rider, in terms of depth.
|
|
+ MCTypeRegistry.ENTITY.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ MapType<String> ret = null;
|
|
+ while (data.hasKey("Riding", ObjectType.MAP)) {
|
|
+ final MapType<String> riding = data.getMap("Riding");
|
|
+ data.remove("Riding");
|
|
+
|
|
+ final ListType passengers = Types.NBT.createEmptyList();
|
|
+ riding.setList("Passengers", passengers);
|
|
+ passengers.addMap(data);
|
|
+
|
|
+ ret = data = riding;
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+ });
|
|
+
|
|
+
|
|
+ MCTypeRegistry.PLAYER.addStructureWalker(VERSION, new DataWalkerItemLists("Inventory", "EnderItems"));
|
|
+ MCTypeRegistry.PLAYER.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final MapType<String> rootVehicle = data.getMap("RootVehicle");
|
|
+ if (rootVehicle != null) {
|
|
+ WalkerUtils.convert(MCTypeRegistry.ENTITY, rootVehicle, "Entity", fromVersion, toVersion);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ENTITY, data, "Passengers", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+ }
|
|
+
|
|
+ private V135() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V143.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V143.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..451e837349e10f1e76ac7d9f5d49cbe0ff630f4d
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V143.java
|
|
@@ -0,0 +1,18 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.entity.ConverterAbstractEntityRename;
|
|
+
|
|
+public final class V143 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W44B;
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractEntityRename.register(VERSION, (final String input) -> {
|
|
+ return "TippedArrow".equals(input) ? "Arrow" : null;
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V143() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1446.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1446.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..fc0ece569baed94bbf3cbbaa21a397fdc37e51e8
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1446.java
|
|
@@ -0,0 +1,36 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1446 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V17W43B + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.OPTIONS.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ for (final String key : data.keys()) {
|
|
+ if (!key.startsWith("key_")) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String value = data.getString(key);
|
|
+
|
|
+ if (value.startsWith("key.mouse") || value.startsWith("scancode.")) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ data.setString(key, "key.keyboard." + value.substring("key.".length()));
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V1446() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1450.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1450.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..711222cd33ee557b7f3d1f6ae73ad45d1caf6768
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1450.java
|
|
@@ -0,0 +1,25 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.HelperBlockFlatteningV1450;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1450 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V17W46A + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.BLOCK_STATE.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> ret = HelperBlockFlatteningV1450.flattenNBT(data);
|
|
+ return ret == data ? null : ret.copy(); // copy to avoid problems with later state datafixers
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V1450() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1451.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1451.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..a20d258814b0d2d0fa01d45be43a66987de19598
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1451.java
|
|
@@ -0,0 +1,512 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataHook;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.chunk.ConverterFlattenChunk;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.HelperBlockFlatteningV1450;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.HelperItemNameV102;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemstack.ConverterFlattenItemStack;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemstack.ConverterFlattenSpawnEgg;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.stats.ConverterFlattenStats;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.entity.ConverterFlattenEntity;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.DataWalkerTypePaths;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItems;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.tile_entity.DataWalkerTileEntities;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+import com.google.common.base.Splitter;
|
|
+import net.minecraft.resources.ResourceLocation;
|
|
+import net.minecraft.util.datafix.fixes.BlockStateData;
|
|
+import net.minecraft.util.datafix.fixes.EntityBlockStateFix;
|
|
+import org.apache.commons.lang3.math.NumberUtils;
|
|
+import java.util.Iterator;
|
|
+import java.util.List;
|
|
+import java.util.stream.Collectors;
|
|
+import java.util.stream.StreamSupport;
|
|
+
|
|
+public final class V1451 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V17W47A;
|
|
+
|
|
+ public static void register() {
|
|
+ // V0
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, 0, "minecraft:trapped_chest", new DataWalkerItemLists("Items"));
|
|
+
|
|
+ // V1
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new ConverterFlattenChunk());
|
|
+
|
|
+ MCTypeRegistry.CHUNK.addStructureWalker(VERSION, 1, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ENTITY, level, "Entities", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.TILE_ENTITY, level, "TileEntities", fromVersion, toVersion);
|
|
+
|
|
+ final ListType tileTicks = level.getList("TileTicks", ObjectType.MAP);
|
|
+ if (tileTicks != null) {
|
|
+ for (int i = 0, len = tileTicks.size(); i < len; ++i) {
|
|
+ final MapType<String> tileTick = tileTicks.getMap(i);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_NAME, tileTick, "i", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final ListType sections = level.getList("Sections", ObjectType.MAP);
|
|
+ if (sections != null) {
|
|
+ for (int i = 0, len = sections.size(); i < len; ++i) {
|
|
+ final MapType<String> section = sections.getMap(i);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BLOCK_STATE, section, "Palette", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+ // V2
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:piston", new DataConverter<>(VERSION, 2) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final int blockId = data.getInt("blockId");
|
|
+ final int blockData = data.getInt("blockData") & 15;
|
|
+
|
|
+ data.remove("blockId");
|
|
+ data.remove("blockData");
|
|
+
|
|
+ data.setMap("blockState", HelperBlockFlatteningV1450.getNBTForId((blockId << 4) | blockData).copy()); // copy to avoid problems with later state datafixers
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, 2, "minecraft:piston", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "blockState"));
|
|
+
|
|
+ // V3
|
|
+ ConverterFlattenEntity.register();
|
|
+ MCTypeRegistry.ITEM_STACK.addConverterForId("minecraft:filled_map", new DataConverter<>(VERSION, 3) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ tag = Types.NBT.createEmptyMap();
|
|
+ data.setMap("tag", tag);
|
|
+ }
|
|
+
|
|
+ if (!tag.hasKey("map", ObjectType.NUMBER)) { // This if is from CB. as usual, no documentation from CB. I'm guessing it just wants to avoid possibly overwriting it. seems fine.
|
|
+ tag.setInt("map", data.getInt("Damage"));
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:potion", new DataWalkerItems("Potion"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:arrow", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "inBlockState"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:enderman", new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:enderman", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "carriedBlockState"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:falling_block", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "BlockState"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:falling_block", new DataWalkerTileEntities("TileEntityData"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:spectral_arrow", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "inBlockState"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:chest_minecart", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "DisplayState"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:chest_minecart", new DataWalkerItemLists("Items"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:commandblock_minecart", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "DisplayState"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:furnace_minecart", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "DisplayState"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:hopper_minecart", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "DisplayState"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:hopper_minecart", new DataWalkerItemLists("Items"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:minecart", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "DisplayState"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:spawner_minecart", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "DisplayState"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:spawner_minecart", (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ MCTypeRegistry.UNTAGGED_SPAWNER.convert(data, fromVersion, toVersion);
|
|
+ return null;
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, 3, "minecraft:tnt_minecart", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "DisplayState"));
|
|
+
|
|
+ // V4
|
|
+ MCTypeRegistry.BLOCK_NAME.addConverter(new DataConverter<>(VERSION, 4) {
|
|
+ @Override
|
|
+ public Object convert(final Object data, final long sourceVersion, final long toVersion) {
|
|
+ if (data instanceof Number) {
|
|
+ return HelperBlockFlatteningV1450.getNameForId(((Number)data).intValue());
|
|
+ } else if (data instanceof String) {
|
|
+ return HelperBlockFlatteningV1450.getNewBlockName((String)data); // structure hook ensured data is namespaced
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ MCTypeRegistry.ITEM_STACK.addStructureConverter(new ConverterFlattenItemStack());
|
|
+
|
|
+ // V5
|
|
+ MCTypeRegistry.ITEM_STACK.addConverterForId("minecraft:spawn_egg", new ConverterFlattenSpawnEgg());
|
|
+ /* This datafixer has been disabled because the collar colour handler did not change from 1.12 -> 1.13 at all.
|
|
+ // So clearly somebody fucked up. This fixes wolf colours incorrectly converting between versions
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:wolf", new DataConverter<>(VERSION, 5) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final Number colour = data.getNumber("CollarColor");
|
|
+
|
|
+ if (colour != null) {
|
|
+ data.setByte("CollarColor", (byte)(15 - colour.intValue()));
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ */
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:banner", new DataConverter<>(VERSION, 5) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final Number base = data.getNumber("Base");
|
|
+ if (base != null) {
|
|
+ data.setInt("Base", 15 - base.intValue());
|
|
+ }
|
|
+
|
|
+ final ListType patterns = data.getList("Patterns", ObjectType.MAP);
|
|
+ if (patterns != null) {
|
|
+ for (int i = 0, len = patterns.size(); i < len; ++i) {
|
|
+ final MapType<String> pattern = patterns.getMap(i);
|
|
+ final Number colour = pattern.getNumber("Color");
|
|
+ if (colour != null) {
|
|
+ pattern.setInt("Color", 15 - colour.intValue());
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ MCTypeRegistry.LEVEL.addStructureConverter(new DataConverter<>(VERSION, 5) {
|
|
+ private final Splitter SPLITTER = Splitter.on(';').limit(5);
|
|
+ private final Splitter LAYER_SPLITTER = Splitter.on(',');
|
|
+ private final Splitter OLD_AMOUNT_SPLITTER = Splitter.on('x').limit(2);
|
|
+ private final Splitter AMOUNT_SPLITTER = Splitter.on('*').limit(2);
|
|
+ private final Splitter BLOCK_SPLITTER = Splitter.on(':').limit(3);
|
|
+
|
|
+ // idk man i just copy and pasted this one
|
|
+ private String fixGeneratorSettings(final String generatorSettings) {
|
|
+ if (generatorSettings.isEmpty()) {
|
|
+ return "minecraft:bedrock,2*minecraft:dirt,minecraft:grass_block;1;village";
|
|
+ } else {
|
|
+ Iterator<String> iterator = SPLITTER.split(generatorSettings).iterator();
|
|
+ String string2 = (String)iterator.next();
|
|
+ int j;
|
|
+ String string4;
|
|
+ if (iterator.hasNext()) {
|
|
+ j = NumberUtils.toInt(string2, 0);
|
|
+ string4 = (String)iterator.next();
|
|
+ } else {
|
|
+ j = 0;
|
|
+ string4 = string2;
|
|
+ }
|
|
+
|
|
+ if (j >= 0 && j <= 3) {
|
|
+ StringBuilder stringBuilder = new StringBuilder();
|
|
+ Splitter splitter = j < 3 ? OLD_AMOUNT_SPLITTER : AMOUNT_SPLITTER;
|
|
+ stringBuilder.append((String) StreamSupport.stream(LAYER_SPLITTER.split(string4).spliterator(), false).map((stringx) -> {
|
|
+ List<String> list = splitter.splitToList(stringx);
|
|
+ int k;
|
|
+ String string3;
|
|
+ if (list.size() == 2) {
|
|
+ k = NumberUtils.toInt((String)list.get(0));
|
|
+ string3 = (String)list.get(1);
|
|
+ } else {
|
|
+ k = 1;
|
|
+ string3 = (String)list.get(0);
|
|
+ }
|
|
+
|
|
+ List<String> list2 = BLOCK_SPLITTER.splitToList(string3);
|
|
+ int l = ((String)list2.get(0)).equals("minecraft") ? 1 : 0;
|
|
+ String string5 = (String)list2.get(l);
|
|
+ int m = j == 3 ? EntityBlockStateFix.getBlockId("minecraft:" + string5) : NumberUtils.toInt(string5, 0);
|
|
+ int n = l + 1;
|
|
+ int o = list2.size() > n ? NumberUtils.toInt((String)list2.get(n), 0) : 0;
|
|
+ return (k == 1 ? "" : k + "*") + BlockStateData.getTag(m << 4 | o).get("Name").asString("");
|
|
+ }).collect(Collectors.joining(",")));
|
|
+
|
|
+ while(iterator.hasNext()) {
|
|
+ stringBuilder.append(';').append((String)iterator.next());
|
|
+ }
|
|
+
|
|
+ return stringBuilder.toString();
|
|
+ } else {
|
|
+ return "minecraft:bedrock,2*minecraft:dirt,minecraft:grass_block;1;village";
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (!"flat".equalsIgnoreCase(data.getString("generatorName"))) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String generatorOptions = data.getString("generatorOptions");
|
|
+ if (generatorOptions == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ data.setString("generatorOptions", this.fixGeneratorSettings(generatorOptions));
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ // V6
|
|
+ MCTypeRegistry.STATS.addStructureConverter(new ConverterFlattenStats());
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:jukebox", new DataConverter<>(VERSION, 6) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final int record = data.getInt("Record");
|
|
+ if (record <= 0) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ data.remove("Record");
|
|
+
|
|
+ final String newItemId = ConverterFlattenItemStack.flattenItem(HelperItemNameV102.getNameFromId(record), 0);
|
|
+ if (newItemId == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> recordItem = Types.NBT.createEmptyMap();
|
|
+ data.setMap("RecordItem", recordItem);
|
|
+
|
|
+ recordItem.setString("id", newItemId);
|
|
+ recordItem.setByte("Count", (byte)1);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.STATS.addStructureWalker(VERSION, 6, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final MapType<String> stats = data.getMap("stats");
|
|
+ if (stats == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.BLOCK_NAME, stats, "minecraft:mined", fromVersion, toVersion);
|
|
+
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.ITEM_NAME, stats, "minecraft:crafted", fromVersion, toVersion);
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.ITEM_NAME, stats, "minecraft:used", fromVersion, toVersion);
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.ITEM_NAME, stats, "minecraft:broken", fromVersion, toVersion);
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.ITEM_NAME, stats, "minecraft:picked_up", fromVersion, toVersion);
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.ITEM_NAME, stats, "minecraft:dropped", fromVersion, toVersion);
|
|
+
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.ENTITY_NAME, stats, "minecraft:killed", fromVersion, toVersion);
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.ENTITY_NAME, stats, "minecraft:killed_by", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.OBJECTIVE.addStructureHook(VERSION, 6, new DataHook<>() {
|
|
+ private static String packWithDot(final String string) {
|
|
+ final ResourceLocation resourceLocation = ResourceLocation.tryParse(string);
|
|
+ return resourceLocation != null ? resourceLocation.getNamespace() + "." + resourceLocation.getPath() : string;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> preHook(final MapType<String> data, final long fromVersion, final long toVersion) {
|
|
+ // unpack
|
|
+ final String criteriaName = data.getString("CriteriaName");
|
|
+ String type;
|
|
+ String id;
|
|
+
|
|
+ if (criteriaName != null) {
|
|
+ final int index = criteriaName.indexOf(':');
|
|
+ if (index < 0) {
|
|
+ type = "_special";
|
|
+ id = criteriaName;
|
|
+ } else {
|
|
+ try {
|
|
+ type = ResourceLocation.of(criteriaName.substring(0, index), '.').toString();
|
|
+ id = ResourceLocation.of(criteriaName.substring(index + 1), '.').toString();
|
|
+ } catch (final Exception ex) {
|
|
+ type = "_special";
|
|
+ id = criteriaName;
|
|
+ }
|
|
+ }
|
|
+ } else {
|
|
+ type = null;
|
|
+ id = null;
|
|
+ }
|
|
+
|
|
+ if (type != null && id != null) {
|
|
+ final MapType<String> criteriaType = Types.NBT.createEmptyMap();
|
|
+ data.setMap("CriteriaType", criteriaType);
|
|
+
|
|
+ criteriaType.setString("type", type);
|
|
+ criteriaType.setString("id", id);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> postHook(final MapType<String> data, final long fromVersion, final long toVersion) {
|
|
+ // repack
|
|
+ final MapType<String> criteriaType = data.getMap("CriteriaType");
|
|
+
|
|
+ final String newName;
|
|
+ if (criteriaType == null) {
|
|
+ newName = null;
|
|
+ } else {
|
|
+ final String type = criteriaType.getString("type");
|
|
+ final String id = criteriaType.getString("id");
|
|
+ if (type != null && id != null) {
|
|
+ if ("_special".equals(type)) {
|
|
+ newName = id;
|
|
+ } else {
|
|
+ newName = packWithDot(type) + ":" + packWithDot(id);
|
|
+ }
|
|
+ } else {
|
|
+ newName = null;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ if (newName != null) {
|
|
+ data.remove("CriteriaType");
|
|
+ data.setString("CriteriaName", newName);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.OBJECTIVE.addStructureWalker(VERSION, 6, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final MapType<String> criteriaType = data.getMap("CriteriaType");
|
|
+ if (criteriaType == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String type = criteriaType.getString("type");
|
|
+
|
|
+ if (type == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ switch (type) {
|
|
+ case "minecraft:mined": {
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_NAME, criteriaType, "id", fromVersion, toVersion);
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ case "minecraft:crafted":
|
|
+ case "minecraft:used":
|
|
+ case "minecraft:broken":
|
|
+ case "minecraft:picked_up":
|
|
+ case "minecraft:dropped": {
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_NAME, criteriaType, "id", fromVersion, toVersion);
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ case "minecraft:killed":
|
|
+ case "minecraft:killed_by": {
|
|
+ WalkerUtils.convert(MCTypeRegistry.ENTITY_NAME, criteriaType, "id", fromVersion, toVersion);
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+
|
|
+ // V7
|
|
+ MCTypeRegistry.STRUCTURE_FEATURE.addStructureConverter(new DataConverter<>(VERSION, 7) {
|
|
+ private static void convertToBlockState(final MapType<String> data, final String path) {
|
|
+ final Number number = data.getNumber(path);
|
|
+ if (number == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ data.setMap(path, HelperBlockFlatteningV1450.getNBTForId(number.intValue() << 4).copy()); // copy to avoid problems with later state datafixers
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final ListType children = data.getList("Children", ObjectType.MAP);
|
|
+ if (children == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = children.size(); i < len; ++i) {
|
|
+ final MapType<String> child = children.getMap(i);
|
|
+
|
|
+ final String id = child.getString("id");
|
|
+
|
|
+ switch (id) {
|
|
+ case "ViF":
|
|
+ convertToBlockState(child, "CA");
|
|
+ convertToBlockState(child, "CB");
|
|
+ break;
|
|
+ case "ViDF":
|
|
+ convertToBlockState(child, "CA");
|
|
+ convertToBlockState(child, "CB");
|
|
+ convertToBlockState(child, "CC");
|
|
+ convertToBlockState(child, "CD");
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ // convert villagers to trade with pumpkins and not the carved pumpkin
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:villager", new DataConverter<>(VERSION, 7) {
|
|
+ private static void convertPumpkin(final MapType<String> data, final String path) {
|
|
+ final MapType<String> item = data.getMap(path);
|
|
+ if (item == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final String id = item.getString("id");
|
|
+
|
|
+ if (id.equals("minecraft:carved_pumpkin")) {
|
|
+ item.setString("id", "minecraft:pumpkin");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> offers = data.getMap("Offers");
|
|
+ if (offers != null) {
|
|
+ final ListType recipes = offers.getList("Recipes", ObjectType.MAP);
|
|
+ if (recipes != null) {
|
|
+ for (int i = 0, len = recipes.size(); i < len; ++i) {
|
|
+ final MapType<String> recipe = recipes.getMap(i);
|
|
+
|
|
+ convertPumpkin(recipe, "buy");
|
|
+ convertPumpkin(recipe, "buyB");
|
|
+ convertPumpkin(recipe, "sell");
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.STRUCTURE_FEATURE.addStructureWalker(VERSION, 7, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final ListType list = data.getList("Children", ObjectType.MAP);
|
|
+ if (list == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = list.size(); i < len; ++i) {
|
|
+ final MapType<String> child = list.getMap(i);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_STATE, child, "CA", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_STATE, child, "CB", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_STATE, child, "CC", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_STATE, child, "CD", fromVersion, toVersion);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V1451() {}
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1456.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1456.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..8ca5b9d7292ba9c81f7f0fdfb6ca8fd17f796990
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1456.java
|
|
@@ -0,0 +1,38 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1456 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V17W49B + 1;
|
|
+
|
|
+ protected static byte direction2dTo3d(final byte old) {
|
|
+ switch (old) {
|
|
+ case 0:
|
|
+ return 3;
|
|
+ case 1:
|
|
+ return 4;
|
|
+ case 2:
|
|
+ default:
|
|
+ return 2;
|
|
+ case 3:
|
|
+ return 5;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:item_frame", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ data.setByte("Facing", direction2dTo3d(data.getByte("Facing")));
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V1456() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1458.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1458.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..bcc8b8103b175654070228471bfa07309b5636f7
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1458.java
|
|
@@ -0,0 +1,90 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import net.minecraft.network.chat.Component;
|
|
+import net.minecraft.network.chat.TextComponent;
|
|
+import net.minecraft.network.chat.TranslatableComponent;
|
|
+
|
|
+public final class V1458 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V17W50A + 1;
|
|
+
|
|
+ public static MapType<String> updateCustomName(final MapType<String> data) {
|
|
+ final String customName = data.getString("CustomName", "");
|
|
+
|
|
+ if (customName.isEmpty()) {
|
|
+ data.remove("CustomName");
|
|
+ } else {
|
|
+ data.setString("CustomName", Component.Serializer.toJson(new TextComponent(customName)));
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ // From CB
|
|
+ MCTypeRegistry.PLAYER.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ return updateCustomName(data);
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if ("minecraft:commandblock_minecart".equals(data.getString("id"))) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ return updateCustomName(data);
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.ITEM_STACK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> display = tag.getMap("display");
|
|
+ if (display == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String name = display.getString("Name");
|
|
+ if (name != null) {
|
|
+ display.setString("Name", Component.Serializer.toJson(new TextComponent(name)));
|
|
+ } else {
|
|
+ final String localisedName = display.getString("LocName");
|
|
+ if (localisedName != null) {
|
|
+ display.setString("Name", Component.Serializer.toJson(new TranslatableComponent(localisedName)));
|
|
+ display.remove("LocName");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.TILE_ENTITY.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if ("minecraft:command_block".equals(data.getString("id"))) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ return updateCustomName(data);
|
|
+ }
|
|
+ });
|
|
+
|
|
+ }
|
|
+
|
|
+ private V1458() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1460.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1460.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..f68b561b2bb750d5f632f17e538337fa38108472
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1460.java
|
|
@@ -0,0 +1,53 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.block_name.DataWalkerBlockNames;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import net.minecraft.resources.ResourceLocation;
|
|
+import java.util.HashMap;
|
|
+import java.util.Locale;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V1460 {
|
|
+
|
|
+ private static final Map<String, String> MOTIVE_REMAP = new HashMap<>();
|
|
+
|
|
+ static {
|
|
+ MOTIVE_REMAP.put("donkeykong", "donkey_kong");
|
|
+ MOTIVE_REMAP.put("burningskull", "burning_skull");
|
|
+ MOTIVE_REMAP.put("skullandroses", "skull_and_roses");
|
|
+ };
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W01A + 1;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ private static void registerThrowableProjectile(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerBlockNames("inTile"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:painting", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ String motive = data.getString("Motive");
|
|
+ if (motive != null) {
|
|
+ motive = motive.toLowerCase(Locale.ROOT);
|
|
+ data.setString("Motive", new ResourceLocation(MOTIVE_REMAP.getOrDefault(motive, motive)).toString());
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ // No idea why so many type redefines exist here in Vanilla. nothing about the data structure changed, it's literally a copy of
|
|
+ // the existing types.
|
|
+ }
|
|
+
|
|
+ private V1460() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1466.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1466.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..c4fa8e36fb68a610106cee8bae1af243e51fae2e
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1466.java
|
|
@@ -0,0 +1,143 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V1466 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W06A;
|
|
+
|
|
+ protected static short packOffsetCoordinates(final int x, final int y, final int z) {
|
|
+ return (short)((x & 15) | ((y & 15) << 4) | ((z & 15) << 8));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ // There is a rather critical change I've made to this converter: changing the chunk status determination.
|
|
+ // In Vanilla, this is determined by whether the terrain has been populated and whether the chunk is lit.
|
|
+ // For reference, here is the full status progression (at the time of 18w06a):
|
|
+ // empty -> base -> carved -> decorated -> lighted -> mobs_spawned -> finalized -> fullchunk -> postprocessed
|
|
+ // So one of those must be picked.
|
|
+ // If the chunk is lit and terrain is populated, the Vanilla converter will set the status to "mobs_spawned."
|
|
+ // If it is anything else, it will be "empty"
|
|
+ // I've changed it to the following: if terrain is populated, it is set to at least decorated. If it is populated
|
|
+ // and lit, it is set to "mobs_spawned"
|
|
+ // But what if it is not populated? If it is not populated, ignore the lit field - obviously that's just broken.
|
|
+ // It can't be lit and not populated.
|
|
+ // Let's take a look at chunk generation logic for a chunk that is not populated, or even near a populated chunk.
|
|
+ // It actually will generate a chunk up to the "carved" stage. It generates the base terrain, (i.e using noise
|
|
+ // to figure out where stone is, dirt, grass) and it will generate caves. Nothing else though. No populators.
|
|
+ // So "carved" is the correct stage to use, not empty. Setting it to empty would clobber chunk data, when we don't
|
|
+ // need to. If it is populated, at least set it to decorated. If it is lit and populated, set it to mobs_spawned. Else,
|
|
+ // it is carved.
|
|
+ // This change also fixes the random light check "bug" (really this is Mojang's fault for fucking up the status conversion here)
|
|
+ // caused by spigot, which would not set the lit value for some chunks. Now those chunks will not be regenerated.
|
|
+
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final boolean terrainPopulated = level.getBoolean("TerrainPopulated");
|
|
+ final boolean lightPopulated = level.getBoolean("LightPopulated") || level.getNumber("LightPopulated") == null;
|
|
+ final String newStatus = !terrainPopulated ? "carved" : (lightPopulated ? "mobs_spawned" : "decorated");
|
|
+
|
|
+ level.setString("Status", newStatus);
|
|
+ level.setBoolean("hasLegacyStructureData", true);
|
|
+
|
|
+ // convert biome byte[] into int[]
|
|
+ final byte[] biomes = level.getBytes("Biomes");
|
|
+ if (biomes != null) {
|
|
+ final int[] newBiomes = new int[256];
|
|
+ for (int i = 0, len = Math.min(newBiomes.length, biomes.length); i < len; ++i) {
|
|
+ newBiomes[i] = biomes[i] & 255;
|
|
+ }
|
|
+ level.setInts("Biomes", newBiomes);
|
|
+ }
|
|
+
|
|
+ // ProtoChunks have their own dedicated tick list, so we must convert the TileTicks to that.
|
|
+ final ListType ticks = level.getList("TileTicks", ObjectType.MAP);
|
|
+ if (ticks != null) {
|
|
+ final ListType sections = Types.NBT.createEmptyList();
|
|
+ final ListType[] sectionAccess = new ListType[16];
|
|
+ for (int i = 0; i < sectionAccess.length; ++i) {
|
|
+ sections.addList(sectionAccess[i] = Types.NBT.createEmptyList());
|
|
+ }
|
|
+ level.setList("ToBeTicked", sections);
|
|
+
|
|
+ for (int i = 0, len = ticks.size(); i < len; ++i) {
|
|
+ final MapType<String> tick = ticks.getMap(i);
|
|
+
|
|
+ final int x = tick.getInt("x");
|
|
+ final int y = tick.getInt("y");
|
|
+ final int z = tick.getInt("z");
|
|
+ final short coordinate = packOffsetCoordinates(x, y, z);
|
|
+
|
|
+ sectionAccess[y >> 4].addShort(coordinate);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+
|
|
+ MCTypeRegistry.CHUNK.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ENTITY, level, "Entities", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.TILE_ENTITY, level, "TileEntities", fromVersion, toVersion);
|
|
+
|
|
+ final ListType tileTicks = level.getList("TileTicks", ObjectType.MAP);
|
|
+ if (tileTicks != null) {
|
|
+ for (int i = 0, len = tileTicks.size(); i < len; ++i) {
|
|
+ final MapType<String> tileTick = tileTicks.getMap(i);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_NAME, tileTick, "i", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final ListType sections = level.getList("Sections", ObjectType.MAP);
|
|
+ if (sections != null) {
|
|
+ for (int i = 0, len = sections.size(); i < len; ++i) {
|
|
+ final MapType<String> section = sections.getMap(i);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BLOCK_STATE, section, "Palette", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertValues(MCTypeRegistry.STRUCTURE_FEATURE, level.getMap("Structures"), "Starts", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ MCTypeRegistry.STRUCTURE_FEATURE.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final ListType list = data.getList("Children", ObjectType.MAP);
|
|
+ if (list != null) {
|
|
+ for (int i = 0, len = list.size(); i < len; ++i) {
|
|
+ final MapType<String> child = list.getMap(i);
|
|
+
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_STATE, child, "CA", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_STATE, child, "CB", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_STATE, child, "CC", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_STATE, child, "CD", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convert(MCTypeRegistry.BIOME, data, "biome", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V1466() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V147.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V147.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..68dd3ce7709a998bc50a5080fe9c805b71a88365
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V147.java
|
|
@@ -0,0 +1,27 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V147 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W46A + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("ArmorStand", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (data.getBoolean("Silent") && !data.getBoolean("Marker")) {
|
|
+ data.remove("Silent");
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V147() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1470.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1470.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..669509286b18a173826938bae347c1aefffeed51
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1470.java
|
|
@@ -0,0 +1,31 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.DataWalkerTypePaths;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+
|
|
+public final class V1470 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W08A;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ registerMob("minecraft:turtle");
|
|
+ registerMob("minecraft:cod_mob");
|
|
+ registerMob("minecraft:tropical_fish");
|
|
+ registerMob("minecraft:salmon_mob");
|
|
+ registerMob("minecraft:puffer_fish");
|
|
+ registerMob("minecraft:phantom");
|
|
+ registerMob("minecraft:dolphin");
|
|
+ registerMob("minecraft:drowned");
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:trident", new DataWalkerTypePaths<>(MCTypeRegistry.BLOCK_STATE, "inBlockState"));
|
|
+ }
|
|
+
|
|
+ private V1470() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1474.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1474.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..4cf1085b4392c9b348ebe65590cdbf287a908a38
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1474.java
|
|
@@ -0,0 +1,36 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1474 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W10B;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:shulker", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (data.getInt("Color") == 10) {
|
|
+ data.setByte("Color", (byte)16);
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ // data hooks ensure the inputs are namespaced
|
|
+ ConverterAbstractBlockRename.register(VERSION, (final String old) -> {
|
|
+ return "minecraft:purple_shulker_box".equals(old) ? "minecraft:shulker_box" : null;
|
|
+ });
|
|
+ ConverterAbstractItemRename.register(VERSION, (final String old) -> {
|
|
+ return "minecraft:purple_shulker_box".equals(old) ? "minecraft:shulker_box" : null;
|
|
+ });
|
|
+
|
|
+ }
|
|
+
|
|
+ private V1474() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1475.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1475.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..40b64efb8717b2de0ff13af87bcc99119c9f7c9d
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1475.java
|
|
@@ -0,0 +1,21 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V1475 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W10B + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractBlockRename.register(VERSION,
|
|
+ ImmutableMap.of(
|
|
+ "minecraft:flowing_water", "minecraft:water",
|
|
+ "minecraft:flowing_lava", "minecraft:lava"
|
|
+ )::get);
|
|
+ }
|
|
+
|
|
+ private V1475() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1480.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1480.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..e5373d4e6ca027749f634e9a508bd81b9b41ed3e
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1480.java
|
|
@@ -0,0 +1,42 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V1480 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W14A + 1;
|
|
+
|
|
+ public static final Map<String, String> RENAMED_IDS = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:blue_coral", "minecraft:tube_coral_block")
|
|
+ .put("minecraft:pink_coral", "minecraft:brain_coral_block")
|
|
+ .put("minecraft:purple_coral", "minecraft:bubble_coral_block")
|
|
+ .put("minecraft:red_coral", "minecraft:fire_coral_block")
|
|
+ .put("minecraft:yellow_coral", "minecraft:horn_coral_block")
|
|
+ .put("minecraft:blue_coral_plant", "minecraft:tube_coral")
|
|
+ .put("minecraft:pink_coral_plant", "minecraft:brain_coral")
|
|
+ .put("minecraft:purple_coral_plant", "minecraft:bubble_coral")
|
|
+ .put("minecraft:red_coral_plant", "minecraft:fire_coral")
|
|
+ .put("minecraft:yellow_coral_plant", "minecraft:horn_coral")
|
|
+ .put("minecraft:blue_coral_fan", "minecraft:tube_coral_fan")
|
|
+ .put("minecraft:pink_coral_fan", "minecraft:brain_coral_fan")
|
|
+ .put("minecraft:purple_coral_fan", "minecraft:bubble_coral_fan")
|
|
+ .put("minecraft:red_coral_fan", "minecraft:fire_coral_fan")
|
|
+ .put("minecraft:yellow_coral_fan", "minecraft:horn_coral_fan")
|
|
+ .put("minecraft:blue_dead_coral", "minecraft:dead_tube_coral")
|
|
+ .put("minecraft:pink_dead_coral", "minecraft:dead_brain_coral")
|
|
+ .put("minecraft:purple_dead_coral", "minecraft:dead_bubble_coral")
|
|
+ .put("minecraft:red_dead_coral", "minecraft:dead_fire_coral")
|
|
+ .put("minecraft:yellow_dead_coral", "minecraft:dead_horn_coral")
|
|
+ .build();
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractBlockRename.register(VERSION, RENAMED_IDS::get);
|
|
+ ConverterAbstractItemRename.register(VERSION, RENAMED_IDS::get);
|
|
+ }
|
|
+
|
|
+ private V1480() {}
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1483.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1483.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..e6fb5d6870514a509f7f1aa5343ed7e762af8a72
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1483.java
|
|
@@ -0,0 +1,31 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.entity.ConverterAbstractEntityRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V1483 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W16A;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractEntityRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:puffer_fish", "minecraft:pufferfish"
|
|
+ )::get);
|
|
+ ConverterAbstractItemRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:puffer_fish_spawn_egg", "minecraft:pufferfish_spawn_egg"
|
|
+ )::get);
|
|
+
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:puffer_fish", "minecraft:pufferfish");
|
|
+ }
|
|
+
|
|
+ private V1483() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1484.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1484.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..f5b9c166304930e095bfc00e8f6b93edb706df48
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1484.java
|
|
@@ -0,0 +1,73 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V1484 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W19A;
|
|
+
|
|
+ public static void register() {
|
|
+ final Map<String, String> renamed = ImmutableMap.of(
|
|
+ "minecraft:sea_grass", "minecraft:seagrass",
|
|
+ "minecraft:tall_sea_grass", "minecraft:tall_seagrass"
|
|
+ );
|
|
+
|
|
+ ConverterAbstractItemRename.register(VERSION, renamed::get);
|
|
+ ConverterAbstractBlockRename.register(VERSION, renamed::get);
|
|
+
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> heightmaps = level.getMap("Heightmaps");
|
|
+
|
|
+ if (heightmaps == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final Object liquid = heightmaps.getGeneric("LIQUID");
|
|
+ if (liquid != null) {
|
|
+ heightmaps.remove("LIQUID");
|
|
+ heightmaps.setGeneric("WORLD_SURFACE_WG", liquid);
|
|
+ }
|
|
+
|
|
+ final Object solid = heightmaps.getGeneric("SOLID");
|
|
+ if (solid != null) {
|
|
+ heightmaps.remove("SOLID");
|
|
+ heightmaps.setGeneric("OCEAN_FLOOR_WG", solid);
|
|
+ heightmaps.setGeneric("OCEAN_FLOOR", solid);
|
|
+ }
|
|
+
|
|
+ final Object light = heightmaps.getGeneric("LIGHT");
|
|
+ if (light != null) {
|
|
+ heightmaps.remove("LIGHT");
|
|
+ heightmaps.setGeneric("LIGHT_BLOCKING", light);
|
|
+ }
|
|
+
|
|
+ final Object rain = heightmaps.getGeneric("RAIN");
|
|
+ if (rain != null) {
|
|
+ heightmaps.remove("RAIN");
|
|
+ heightmaps.setGeneric("MOTION_BLOCKING", rain);
|
|
+ heightmaps.setGeneric("MOTION_BLOCKING_NO_LEAVES", rain);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V1484() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1486.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1486.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..cf7b0a77b30312a32d5fdb10be3fb45d10ba7870
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1486.java
|
|
@@ -0,0 +1,39 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.entity.ConverterAbstractEntityRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V1486 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W19B + 1;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static final Map<String, String> RENAMED_ENTITY_IDS = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:salmon_mob", "minecraft:salmon")
|
|
+ .put("minecraft:cod_mob", "minecraft:cod")
|
|
+ .build();
|
|
+ public static final Map<String, String> RENAMED_ITEM_IDS = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:salmon_mob_spawn_egg", "minecraft:salmon_spawn_egg")
|
|
+ .put("minecraft:cod_mob_spawn_egg", "minecraft:cod_spawn_egg")
|
|
+ .build();
|
|
+
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:cod_mob", "minecraft:cod");
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:salmon_mob", "minecraft:salmon");
|
|
+
|
|
+ ConverterAbstractEntityRename.register(VERSION, RENAMED_ENTITY_IDS::get);
|
|
+ ConverterAbstractItemRename.register(VERSION, RENAMED_ITEM_IDS::get);
|
|
+ }
|
|
+
|
|
+ private V1486() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1487.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1487.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..dba4a64f61b27f1eb820e0e0a3fddb81517acc16
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1487.java
|
|
@@ -0,0 +1,25 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V1487 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W19B + 2;
|
|
+
|
|
+ public static void register() {
|
|
+ final Map<String, String> remap = ImmutableMap.of(
|
|
+ "minecraft:prismarine_bricks_slab", "minecraft:prismarine_brick_slab",
|
|
+ "minecraft:prismarine_bricks_stairs", "minecraft:prismarine_brick_stairs"
|
|
+ );
|
|
+
|
|
+ ConverterAbstractItemRename.register(VERSION, remap::get);
|
|
+ ConverterAbstractBlockRename.register(VERSION, remap::get);
|
|
+ }
|
|
+
|
|
+ private V1487() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1488.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1488.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..cf3579524a9ba96f2065d98bca928bf920da081c
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1488.java
|
|
@@ -0,0 +1,88 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V1488 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W19B + 3;
|
|
+
|
|
+ protected static boolean isIglooPiece(final MapType<String> piece) {
|
|
+ return "Iglu".equals(piece.getString("id"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractBlockRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:kelp_top", "minecraft:kelp",
|
|
+ "minecraft:kelp", "minecraft:kelp_plant"
|
|
+ )::get);
|
|
+ ConverterAbstractItemRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:kelp_top", "minecraft:kelp"
|
|
+ )::get);
|
|
+
|
|
+ // Don't ask me why in V1458 they wrote the converter to NOT do command blocks and THEN in THIS version
|
|
+ // to ONLY do command blocks. I don't know.
|
|
+
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:command_block", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ return V1458.updateCustomName(data);
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:commandblock_minecart", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ return V1458.updateCustomName(data);
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.STRUCTURE_FEATURE.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final ListType children = data.getList("Children", ObjectType.MAP);
|
|
+ boolean isIgloo;
|
|
+ if (children != null) {
|
|
+ isIgloo = true;
|
|
+ for (int i = 0, len = children.size(); i < len; ++i) {
|
|
+ if (!isIglooPiece(children.getMap(i))) {
|
|
+ isIgloo = false;
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+ } else {
|
|
+ isIgloo = false;
|
|
+ }
|
|
+
|
|
+ if (isIgloo) {
|
|
+ data.remove("Children");
|
|
+ data.setString("id", "Igloo");
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ if (children != null) {
|
|
+ for (int i = 0; i < children.size();) {
|
|
+ final MapType<String> child = children.getMap(i);
|
|
+ if (isIglooPiece(child)) {
|
|
+ children.remove(i);
|
|
+ continue;
|
|
+ }
|
|
+ ++i;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V1488() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1490.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1490.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..cb3afa0634cb47cbd5b324a66d140375b1c23e07
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1490.java
|
|
@@ -0,0 +1,25 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V1490 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W20A + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractBlockRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:melon_block", "minecraft:melon"
|
|
+ )::get);
|
|
+ ConverterAbstractItemRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:melon_block", "minecraft:melon",
|
|
+ "minecraft:melon", "minecraft:melon_slice",
|
|
+ "minecraft:speckled_melon", "minecraft:glistering_melon_slice"
|
|
+ )::get);
|
|
+ }
|
|
+
|
|
+ private V1490() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1492.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1492.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..b8732c2035ee0659173a8299cc2b0a5f86ace7b0
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1492.java
|
|
@@ -0,0 +1,152 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import com.mojang.datafixers.util.Pair;
|
|
+
|
|
+public final class V1492 {
|
|
+
|
|
+ private static final ImmutableMap<String, Pair<String, ImmutableMap<String, String>>> RENAMES = ImmutableMap.<String, Pair<String, ImmutableMap<String, String>>>builder()
|
|
+ .put("EndCity", Pair.of(
|
|
+ "ECP",
|
|
+ ImmutableMap.<String, String>builder()
|
|
+ .put("second_floor", "second_floor_1")
|
|
+ .put("third_floor", "third_floor_1")
|
|
+ .put("third_floor_c", "third_floor_2")
|
|
+ .build()
|
|
+ )
|
|
+ )
|
|
+
|
|
+ .put("Mansion", Pair.of(
|
|
+ "WMP",
|
|
+ ImmutableMap.<String, String>builder()
|
|
+ .put("carpet_south", "carpet_south_1")
|
|
+ .put("carpet_west", "carpet_west_1")
|
|
+ .put("indoors_door", "indoors_door_1")
|
|
+ .put("indoors_wall", "indoors_wall_1")
|
|
+ .build()
|
|
+ )
|
|
+ )
|
|
+
|
|
+ .put("Igloo", Pair.of(
|
|
+ "Iglu",
|
|
+ ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:igloo/igloo_bottom", "minecraft:igloo/bottom")
|
|
+ .put("minecraft:igloo/igloo_middle", "minecraft:igloo/middle")
|
|
+ .put("minecraft:igloo/igloo_top", "minecraft:igloo/top")
|
|
+ .build()
|
|
+ )
|
|
+ )
|
|
+ .put("Ocean_Ruin", Pair.of(
|
|
+ "ORP",
|
|
+ ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:ruin/big_ruin1_brick", "minecraft:underwater_ruin/big_brick_1")
|
|
+ .put("minecraft:ruin/big_ruin2_brick", "minecraft:underwater_ruin/big_brick_2")
|
|
+ .put("minecraft:ruin/big_ruin3_brick", "minecraft:underwater_ruin/big_brick_3")
|
|
+ .put("minecraft:ruin/big_ruin8_brick", "minecraft:underwater_ruin/big_brick_8")
|
|
+ .put("minecraft:ruin/big_ruin1_cracked", "minecraft:underwater_ruin/big_cracked_1")
|
|
+ .put("minecraft:ruin/big_ruin2_cracked", "minecraft:underwater_ruin/big_cracked_2")
|
|
+ .put("minecraft:ruin/big_ruin3_cracked", "minecraft:underwater_ruin/big_cracked_3")
|
|
+ .put("minecraft:ruin/big_ruin8_cracked", "minecraft:underwater_ruin/big_cracked_8")
|
|
+ .put("minecraft:ruin/big_ruin1_mossy", "minecraft:underwater_ruin/big_mossy_1")
|
|
+ .put("minecraft:ruin/big_ruin2_mossy", "minecraft:underwater_ruin/big_mossy_2")
|
|
+ .put("minecraft:ruin/big_ruin3_mossy", "minecraft:underwater_ruin/big_mossy_3")
|
|
+ .put("minecraft:ruin/big_ruin8_mossy", "minecraft:underwater_ruin/big_mossy_8")
|
|
+ .put("minecraft:ruin/big_ruin_warm4", "minecraft:underwater_ruin/big_warm_4")
|
|
+ .put("minecraft:ruin/big_ruin_warm5", "minecraft:underwater_ruin/big_warm_5")
|
|
+ .put("minecraft:ruin/big_ruin_warm6", "minecraft:underwater_ruin/big_warm_6")
|
|
+ .put("minecraft:ruin/big_ruin_warm7", "minecraft:underwater_ruin/big_warm_7")
|
|
+ .put("minecraft:ruin/ruin1_brick", "minecraft:underwater_ruin/brick_1")
|
|
+ .put("minecraft:ruin/ruin2_brick", "minecraft:underwater_ruin/brick_2")
|
|
+ .put("minecraft:ruin/ruin3_brick", "minecraft:underwater_ruin/brick_3")
|
|
+ .put("minecraft:ruin/ruin4_brick", "minecraft:underwater_ruin/brick_4")
|
|
+ .put("minecraft:ruin/ruin5_brick", "minecraft:underwater_ruin/brick_5")
|
|
+ .put("minecraft:ruin/ruin6_brick", "minecraft:underwater_ruin/brick_6")
|
|
+ .put("minecraft:ruin/ruin7_brick", "minecraft:underwater_ruin/brick_7")
|
|
+ .put("minecraft:ruin/ruin8_brick", "minecraft:underwater_ruin/brick_8")
|
|
+ .put("minecraft:ruin/ruin1_cracked", "minecraft:underwater_ruin/cracked_1")
|
|
+ .put("minecraft:ruin/ruin2_cracked", "minecraft:underwater_ruin/cracked_2")
|
|
+ .put("minecraft:ruin/ruin3_cracked", "minecraft:underwater_ruin/cracked_3")
|
|
+ .put("minecraft:ruin/ruin4_cracked", "minecraft:underwater_ruin/cracked_4")
|
|
+ .put("minecraft:ruin/ruin5_cracked", "minecraft:underwater_ruin/cracked_5")
|
|
+ .put("minecraft:ruin/ruin6_cracked", "minecraft:underwater_ruin/cracked_6")
|
|
+ .put("minecraft:ruin/ruin7_cracked", "minecraft:underwater_ruin/cracked_7")
|
|
+ .put("minecraft:ruin/ruin8_cracked", "minecraft:underwater_ruin/cracked_8")
|
|
+ .put("minecraft:ruin/ruin1_mossy", "minecraft:underwater_ruin/mossy_1")
|
|
+ .put("minecraft:ruin/ruin2_mossy", "minecraft:underwater_ruin/mossy_2")
|
|
+ .put("minecraft:ruin/ruin3_mossy", "minecraft:underwater_ruin/mossy_3")
|
|
+ .put("minecraft:ruin/ruin4_mossy", "minecraft:underwater_ruin/mossy_4")
|
|
+ .put("minecraft:ruin/ruin5_mossy", "minecraft:underwater_ruin/mossy_5")
|
|
+ .put("minecraft:ruin/ruin6_mossy", "minecraft:underwater_ruin/mossy_6")
|
|
+ .put("minecraft:ruin/ruin7_mossy", "minecraft:underwater_ruin/mossy_7")
|
|
+ .put("minecraft:ruin/ruin8_mossy", "minecraft:underwater_ruin/mossy_8")
|
|
+ .put("minecraft:ruin/ruin_warm1", "minecraft:underwater_ruin/warm_1")
|
|
+ .put("minecraft:ruin/ruin_warm2", "minecraft:underwater_ruin/warm_2")
|
|
+ .put("minecraft:ruin/ruin_warm3", "minecraft:underwater_ruin/warm_3")
|
|
+ .put("minecraft:ruin/ruin_warm4", "minecraft:underwater_ruin/warm_4")
|
|
+ .put("minecraft:ruin/ruin_warm5", "minecraft:underwater_ruin/warm_5")
|
|
+ .put("minecraft:ruin/ruin_warm6", "minecraft:underwater_ruin/warm_6")
|
|
+ .put("minecraft:ruin/ruin_warm7", "minecraft:underwater_ruin/warm_7")
|
|
+ .put("minecraft:ruin/ruin_warm8", "minecraft:underwater_ruin/warm_8")
|
|
+ .put("minecraft:ruin/big_brick_1", "minecraft:underwater_ruin/big_brick_1")
|
|
+ .put("minecraft:ruin/big_brick_2", "minecraft:underwater_ruin/big_brick_2")
|
|
+ .put("minecraft:ruin/big_brick_3", "minecraft:underwater_ruin/big_brick_3")
|
|
+ .put("minecraft:ruin/big_brick_8", "minecraft:underwater_ruin/big_brick_8")
|
|
+ .put("minecraft:ruin/big_mossy_1", "minecraft:underwater_ruin/big_mossy_1")
|
|
+ .put("minecraft:ruin/big_mossy_2", "minecraft:underwater_ruin/big_mossy_2")
|
|
+ .put("minecraft:ruin/big_mossy_3", "minecraft:underwater_ruin/big_mossy_3")
|
|
+ .put("minecraft:ruin/big_mossy_8", "minecraft:underwater_ruin/big_mossy_8")
|
|
+ .put("minecraft:ruin/big_cracked_1", "minecraft:underwater_ruin/big_cracked_1")
|
|
+ .put("minecraft:ruin/big_cracked_2", "minecraft:underwater_ruin/big_cracked_2")
|
|
+ .put("minecraft:ruin/big_cracked_3", "minecraft:underwater_ruin/big_cracked_3")
|
|
+ .put("minecraft:ruin/big_cracked_8", "minecraft:underwater_ruin/big_cracked_8")
|
|
+ .put("minecraft:ruin/big_warm_4", "minecraft:underwater_ruin/big_warm_4")
|
|
+ .put("minecraft:ruin/big_warm_5", "minecraft:underwater_ruin/big_warm_5")
|
|
+ .put("minecraft:ruin/big_warm_6", "minecraft:underwater_ruin/big_warm_6")
|
|
+ .put("minecraft:ruin/big_warm_7", "minecraft:underwater_ruin/big_warm_7")
|
|
+ .build()
|
|
+ )
|
|
+ )
|
|
+
|
|
+ .build();
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W20B + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.STRUCTURE_FEATURE.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final ListType children = data.getList("Children", ObjectType.MAP);
|
|
+ if (children == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String id = data.getString("id");
|
|
+
|
|
+ final Pair<String, ImmutableMap<String, String>> renames = RENAMES.get(id);
|
|
+ if (renames == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = children.size(); i < len; ++i) {
|
|
+ final MapType<String> child = children.getMap(i);
|
|
+
|
|
+ if (renames.getFirst().equals(child.getString("id"))) {
|
|
+ final String template = child.getString("Template", "");
|
|
+ child.setString("Template", renames.getSecond().getOrDefault(template, template));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V1492() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1494.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1494.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..50411042a83d58c4c36768a8f5196b4b41b4d095
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1494.java
|
|
@@ -0,0 +1,89 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
|
+
|
|
+public final class V1494 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W20C + 1;
|
|
+
|
|
+ private static final Int2ObjectOpenHashMap<String> ENCH_ID_TO_NAME = new Int2ObjectOpenHashMap<>();
|
|
+ static {
|
|
+ ENCH_ID_TO_NAME.put(0, "minecraft:protection");
|
|
+ ENCH_ID_TO_NAME.put(1, "minecraft:fire_protection");
|
|
+ ENCH_ID_TO_NAME.put(2, "minecraft:feather_falling");
|
|
+ ENCH_ID_TO_NAME.put(3, "minecraft:blast_protection");
|
|
+ ENCH_ID_TO_NAME.put(4, "minecraft:projectile_protection");
|
|
+ ENCH_ID_TO_NAME.put(5, "minecraft:respiration");
|
|
+ ENCH_ID_TO_NAME.put(6, "minecraft:aqua_affinity");
|
|
+ ENCH_ID_TO_NAME.put(7, "minecraft:thorns");
|
|
+ ENCH_ID_TO_NAME.put(8, "minecraft:depth_strider");
|
|
+ ENCH_ID_TO_NAME.put(9, "minecraft:frost_walker");
|
|
+ ENCH_ID_TO_NAME.put(10, "minecraft:binding_curse");
|
|
+ ENCH_ID_TO_NAME.put(16, "minecraft:sharpness");
|
|
+ ENCH_ID_TO_NAME.put(17, "minecraft:smite");
|
|
+ ENCH_ID_TO_NAME.put(18, "minecraft:bane_of_arthropods");
|
|
+ ENCH_ID_TO_NAME.put(19, "minecraft:knockback");
|
|
+ ENCH_ID_TO_NAME.put(20, "minecraft:fire_aspect");
|
|
+ ENCH_ID_TO_NAME.put(21, "minecraft:looting");
|
|
+ ENCH_ID_TO_NAME.put(22, "minecraft:sweeping");
|
|
+ ENCH_ID_TO_NAME.put(32, "minecraft:efficiency");
|
|
+ ENCH_ID_TO_NAME.put(33, "minecraft:silk_touch");
|
|
+ ENCH_ID_TO_NAME.put(34, "minecraft:unbreaking");
|
|
+ ENCH_ID_TO_NAME.put(35, "minecraft:fortune");
|
|
+ ENCH_ID_TO_NAME.put(48, "minecraft:power");
|
|
+ ENCH_ID_TO_NAME.put(49, "minecraft:punch");
|
|
+ ENCH_ID_TO_NAME.put(50, "minecraft:flame");
|
|
+ ENCH_ID_TO_NAME.put(51, "minecraft:infinity");
|
|
+ ENCH_ID_TO_NAME.put(61, "minecraft:luck_of_the_sea");
|
|
+ ENCH_ID_TO_NAME.put(62, "minecraft:lure");
|
|
+ ENCH_ID_TO_NAME.put(65, "minecraft:loyalty");
|
|
+ ENCH_ID_TO_NAME.put(66, "minecraft:impaling");
|
|
+ ENCH_ID_TO_NAME.put(67, "minecraft:riptide");
|
|
+ ENCH_ID_TO_NAME.put(68, "minecraft:channeling");
|
|
+ ENCH_ID_TO_NAME.put(70, "minecraft:mending");
|
|
+ ENCH_ID_TO_NAME.put(71, "minecraft:vanishing_curse");
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ITEM_STACK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final ListType enchants = tag.getList("ench", ObjectType.MAP);
|
|
+ if (enchants != null) {
|
|
+ tag.remove("ench");
|
|
+ tag.setList("Enchantments", enchants);
|
|
+
|
|
+ for (int i = 0, len = enchants.size(); i < len; ++i) {
|
|
+ final MapType<String> enchant = enchants.getMap(i);
|
|
+ enchant.setString("id", ENCH_ID_TO_NAME.getOrDefault(enchant.getInt("id"), "null"));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final ListType storedEnchants = tag.getList("StoredEnchantments", ObjectType.MAP);
|
|
+ if (storedEnchants != null) {
|
|
+ for (int i = 0, len = storedEnchants.size(); i < len; ++i) {
|
|
+ final MapType<String> enchant = storedEnchants.getMap(i);
|
|
+ enchant.setString("id", ENCH_ID_TO_NAME.getOrDefault(enchant.getInt("id"), "null"));
|
|
+ }
|
|
+ }
|
|
+
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V1494() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1496.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1496.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..c56d50c552d4609474f5b3b6b0b8be8b575764ea
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1496.java
|
|
@@ -0,0 +1,370 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+import com.mojang.datafixers.DataFixUtils;
|
|
+import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap;
|
|
+import it.unimi.dsi.fastutil.ints.IntIterator;
|
|
+import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
|
|
+import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap;
|
|
+import net.minecraft.util.datafix.PackedBitStorage;
|
|
+import java.util.Arrays;
|
|
+import java.util.HashSet;
|
|
+import java.util.Set;
|
|
+
|
|
+public final class V1496 {
|
|
+
|
|
+ private V1496() {}
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W21B;
|
|
+
|
|
+ private static final int[][] DIRECTIONS = new int[][] {
|
|
+ new int[] {-1, 0, 0},
|
|
+ new int[] {1, 0, 0},
|
|
+ new int[] {0, -1, 0},
|
|
+ new int[] {0, 1, 0},
|
|
+ new int[] {0, 0, -1},
|
|
+ new int[] {0, 0, 1}
|
|
+ };
|
|
+
|
|
+ private static final Object2IntOpenHashMap<String> LEAVES_TO_ID = new Object2IntOpenHashMap<>();
|
|
+ static {
|
|
+ LEAVES_TO_ID.put("minecraft:acacia_leaves", 0);
|
|
+ LEAVES_TO_ID.put("minecraft:birch_leaves", 1);
|
|
+ LEAVES_TO_ID.put("minecraft:dark_oak_leaves", 2);
|
|
+ LEAVES_TO_ID.put("minecraft:jungle_leaves", 3);
|
|
+ LEAVES_TO_ID.put("minecraft:oak_leaves", 4);
|
|
+ LEAVES_TO_ID.put("minecraft:spruce_leaves", 5);
|
|
+ }
|
|
+
|
|
+ private static final Set<String> LOGS = new HashSet<>(
|
|
+ Arrays.asList(
|
|
+ "minecraft:acacia_bark",
|
|
+ "minecraft:birch_bark",
|
|
+ "minecraft:dark_oak_bark",
|
|
+ "minecraft:jungle_bark",
|
|
+ "minecraft:oak_bark",
|
|
+ "minecraft:spruce_bark",
|
|
+ "minecraft:acacia_log",
|
|
+ "minecraft:birch_log",
|
|
+ "minecraft:dark_oak_log",
|
|
+ "minecraft:jungle_log",
|
|
+ "minecraft:oak_log",
|
|
+ "minecraft:spruce_log",
|
|
+ "minecraft:stripped_acacia_log",
|
|
+ "minecraft:stripped_birch_log",
|
|
+ "minecraft:stripped_dark_oak_log",
|
|
+ "minecraft:stripped_jungle_log",
|
|
+ "minecraft:stripped_oak_log",
|
|
+ "minecraft:stripped_spruce_log"
|
|
+ )
|
|
+ );
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final ListType sectionsNBT = level.getList("Sections", ObjectType.MAP);
|
|
+ if (sectionsNBT == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ int newSides = 0;
|
|
+
|
|
+ final LeavesSection[] sections = new LeavesSection[16];
|
|
+ boolean skippable = true;
|
|
+ for (int i = 0, len = sectionsNBT.size(); i < len; ++i) {
|
|
+ final LeavesSection section = new LeavesSection(sectionsNBT.getMap(i));
|
|
+ sections[section.sectionY] = section;
|
|
+
|
|
+ skippable &= section.isSkippable();
|
|
+ }
|
|
+
|
|
+ if (skippable) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final IntOpenHashSet[] positionsByDistance = new IntOpenHashSet[7];
|
|
+ for (int i = 0; i < positionsByDistance.length; ++i) {
|
|
+ positionsByDistance[i] = new IntOpenHashSet();
|
|
+ }
|
|
+
|
|
+ for (final LeavesSection section : sections) {
|
|
+ if (section == null || section.isSkippable()) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ for (int index = 0; index < 4096; ++index) {
|
|
+ final int block = section.getBlock(index);
|
|
+ if (section.isLog(block)) {
|
|
+ positionsByDistance[0].add(section.getSectionY() << 12 | index);
|
|
+ } else if (section.isLeaf(block)) {
|
|
+ int x = getX(index);
|
|
+ int z = getZ(index);
|
|
+ newSides |= getSideMask(x == 0, x == 15, z == 0, z == 15);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // this is basically supposed to recalculate the distances, because a higher cap was added
|
|
+ for (int distance = 1; distance < 7; ++distance) {
|
|
+ final IntOpenHashSet positionsLess = positionsByDistance[distance - 1];
|
|
+ final IntOpenHashSet positionsEqual = positionsByDistance[distance];
|
|
+
|
|
+ for (final IntIterator iterator = positionsLess.iterator(); iterator.hasNext();) {
|
|
+ final int position = iterator.nextInt();
|
|
+ final int fromX = getX(position);
|
|
+ final int fromY = getY(position);
|
|
+ final int fromZ = getZ(position);
|
|
+
|
|
+ for (final int[] direction : DIRECTIONS) {
|
|
+ final int toX = fromX + direction[0];
|
|
+ final int toY = fromY + direction[1];
|
|
+ final int toZ = fromZ + direction[2];
|
|
+
|
|
+ if (!(toX >= 0 && toX <= 15 && toZ >= 0 && toZ <= 15 && toY >= 0 && toY <= 255)) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final LeavesSection toSection = sections[toY >> 4];
|
|
+ if (toSection == null || toSection.isSkippable()) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final int sectionLocalIndex = getIndex(toX, toY & 15, toZ);
|
|
+ final int toBlock = toSection.getBlock(sectionLocalIndex);
|
|
+
|
|
+ if (toSection.isLeaf(toBlock)) {
|
|
+ final int newDistance = toSection.getDistance(toBlock);
|
|
+ if (newDistance > distance) {
|
|
+ toSection.setDistance(sectionLocalIndex, toBlock, distance);
|
|
+ positionsEqual.add(getIndex(toX, toY, toZ));
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // done updating blocks, now just update the blockstates and palette
|
|
+ for (int i = 0, len = sectionsNBT.size(); i < len; ++i) {
|
|
+ final MapType<String> sectionNBT = sectionsNBT.getMap(i);
|
|
+ final int y = sectionNBT.getInt("Y");
|
|
+ final LeavesSection section = sections[y];
|
|
+
|
|
+ section.writeInto(sectionNBT);
|
|
+ }
|
|
+
|
|
+ // if sides changed during process, update it now
|
|
+ if (newSides != 0) {
|
|
+ MapType<String> upgradeData = level.getMap("UpgradeData");
|
|
+ if (upgradeData == null) {
|
|
+ level.setMap("UpgradeData", upgradeData = Types.NBT.createEmptyMap());
|
|
+ }
|
|
+
|
|
+ upgradeData.setByte("Sides", (byte)(upgradeData.getByte("Sides") | newSides));
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ public static int getIndex(final int x, final int y, final int z) {
|
|
+ return y << 8 | z << 4 | x;
|
|
+ }
|
|
+
|
|
+ public static int getX(final int index) {
|
|
+ return index & 15;
|
|
+ }
|
|
+
|
|
+ public static int getY(final int index) {
|
|
+ return index >> 8 & 255;
|
|
+ }
|
|
+
|
|
+ public static int getZ(final int index) {
|
|
+ return index >> 4 & 15;
|
|
+ }
|
|
+
|
|
+ public static int getSideMask(final boolean noLeft, final boolean noRight, final boolean noBack, final boolean noForward) {
|
|
+ final int ret;
|
|
+
|
|
+ if (noBack) {
|
|
+ if (noRight) {
|
|
+ ret = 2;
|
|
+ } else if (noLeft) {
|
|
+ ret = 128;
|
|
+ } else {
|
|
+ ret = 1;
|
|
+ }
|
|
+ } else if (noForward) {
|
|
+ if (noLeft) {
|
|
+ ret = 32;
|
|
+ } else if (noRight) {
|
|
+ ret = 8;
|
|
+ } else {
|
|
+ ret = 16;
|
|
+ }
|
|
+ } else if (noRight) {
|
|
+ ret = 4;
|
|
+ } else if (noLeft) {
|
|
+ ret = 64;
|
|
+ } else {
|
|
+ ret = 0;
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ public abstract static class Section {
|
|
+ protected final ListType palette;
|
|
+ protected final int sectionY;
|
|
+ protected PackedBitStorage storage;
|
|
+
|
|
+ public Section(final MapType<String> section) {
|
|
+ this.palette = section.getList("Palette", ObjectType.MAP);
|
|
+ this.sectionY = section.getInt("Y");
|
|
+ this.readStorage(section);
|
|
+ }
|
|
+
|
|
+ protected void readStorage(final MapType<String> section) {
|
|
+ if (this.initSkippable()) {
|
|
+ this.storage = null;
|
|
+ } else {
|
|
+ final long[] states = section.getLongs("BlockStates");
|
|
+ final int bits = Math.max(4, DataFixUtils.ceillog2(this.palette.size()));
|
|
+ this.storage = new PackedBitStorage(bits, 4096, states);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public void writeInto(final MapType<String> section) {
|
|
+ if (this.isSkippable()) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ section.setList("Palette", this.palette);
|
|
+ section.setLongs("BlockStates", this.storage.getRaw());
|
|
+ }
|
|
+
|
|
+ public boolean isSkippable() {
|
|
+ return this.storage == null;
|
|
+ }
|
|
+
|
|
+ public int getBlock(final int index) {
|
|
+ return this.storage.get(index);
|
|
+ }
|
|
+
|
|
+ protected int getStateId(final String name, final boolean persistent, final int distance) {
|
|
+ return LEAVES_TO_ID.getInt(name) << 5 | (persistent ? 16 : 0) | distance;
|
|
+ }
|
|
+
|
|
+ protected int getSectionY() {
|
|
+ return this.sectionY;
|
|
+ }
|
|
+
|
|
+ protected abstract boolean initSkippable();
|
|
+ }
|
|
+
|
|
+ public static final class LeavesSection extends Section {
|
|
+ private IntOpenHashSet leaveIds;
|
|
+ private IntOpenHashSet logIds;
|
|
+ private Int2IntOpenHashMap stateToIdMap;
|
|
+
|
|
+ public LeavesSection(final MapType<String> section) {
|
|
+ super(section);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ protected boolean initSkippable() {
|
|
+ this.leaveIds = new IntOpenHashSet();
|
|
+ this.logIds = new IntOpenHashSet();
|
|
+ this.stateToIdMap = new Int2IntOpenHashMap();
|
|
+ this.stateToIdMap.defaultReturnValue(-1);
|
|
+
|
|
+ for(int i = 0; i < this.palette.size(); ++i) {
|
|
+ final MapType<String> blockState = this.palette.getMap(i);
|
|
+ final String name = blockState.getString("Name", "");
|
|
+ if (LEAVES_TO_ID.containsKey(name)) {
|
|
+ final MapType<String> properties = blockState.getMap("Properties");
|
|
+ final boolean notDecayable = properties != null && "false".equals(properties.getString("decayable"));
|
|
+
|
|
+ this.leaveIds.add(i);
|
|
+ this.stateToIdMap.put(this.getStateId(name, notDecayable, 7), i);
|
|
+ this.palette.setMap(i, this.makeNewLeafTag(name, notDecayable, 7));
|
|
+ }
|
|
+
|
|
+ if (LOGS.contains(name)) {
|
|
+ this.logIds.add(i);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return this.leaveIds.isEmpty() && this.logIds.isEmpty();
|
|
+ }
|
|
+
|
|
+ private MapType<String> makeNewLeafTag(final String name, final boolean notDecayable, final int distance) {
|
|
+ final MapType<String> properties = Types.NBT.createEmptyMap();
|
|
+ final MapType<String> ret = Types.NBT.createEmptyMap();
|
|
+
|
|
+ ret.setString("Name", name);
|
|
+ ret.setMap("Properties", properties);
|
|
+
|
|
+ properties.setString("persistent", Boolean.toString(notDecayable));
|
|
+ properties.setString("distance", Integer.toString(distance));
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ public boolean isLog(final int id) {
|
|
+ return this.logIds.contains(id);
|
|
+ }
|
|
+
|
|
+ public boolean isLeaf(final int id) {
|
|
+ return this.leaveIds.contains(id);
|
|
+ }
|
|
+
|
|
+ // only call for logs or leaves, will throw otherwise!
|
|
+ private int getDistance(final int id) {
|
|
+ if (this.isLog(id)) {
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
+ return Integer.parseInt(this.palette.getMap(id).getMap("Properties").getString("distance"));
|
|
+ }
|
|
+
|
|
+ private void setDistance(final int index, final int id, final int distance) {
|
|
+ final MapType<String> state = this.palette.getMap(id);
|
|
+ final String name = state.getString("Name");
|
|
+ final boolean persistent = "true".equals(state.getMap("Properties").getString("persistent"));
|
|
+ final int newState = this.getStateId(name, persistent, distance);
|
|
+ int newStateId;
|
|
+ if ((newStateId = this.stateToIdMap.get(newState)) == -1) {
|
|
+ newStateId = this.palette.size();
|
|
+ this.leaveIds.add(newStateId);
|
|
+ this.stateToIdMap.put(newState, newStateId);
|
|
+ this.palette.addMap(this.makeNewLeafTag(name, persistent, distance));
|
|
+ }
|
|
+
|
|
+ if (1 << this.storage.getBits() <= newStateId) {
|
|
+ // need to widen storage
|
|
+ final PackedBitStorage newStorage = new PackedBitStorage(this.storage.getBits() + 1, 4096);
|
|
+
|
|
+ for(int i = 0; i < 4096; ++i) {
|
|
+ newStorage.set(i, this.storage.get(i));
|
|
+ }
|
|
+
|
|
+ this.storage = newStorage;
|
|
+ }
|
|
+
|
|
+ this.storage.set(index, newStateId);
|
|
+ }
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1500.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1500.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..9208152e2a158470f37b0eb022478e8e5287c12b
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1500.java
|
|
@@ -0,0 +1,24 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1500 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W22C + 1;
|
|
+
|
|
+ private V1500() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("DUMMY", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ data.setBoolean("keepPacked", true);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1501.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1501.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..c497faa60c37f30ceb0d7c394446d6074599c1b7
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1501.java
|
|
@@ -0,0 +1,75 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.advancements.ConverterAbstractAdvancementsRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V1501 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_13_PRE1;
|
|
+
|
|
+ private static final Map<String, String> RENAMES = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:recipes/brewing/speckled_melon", "minecraft:recipes/brewing/glistering_melon_slice")
|
|
+ .put("minecraft:recipes/building_blocks/black_stained_hardened_clay", "minecraft:recipes/building_blocks/black_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/blue_stained_hardened_clay", "minecraft:recipes/building_blocks/blue_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/brown_stained_hardened_clay", "minecraft:recipes/building_blocks/brown_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/cyan_stained_hardened_clay", "minecraft:recipes/building_blocks/cyan_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/gray_stained_hardened_clay", "minecraft:recipes/building_blocks/gray_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/green_stained_hardened_clay", "minecraft:recipes/building_blocks/green_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/light_blue_stained_hardened_clay", "minecraft:recipes/building_blocks/light_blue_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/light_gray_stained_hardened_clay", "minecraft:recipes/building_blocks/light_gray_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/lime_stained_hardened_clay", "minecraft:recipes/building_blocks/lime_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/magenta_stained_hardened_clay", "minecraft:recipes/building_blocks/magenta_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/orange_stained_hardened_clay", "minecraft:recipes/building_blocks/orange_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/pink_stained_hardened_clay", "minecraft:recipes/building_blocks/pink_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/purple_stained_hardened_clay", "minecraft:recipes/building_blocks/purple_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/red_stained_hardened_clay", "minecraft:recipes/building_blocks/red_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/white_stained_hardened_clay", "minecraft:recipes/building_blocks/white_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/yellow_stained_hardened_clay", "minecraft:recipes/building_blocks/yellow_terracotta")
|
|
+ .put("minecraft:recipes/building_blocks/acacia_wooden_slab", "minecraft:recipes/building_blocks/acacia_slab")
|
|
+ .put("minecraft:recipes/building_blocks/birch_wooden_slab", "minecraft:recipes/building_blocks/birch_slab")
|
|
+ .put("minecraft:recipes/building_blocks/dark_oak_wooden_slab", "minecraft:recipes/building_blocks/dark_oak_slab")
|
|
+ .put("minecraft:recipes/building_blocks/jungle_wooden_slab", "minecraft:recipes/building_blocks/jungle_slab")
|
|
+ .put("minecraft:recipes/building_blocks/oak_wooden_slab", "minecraft:recipes/building_blocks/oak_slab")
|
|
+ .put("minecraft:recipes/building_blocks/spruce_wooden_slab", "minecraft:recipes/building_blocks/spruce_slab")
|
|
+ .put("minecraft:recipes/building_blocks/brick_block", "minecraft:recipes/building_blocks/bricks")
|
|
+ .put("minecraft:recipes/building_blocks/chiseled_stonebrick", "minecraft:recipes/building_blocks/chiseled_stone_bricks")
|
|
+ .put("minecraft:recipes/building_blocks/end_bricks", "minecraft:recipes/building_blocks/end_stone_bricks")
|
|
+ .put("minecraft:recipes/building_blocks/lit_pumpkin", "minecraft:recipes/building_blocks/jack_o_lantern")
|
|
+ .put("minecraft:recipes/building_blocks/magma", "minecraft:recipes/building_blocks/magma_block")
|
|
+ .put("minecraft:recipes/building_blocks/melon_block", "minecraft:recipes/building_blocks/melon")
|
|
+ .put("minecraft:recipes/building_blocks/mossy_stonebrick", "minecraft:recipes/building_blocks/mossy_stone_bricks")
|
|
+ .put("minecraft:recipes/building_blocks/nether_brick", "minecraft:recipes/building_blocks/nether_bricks")
|
|
+ .put("minecraft:recipes/building_blocks/pillar_quartz_block", "minecraft:recipes/building_blocks/quartz_pillar")
|
|
+ .put("minecraft:recipes/building_blocks/red_nether_brick", "minecraft:recipes/building_blocks/red_nether_bricks")
|
|
+ .put("minecraft:recipes/building_blocks/snow", "minecraft:recipes/building_blocks/snow_block")
|
|
+ .put("minecraft:recipes/building_blocks/smooth_red_sandstone", "minecraft:recipes/building_blocks/cut_red_sandstone")
|
|
+ .put("minecraft:recipes/building_blocks/smooth_sandstone", "minecraft:recipes/building_blocks/cut_sandstone")
|
|
+ .put("minecraft:recipes/building_blocks/stonebrick", "minecraft:recipes/building_blocks/stone_bricks")
|
|
+ .put("minecraft:recipes/building_blocks/stone_stairs", "minecraft:recipes/building_blocks/cobblestone_stairs")
|
|
+ .put("minecraft:recipes/building_blocks/string_to_wool", "minecraft:recipes/building_blocks/white_wool_from_string")
|
|
+ .put("minecraft:recipes/decorations/fence", "minecraft:recipes/decorations/oak_fence")
|
|
+ .put("minecraft:recipes/decorations/purple_shulker_box", "minecraft:recipes/decorations/shulker_box")
|
|
+ .put("minecraft:recipes/decorations/slime", "minecraft:recipes/decorations/slime_block")
|
|
+ .put("minecraft:recipes/decorations/snow_layer", "minecraft:recipes/decorations/snow")
|
|
+ .put("minecraft:recipes/misc/bone_meal_from_block", "minecraft:recipes/misc/bone_meal_from_bone_block")
|
|
+ .put("minecraft:recipes/misc/bone_meal_from_bone", "minecraft:recipes/misc/bone_meal")
|
|
+ .put("minecraft:recipes/misc/gold_ingot_from_block", "minecraft:recipes/misc/gold_ingot_from_gold_block")
|
|
+ .put("minecraft:recipes/misc/iron_ingot_from_block", "minecraft:recipes/misc/iron_ingot_from_iron_block")
|
|
+ .put("minecraft:recipes/redstone/fence_gate", "minecraft:recipes/redstone/oak_fence_gate")
|
|
+ .put("minecraft:recipes/redstone/noteblock", "minecraft:recipes/redstone/note_block")
|
|
+ .put("minecraft:recipes/redstone/trapdoor", "minecraft:recipes/redstone/oak_trapdoor")
|
|
+ .put("minecraft:recipes/redstone/wooden_button", "minecraft:recipes/redstone/oak_button")
|
|
+ .put("minecraft:recipes/redstone/wooden_door", "minecraft:recipes/redstone/oak_door")
|
|
+ .put("minecraft:recipes/redstone/wooden_pressure_plate", "minecraft:recipes/redstone/oak_pressure_plate")
|
|
+ .put("minecraft:recipes/transportation/boat", "minecraft:recipes/transportation/oak_boat")
|
|
+ .put("minecraft:recipes/transportation/golden_rail", "minecraft:recipes/transportation/powered_rail")
|
|
+ .build();
|
|
+
|
|
+ private V1501() {}
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractAdvancementsRename.register(VERSION, RENAMES::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1502.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1502.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..7db79b279a047ec5907a3fb2c6e1a75be14a2f68
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1502.java
|
|
@@ -0,0 +1,74 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.recipe.ConverterAbstractRecipeRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V1502 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_13_PRE2;
|
|
+
|
|
+ private static final Map<String, String> RECIPES_UPDATES = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:acacia_wooden_slab", "minecraft:acacia_slab")
|
|
+ .put("minecraft:birch_wooden_slab", "minecraft:birch_slab")
|
|
+ .put("minecraft:black_stained_hardened_clay", "minecraft:black_terracotta")
|
|
+ .put("minecraft:blue_stained_hardened_clay", "minecraft:blue_terracotta")
|
|
+ .put("minecraft:boat", "minecraft:oak_boat")
|
|
+ .put("minecraft:bone_meal_from_block", "minecraft:bone_meal_from_bone_block")
|
|
+ .put("minecraft:bone_meal_from_bone", "minecraft:bone_meal")
|
|
+ .put("minecraft:brick_block", "minecraft:bricks")
|
|
+ .put("minecraft:brown_stained_hardened_clay", "minecraft:brown_terracotta")
|
|
+ .put("minecraft:chiseled_stonebrick", "minecraft:chiseled_stone_bricks")
|
|
+ .put("minecraft:cyan_stained_hardened_clay", "minecraft:cyan_terracotta")
|
|
+ .put("minecraft:dark_oak_wooden_slab", "minecraft:dark_oak_slab")
|
|
+ .put("minecraft:end_bricks", "minecraft:end_stone_bricks")
|
|
+ .put("minecraft:fence_gate", "minecraft:oak_fence_gate")
|
|
+ .put("minecraft:fence", "minecraft:oak_fence")
|
|
+ .put("minecraft:golden_rail", "minecraft:powered_rail")
|
|
+ .put("minecraft:gold_ingot_from_block", "minecraft:gold_ingot_from_gold_block")
|
|
+ .put("minecraft:gray_stained_hardened_clay", "minecraft:gray_terracotta")
|
|
+ .put("minecraft:green_stained_hardened_clay", "minecraft:green_terracotta")
|
|
+ .put("minecraft:iron_ingot_from_block", "minecraft:iron_ingot_from_iron_block")
|
|
+ .put("minecraft:jungle_wooden_slab", "minecraft:jungle_slab")
|
|
+ .put("minecraft:light_blue_stained_hardened_clay", "minecraft:light_blue_terracotta")
|
|
+ .put("minecraft:light_gray_stained_hardened_clay", "minecraft:light_gray_terracotta")
|
|
+ .put("minecraft:lime_stained_hardened_clay", "minecraft:lime_terracotta")
|
|
+ .put("minecraft:lit_pumpkin", "minecraft:jack_o_lantern")
|
|
+ .put("minecraft:magenta_stained_hardened_clay", "minecraft:magenta_terracotta")
|
|
+ .put("minecraft:magma", "minecraft:magma_block")
|
|
+ .put("minecraft:melon_block", "minecraft:melon")
|
|
+ .put("minecraft:mossy_stonebrick", "minecraft:mossy_stone_bricks")
|
|
+ .put("minecraft:noteblock", "minecraft:note_block")
|
|
+ .put("minecraft:oak_wooden_slab", "minecraft:oak_slab")
|
|
+ .put("minecraft:orange_stained_hardened_clay", "minecraft:orange_terracotta")
|
|
+ .put("minecraft:pillar_quartz_block", "minecraft:quartz_pillar")
|
|
+ .put("minecraft:pink_stained_hardened_clay", "minecraft:pink_terracotta")
|
|
+ .put("minecraft:purple_shulker_box", "minecraft:shulker_box")
|
|
+ .put("minecraft:purple_stained_hardened_clay", "minecraft:purple_terracotta")
|
|
+ .put("minecraft:red_nether_brick", "minecraft:red_nether_bricks")
|
|
+ .put("minecraft:red_stained_hardened_clay", "minecraft:red_terracotta")
|
|
+ .put("minecraft:slime", "minecraft:slime_block")
|
|
+ .put("minecraft:smooth_red_sandstone", "minecraft:cut_red_sandstone")
|
|
+ .put("minecraft:smooth_sandstone", "minecraft:cut_sandstone")
|
|
+ .put("minecraft:snow_layer", "minecraft:snow")
|
|
+ .put("minecraft:snow", "minecraft:snow_block")
|
|
+ .put("minecraft:speckled_melon", "minecraft:glistering_melon_slice")
|
|
+ .put("minecraft:spruce_wooden_slab", "minecraft:spruce_slab")
|
|
+ .put("minecraft:stonebrick", "minecraft:stone_bricks")
|
|
+ .put("minecraft:stone_stairs", "minecraft:cobblestone_stairs")
|
|
+ .put("minecraft:string_to_wool", "minecraft:white_wool_from_string")
|
|
+ .put("minecraft:trapdoor", "minecraft:oak_trapdoor")
|
|
+ .put("minecraft:white_stained_hardened_clay", "minecraft:white_terracotta")
|
|
+ .put("minecraft:wooden_button", "minecraft:oak_button")
|
|
+ .put("minecraft:wooden_door", "minecraft:oak_door")
|
|
+ .put("minecraft:wooden_pressure_plate", "minecraft:oak_pressure_plate")
|
|
+ .put("minecraft:yellow_stained_hardened_clay", "minecraft:yellow_terracotta")
|
|
+ .build();
|
|
+
|
|
+ private V1502() {}
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractRecipeRename.register(VERSION, RECIPES_UPDATES::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1506.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1506.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..d67a44b7154825efd3e3fd50e0e708ef839866f7
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1506.java
|
|
@@ -0,0 +1,219 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.json.JsonMapType;
|
|
+import ca.spottedleaf.dataconverter.types.json.JsonTypeUtil;
|
|
+import ca.spottedleaf.dataconverter.types.nbt.NBTMapType;
|
|
+import com.google.common.base.Splitter;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import com.google.common.collect.Lists;
|
|
+import com.google.common.collect.Maps;
|
|
+import com.mojang.datafixers.util.Pair;
|
|
+import com.mojang.serialization.Dynamic;
|
|
+import com.mojang.serialization.DynamicOps;
|
|
+import net.minecraft.nbt.CompoundTag;
|
|
+import net.minecraft.nbt.NbtOps;
|
|
+import net.minecraft.nbt.Tag;
|
|
+import net.minecraft.util.GsonHelper;
|
|
+import java.util.ArrayList;
|
|
+import java.util.Collections;
|
|
+import java.util.HashMap;
|
|
+import java.util.Iterator;
|
|
+import java.util.List;
|
|
+import java.util.Locale;
|
|
+import java.util.Map;
|
|
+import java.util.stream.Collectors;
|
|
+
|
|
+public final class V1506 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_13_PRE4 + 2;
|
|
+
|
|
+ static final Map<String, String> MAP = new HashMap<>();
|
|
+ static {
|
|
+ MAP.put("0", "minecraft:ocean");
|
|
+ MAP.put("1", "minecraft:plains");
|
|
+ MAP.put("2", "minecraft:desert");
|
|
+ MAP.put("3", "minecraft:mountains");
|
|
+ MAP.put("4", "minecraft:forest");
|
|
+ MAP.put("5", "minecraft:taiga");
|
|
+ MAP.put("6", "minecraft:swamp");
|
|
+ MAP.put("7", "minecraft:river");
|
|
+ MAP.put("8", "minecraft:nether");
|
|
+ MAP.put("9", "minecraft:the_end");
|
|
+ MAP.put("10", "minecraft:frozen_ocean");
|
|
+ MAP.put("11", "minecraft:frozen_river");
|
|
+ MAP.put("12", "minecraft:snowy_tundra");
|
|
+ MAP.put("13", "minecraft:snowy_mountains");
|
|
+ MAP.put("14", "minecraft:mushroom_fields");
|
|
+ MAP.put("15", "minecraft:mushroom_field_shore");
|
|
+ MAP.put("16", "minecraft:beach");
|
|
+ MAP.put("17", "minecraft:desert_hills");
|
|
+ MAP.put("18", "minecraft:wooded_hills");
|
|
+ MAP.put("19", "minecraft:taiga_hills");
|
|
+ MAP.put("20", "minecraft:mountain_edge");
|
|
+ MAP.put("21", "minecraft:jungle");
|
|
+ MAP.put("22", "minecraft:jungle_hills");
|
|
+ MAP.put("23", "minecraft:jungle_edge");
|
|
+ MAP.put("24", "minecraft:deep_ocean");
|
|
+ MAP.put("25", "minecraft:stone_shore");
|
|
+ MAP.put("26", "minecraft:snowy_beach");
|
|
+ MAP.put("27", "minecraft:birch_forest");
|
|
+ MAP.put("28", "minecraft:birch_forest_hills");
|
|
+ MAP.put("29", "minecraft:dark_forest");
|
|
+ MAP.put("30", "minecraft:snowy_taiga");
|
|
+ MAP.put("31", "minecraft:snowy_taiga_hills");
|
|
+ MAP.put("32", "minecraft:giant_tree_taiga");
|
|
+ MAP.put("33", "minecraft:giant_tree_taiga_hills");
|
|
+ MAP.put("34", "minecraft:wooded_mountains");
|
|
+ MAP.put("35", "minecraft:savanna");
|
|
+ MAP.put("36", "minecraft:savanna_plateau");
|
|
+ MAP.put("37", "minecraft:badlands");
|
|
+ MAP.put("38", "minecraft:wooded_badlands_plateau");
|
|
+ MAP.put("39", "minecraft:badlands_plateau");
|
|
+ MAP.put("40", "minecraft:small_end_islands");
|
|
+ MAP.put("41", "minecraft:end_midlands");
|
|
+ MAP.put("42", "minecraft:end_highlands");
|
|
+ MAP.put("43", "minecraft:end_barrens");
|
|
+ MAP.put("44", "minecraft:warm_ocean");
|
|
+ MAP.put("45", "minecraft:lukewarm_ocean");
|
|
+ MAP.put("46", "minecraft:cold_ocean");
|
|
+ MAP.put("47", "minecraft:deep_warm_ocean");
|
|
+ MAP.put("48", "minecraft:deep_lukewarm_ocean");
|
|
+ MAP.put("49", "minecraft:deep_cold_ocean");
|
|
+ MAP.put("50", "minecraft:deep_frozen_ocean");
|
|
+ MAP.put("127", "minecraft:the_void");
|
|
+ MAP.put("129", "minecraft:sunflower_plains");
|
|
+ MAP.put("130", "minecraft:desert_lakes");
|
|
+ MAP.put("131", "minecraft:gravelly_mountains");
|
|
+ MAP.put("132", "minecraft:flower_forest");
|
|
+ MAP.put("133", "minecraft:taiga_mountains");
|
|
+ MAP.put("134", "minecraft:swamp_hills");
|
|
+ MAP.put("140", "minecraft:ice_spikes");
|
|
+ MAP.put("149", "minecraft:modified_jungle");
|
|
+ MAP.put("151", "minecraft:modified_jungle_edge");
|
|
+ MAP.put("155", "minecraft:tall_birch_forest");
|
|
+ MAP.put("156", "minecraft:tall_birch_hills");
|
|
+ MAP.put("157", "minecraft:dark_forest_hills");
|
|
+ MAP.put("158", "minecraft:snowy_taiga_mountains");
|
|
+ MAP.put("160", "minecraft:giant_spruce_taiga");
|
|
+ MAP.put("161", "minecraft:giant_spruce_taiga_hills");
|
|
+ MAP.put("162", "minecraft:modified_gravelly_mountains");
|
|
+ MAP.put("163", "minecraft:shattered_savanna");
|
|
+ MAP.put("164", "minecraft:shattered_savanna_plateau");
|
|
+ MAP.put("165", "minecraft:eroded_badlands");
|
|
+ MAP.put("166", "minecraft:modified_wooded_badlands_plateau");
|
|
+ MAP.put("167", "minecraft:modified_badlands_plateau");
|
|
+ }
|
|
+
|
|
+ private V1506() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.LEVEL.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String generatorOptions = data.getString("generatorOptions");
|
|
+ final String generatorName = data.getString("generatorName");
|
|
+ if ("flat".equalsIgnoreCase(generatorName)) {
|
|
+ data.setMap("generatorOptions", V1506.convert(generatorOptions == null ? "" : generatorOptions));
|
|
+ } else if ("buffet".equalsIgnoreCase(generatorName) && generatorOptions != null) {
|
|
+ data.setMap("generatorOptions", JsonTypeUtil.convertJsonToNBT(new JsonMapType(GsonHelper.parse(generatorName, true), false)));
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private static MapType<String> convert(final String param0) {
|
|
+ final Dynamic<Tag> dynamic = convert(param0, NbtOps.INSTANCE);
|
|
+
|
|
+ return new NBTMapType((CompoundTag)dynamic.getValue());
|
|
+ }
|
|
+
|
|
+ // Yeah I ain't touching that. This is basically magic value hell.
|
|
+ private static <T> Dynamic<T> convert(final String generatorSettings, final DynamicOps<T> ops) {
|
|
+ final Iterator<String> splitSettings = Splitter.on(';').split(generatorSettings).iterator();
|
|
+ String biome = "minecraft:plains";
|
|
+ final Map<String, Map<String, String>> structures = Maps.newHashMap();
|
|
+ final List<Pair<Integer, String>> layers;
|
|
+ if (!generatorSettings.isEmpty() && splitSettings.hasNext()) {
|
|
+ layers = getLayersInfoFromString(splitSettings.next());
|
|
+ if (!layers.isEmpty()) {
|
|
+ // biome is next
|
|
+ if (splitSettings.hasNext()) {
|
|
+ biome = MAP.getOrDefault(splitSettings.next(), "minecraft:plains");
|
|
+ }
|
|
+
|
|
+ // structures is next
|
|
+ if (splitSettings.hasNext()) {
|
|
+ final String[] structuresSplit = splitSettings.next().toLowerCase(Locale.ROOT).split(",");
|
|
+
|
|
+ for (final String structureString : structuresSplit) {
|
|
+ final String[] structureInfo = structureString.split("\\(", 2);
|
|
+ if (!structureInfo[0].isEmpty()) {
|
|
+ structures.put(structureInfo[0], Maps.newHashMap());
|
|
+ if (structureInfo.length > 1 && structureInfo[1].endsWith(")") && structureInfo[1].length() > 1) {
|
|
+ // I can't even guess the mappings for these. Not worth my time, it will work regardless of the mappings
|
|
+ final String[] var7 = structureInfo[1].substring(0, structureInfo[1].length() - 1).split(" ");
|
|
+
|
|
+ for (final String var8 : var7) {
|
|
+ String[] var9 = var8.split("=", 2);
|
|
+ if (var9.length == 2) {
|
|
+ structures.get(structureInfo[0]).put(var9[0], var9[1]);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ } else {
|
|
+ structures.put("village", Maps.newHashMap());
|
|
+ }
|
|
+ }
|
|
+ } else {
|
|
+ layers = Lists.newArrayList();
|
|
+ layers.add(Pair.of(1, "minecraft:bedrock"));
|
|
+ layers.add(Pair.of(2, "minecraft:dirt"));
|
|
+ layers.add(Pair.of(1, "minecraft:grass_block"));
|
|
+ structures.put("village", Maps.newHashMap());
|
|
+ }
|
|
+
|
|
+ final T layerTag = ops.createList(layers.stream().map((param1x) -> ops.createMap(ImmutableMap.of(ops.createString("height"), ops.createInt(param1x.getFirst()), ops.createString("block"), ops.createString(param1x.getSecond())))));
|
|
+ final T structuresTag = ops.createMap(structures.entrySet().stream().map((param1x) -> Pair.of(ops.createString(param1x.getKey().toLowerCase(Locale.ROOT)), ops.createMap(param1x.getValue().entrySet().stream().map((param1xx) -> Pair.of(ops.createString(param1xx.getKey()), ops.createString(param1xx.getValue()))).collect(Collectors.toMap(Pair::getFirst, Pair::getSecond))))).collect(Collectors.toMap(Pair::getFirst, Pair::getSecond)));
|
|
+ return new Dynamic<>(ops, ops.createMap(ImmutableMap.of(ops.createString("layers"), layerTag, ops.createString("biome"), ops.createString(biome), ops.createString("structures"), structuresTag)));
|
|
+ }
|
|
+
|
|
+ private static Pair<Integer, String> getLayerInfoFromString(final String layerString) {
|
|
+ final String[] split = layerString.split("\\*", 2);
|
|
+ int layerCount;
|
|
+ if (split.length == 2) {
|
|
+ try {
|
|
+ layerCount = Integer.parseInt(split[0]);
|
|
+ } catch (final NumberFormatException ex) {
|
|
+ return null;
|
|
+ }
|
|
+ } else {
|
|
+ layerCount = 1;
|
|
+ }
|
|
+
|
|
+ final String blockName = split[split.length - 1];
|
|
+ return Pair.of(layerCount, blockName);
|
|
+ }
|
|
+
|
|
+ private static List<Pair<Integer, String>> getLayersInfoFromString(final String layersString) {
|
|
+ final List<Pair<Integer, String>> ret = new ArrayList<>();
|
|
+ final String[] layers = layersString.split(",");
|
|
+
|
|
+ for (final String layerString : layers) {
|
|
+ final Pair<Integer, String> layer = getLayerInfoFromString(layerString);
|
|
+ if (layer == null) {
|
|
+ return Collections.emptyList();
|
|
+ }
|
|
+
|
|
+ ret.add(layer);
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1510.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1510.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..7dbc6ac66a29d3b5e4df5d0105c8fc03a6aea0e0
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1510.java
|
|
@@ -0,0 +1,103 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.entity.ConverterAbstractEntityRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.recipe.ConverterAbstractRecipeRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.stats.ConverterAbstractStatsRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V1510 {
|
|
+
|
|
+ public static final Map<String, String> RENAMED_ENTITY_IDS = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:commandblock_minecart", "minecraft:command_block_minecart")
|
|
+ .put("minecraft:ender_crystal", "minecraft:end_crystal")
|
|
+ .put("minecraft:snowman", "minecraft:snow_golem")
|
|
+ .put("minecraft:evocation_illager", "minecraft:evoker")
|
|
+ .put("minecraft:evocation_fangs", "minecraft:evoker_fangs")
|
|
+ .put("minecraft:illusion_illager", "minecraft:illusioner")
|
|
+ .put("minecraft:vindication_illager", "minecraft:vindicator")
|
|
+ .put("minecraft:villager_golem", "minecraft:iron_golem")
|
|
+ .put("minecraft:xp_orb", "minecraft:experience_orb")
|
|
+ .put("minecraft:xp_bottle", "minecraft:experience_bottle")
|
|
+ .put("minecraft:eye_of_ender_signal", "minecraft:eye_of_ender")
|
|
+ .put("minecraft:fireworks_rocket", "minecraft:firework_rocket")
|
|
+ .build();
|
|
+
|
|
+ public static final Map<String, String> RENAMED_BLOCKS = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:portal", "minecraft:nether_portal")
|
|
+ .put("minecraft:oak_bark", "minecraft:oak_wood")
|
|
+ .put("minecraft:spruce_bark", "minecraft:spruce_wood")
|
|
+ .put("minecraft:birch_bark", "minecraft:birch_wood")
|
|
+ .put("minecraft:jungle_bark", "minecraft:jungle_wood")
|
|
+ .put("minecraft:acacia_bark", "minecraft:acacia_wood")
|
|
+ .put("minecraft:dark_oak_bark", "minecraft:dark_oak_wood")
|
|
+ .put("minecraft:stripped_oak_bark", "minecraft:stripped_oak_wood")
|
|
+ .put("minecraft:stripped_spruce_bark", "minecraft:stripped_spruce_wood")
|
|
+ .put("minecraft:stripped_birch_bark", "minecraft:stripped_birch_wood")
|
|
+ .put("minecraft:stripped_jungle_bark", "minecraft:stripped_jungle_wood")
|
|
+ .put("minecraft:stripped_acacia_bark", "minecraft:stripped_acacia_wood")
|
|
+ .put("minecraft:stripped_dark_oak_bark", "minecraft:stripped_dark_oak_wood")
|
|
+ .put("minecraft:mob_spawner", "minecraft:spawner")
|
|
+ .build();
|
|
+
|
|
+ public static final Map<String, String> RENAMED_ITEMS = ImmutableMap.<String, String>builder()
|
|
+ .putAll(RENAMED_BLOCKS)
|
|
+ .put("minecraft:clownfish", "minecraft:tropical_fish")
|
|
+ .put("minecraft:chorus_fruit_popped", "minecraft:popped_chorus_fruit")
|
|
+ .put("minecraft:evocation_illager_spawn_egg", "minecraft:evoker_spawn_egg")
|
|
+ .put("minecraft:vindication_illager_spawn_egg", "minecraft:vindicator_spawn_egg")
|
|
+ .build();
|
|
+
|
|
+ private static final Map<String, String> RECIPES_UPDATES = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:acacia_bark", "minecraft:acacia_wood")
|
|
+ .put("minecraft:birch_bark", "minecraft:birch_wood")
|
|
+ .put("minecraft:dark_oak_bark", "minecraft:dark_oak_wood")
|
|
+ .put("minecraft:jungle_bark", "minecraft:jungle_wood")
|
|
+ .put("minecraft:oak_bark", "minecraft:oak_wood")
|
|
+ .put("minecraft:spruce_bark", "minecraft:spruce_wood")
|
|
+ .build();
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_13_PRE4 + 6;
|
|
+
|
|
+ private V1510() {}
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractBlockRename.register(VERSION, RENAMED_BLOCKS::get);
|
|
+ ConverterAbstractItemRename.register(VERSION, RENAMED_ITEMS::get);
|
|
+ ConverterAbstractRecipeRename.register(VERSION, RECIPES_UPDATES::get);
|
|
+
|
|
+ ConverterAbstractEntityRename.register(VERSION, (String input) -> {
|
|
+ if (input.startsWith("minecraft:bred_")) {
|
|
+ input = "minecraft:".concat(input.substring("minecraft:bred_".length()));
|
|
+ }
|
|
+
|
|
+ return RENAMED_ENTITY_IDS.get(input);
|
|
+ });
|
|
+
|
|
+ ConverterAbstractStatsRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:swim_one_cm", "minecraft:walk_on_water_one_cm",
|
|
+ "minecraft:dive_one_cm", "minecraft:walk_under_water_one_cm"
|
|
+ )::get);
|
|
+
|
|
+
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:commandblock_minecart", "minecraft:command_block_minecart");
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:ender_crystal", "minecraft:end_crystal");
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:snowman", "minecraft:snow_golem");
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:evocation_illager", "minecraft:evoker");
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:evocation_fangs", "minecraft:evoker_fangs");
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:illusion_illager", "minecraft:illusioner");
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:vindication_illager", "minecraft:vindicator");
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:villager_golem", "minecraft:iron_golem");
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:xp_orb", "minecraft:experience_orb");
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:xp_bottle", "minecraft:experience_bottle");
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:eye_of_ender_signal", "minecraft:eye_of_ender");
|
|
+ MCTypeRegistry.ENTITY.copyWalkers(VERSION, "minecraft:fireworks_rocket", "minecraft:firework_rocket");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1514.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1514.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..62feb7e81963f7aeea6332fbae3d71c2d9bf2b95
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1514.java
|
|
@@ -0,0 +1,70 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import net.minecraft.network.chat.Component;
|
|
+import net.minecraft.network.chat.TextComponent;
|
|
+import net.minecraft.world.scores.criteria.ObjectiveCriteria;
|
|
+
|
|
+public final class V1514 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_13_PRE7 + 1;
|
|
+
|
|
+ private V1514() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.OBJECTIVE.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String displayName = data.getString("DisplayName");
|
|
+ if (displayName == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String update = Component.Serializer.toJson(new TextComponent(displayName));
|
|
+
|
|
+ data.setString("DisplayName", update);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.TEAM.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String displayName = data.getString("DisplayName");
|
|
+ if (displayName == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String update = Component.Serializer.toJson(new TextComponent(displayName));
|
|
+
|
|
+ data.setString("DisplayName", update);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.OBJECTIVE.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ private static ObjectiveCriteria.RenderType getRenderType(String string) {
|
|
+ return string.equals("health") ? ObjectiveCriteria.RenderType.HEARTS : ObjectiveCriteria.RenderType.INTEGER;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String renderType = data.getString("RenderType");
|
|
+ if (renderType != null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String criteriaName = data.getString("CriteriaName", "");
|
|
+
|
|
+ data.setString("RenderType", getRenderType(criteriaName).getId());
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1515.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1515.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..8f7a2ff2d5a154f667da35215f0e1d0756dbe2a0
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1515.java
|
|
@@ -0,0 +1,25 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V1515 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_13_PRE7 + 2;
|
|
+
|
|
+ public static final Map<String, String> RENAMED_BLOCK_IDS = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:tube_coral_fan", "minecraft:tube_coral_wall_fan")
|
|
+ .put("minecraft:brain_coral_fan", "minecraft:brain_coral_wall_fan")
|
|
+ .put("minecraft:bubble_coral_fan", "minecraft:bubble_coral_wall_fan")
|
|
+ .put("minecraft:fire_coral_fan", "minecraft:fire_coral_wall_fan")
|
|
+ .put("minecraft:horn_coral_fan", "minecraft:horn_coral_wall_fan")
|
|
+ .build();
|
|
+
|
|
+ private V1515() {}
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractBlockRename.register(VERSION, RENAMED_BLOCK_IDS::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1624.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1624.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..fc236f356067295a74e6d74e5e10ac099fc8ffa4
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1624.java
|
|
@@ -0,0 +1,110 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
|
|
+import org.apache.logging.log4j.LogManager;
|
|
+import org.apache.logging.log4j.Logger;
|
|
+
|
|
+public final class V1624 {
|
|
+
|
|
+ private static final Logger LOGGER = LogManager.getLogger();
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W32A + 1;
|
|
+
|
|
+ private V1624() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final ListType sections = level.getList("Sections", ObjectType.MAP);
|
|
+ if (sections == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final IntOpenHashSet positionsToLook = new IntOpenHashSet();
|
|
+
|
|
+ for (int i = 0, len = sections.size(); i < len; ++i) {
|
|
+ final TrappedChestSection section = new TrappedChestSection(sections.getMap(i));
|
|
+ if (section.isSkippable()) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ for (int index = 0; index < 4096; ++index) {
|
|
+ if (section.isTrappedChest(section.getBlock(index))) {
|
|
+ positionsToLook.add(section.getSectionY() << 12 | index);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final int chunkX = level.getInt("xPos");
|
|
+ final int chunkZ = level.getInt("zPos");
|
|
+
|
|
+ final ListType tileEntities = level.getList("TileEntities", ObjectType.MAP);
|
|
+
|
|
+ if (tileEntities != null) {
|
|
+ for (int i = 0, len = tileEntities.size(); i < len; ++i) {
|
|
+ final MapType<String> tile = tileEntities.getMap(i);
|
|
+
|
|
+ final int x = tile.getInt("x");
|
|
+ final int y = tile.getInt("y");
|
|
+ final int z = tile.getInt("z");
|
|
+
|
|
+ final int index = V1496.getIndex(x - (chunkX << 4), y, z - (chunkZ << 4));
|
|
+ if (!positionsToLook.contains(index)) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String id = tile.getString("id");
|
|
+ if (!"minecraft:chest".equals(id)) {
|
|
+ LOGGER.warn("Block Entity ({},{},{}) was expected to be a chest (V1624)", x, y, z);
|
|
+ }
|
|
+
|
|
+ tile.setString("id", "minecraft:trapped_chest");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ public static final class TrappedChestSection extends V1496.Section {
|
|
+
|
|
+ private IntOpenHashSet chestIds;
|
|
+
|
|
+ public TrappedChestSection(final MapType<String> section) {
|
|
+ super(section);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ protected boolean initSkippable() {
|
|
+ this.chestIds = new IntOpenHashSet();
|
|
+
|
|
+ for (int i = 0; i < this.palette.size(); ++i) {
|
|
+ final MapType<String> blockState = this.palette.getMap(i);
|
|
+ final String name = blockState.getString("Name");
|
|
+ if ("minecraft:trapped_chest".equals(name)) {
|
|
+ this.chestIds.add(i);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return this.chestIds.isEmpty();
|
|
+ }
|
|
+
|
|
+ public boolean isTrappedChest(final int id) {
|
|
+ return this.chestIds.contains(id);
|
|
+ }
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V165.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V165.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..e94facc0dde06d0abbf415cce3cc0f31207900df
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V165.java
|
|
@@ -0,0 +1,79 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import com.google.gson.JsonParseException;
|
|
+import net.minecraft.network.chat.Component;
|
|
+import net.minecraft.network.chat.TextComponent;
|
|
+import net.minecraft.util.GsonHelper;
|
|
+import net.minecraft.util.datafix.fixes.BlockEntitySignTextStrictJsonFix;
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
+
|
|
+public final class V165 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_9_PRE2;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ITEM_STACK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final ListType pages = tag.getList("pages", ObjectType.STRING);
|
|
+ if (pages == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = pages.size(); i < len; ++i) {
|
|
+ final String page = pages.getString(i);
|
|
+ Component component = null;
|
|
+
|
|
+ if (!"null".equals(page) && !StringUtils.isEmpty(page)) {
|
|
+ if (page.charAt(0) == '"' && page.charAt(page.length() - 1) == '"' || page.charAt(0) == '{' && page.charAt(page.length() - 1) == '}') {
|
|
+ try {
|
|
+ component = GsonHelper.fromJson(BlockEntitySignTextStrictJsonFix.GSON, page, Component.class, true);
|
|
+ if (component == null) {
|
|
+ component = TextComponent.EMPTY;
|
|
+ }
|
|
+ } catch (final JsonParseException ignored) {}
|
|
+
|
|
+ if (component == null) {
|
|
+ try {
|
|
+ component = Component.Serializer.fromJson(page);
|
|
+ } catch (final JsonParseException ignored) {}
|
|
+ }
|
|
+
|
|
+ if (component == null) {
|
|
+ try {
|
|
+ component = Component.Serializer.fromJsonLenient(page);
|
|
+ } catch (JsonParseException ignored) {}
|
|
+ }
|
|
+
|
|
+ if (component == null) {
|
|
+ component = new TextComponent(page);
|
|
+ }
|
|
+ } else {
|
|
+ component = new TextComponent(page);
|
|
+ }
|
|
+ } else {
|
|
+ component = TextComponent.EMPTY;
|
|
+ }
|
|
+
|
|
+ pages.setString(i, Component.Serializer.toJson(component));
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V165() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1800.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1800.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..1362a7917243715305650c197a8e7e5689bcfe4a
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1800.java
|
|
@@ -0,0 +1,33 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V1800 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_13_2 + 169;
|
|
+
|
|
+ public static final Map<String, String> RENAMED_ITEM_IDS = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:cactus_green", "minecraft:green_dye")
|
|
+ .put("minecraft:rose_red", "minecraft:red_dye")
|
|
+ .put("minecraft:dandelion_yellow", "minecraft:yellow_dye")
|
|
+ .build();
|
|
+
|
|
+ private V1800() {}
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractItemRename.register(VERSION, RENAMED_ITEM_IDS::get);
|
|
+
|
|
+ registerMob("minecraft:panda");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:pillager", new DataWalkerItemLists("Inventory", "ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1801.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1801.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..a4e2fa4ed6ede8d1783b5591ef1b5ebf3cd28bf0
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1801.java
|
|
@@ -0,0 +1,21 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+
|
|
+public final class V1801 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_13_2 + 170;
|
|
+
|
|
+ private V1801() {}
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ registerMob("minecraft:illager_beast");
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1802.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1802.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..cd5110ef3c18662871020456b60edfb3aeb67166
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1802.java
|
|
@@ -0,0 +1,25 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V1802 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_13_2 + 171;
|
|
+
|
|
+ private V1802() {}
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractBlockRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:stone_slab", "minecraft:smooth_stone_slab",
|
|
+ "minecraft:sign", "minecraft:oak_sign", "minecraft:wall_sign", "minecraft:oak_wall_sign"
|
|
+ )::get);
|
|
+ ConverterAbstractItemRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:stone_slab", "minecraft:smooth_stone_slab",
|
|
+ "minecraft:sign", "minecraft:oak_sign"
|
|
+ )::get);
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1803.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1803.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..87d156b6b6066b4c312608d82e5d7d6b0c01abc7
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1803.java
|
|
@@ -0,0 +1,48 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import net.minecraft.network.chat.Component;
|
|
+import net.minecraft.network.chat.TextComponent;
|
|
+
|
|
+public final class V1803 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_13_2 + 172;
|
|
+
|
|
+ private V1803() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ITEM_STACK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> tag = data.getMap("tag");
|
|
+
|
|
+ if (tag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> display = tag.getMap("display");
|
|
+
|
|
+ if (display == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final ListType lore = display.getList("Lore", ObjectType.STRING);
|
|
+ if (lore == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = lore.size(); i < len; ++i) {
|
|
+ lore.setString(i, Component.Serializer.toJson(new TextComponent(lore.getString(i))));
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1904.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1904.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..09955e0c2245d8d42ce6ae664ae81e97db8a85f2
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1904.java
|
|
@@ -0,0 +1,44 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1904 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W43C + 1;
|
|
+
|
|
+ private V1904() {}
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:ocelot", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final int catType = data.getInt("CatType");
|
|
+
|
|
+ if (catType == 0) {
|
|
+ final String owner = data.getString("Owner");
|
|
+ final String ownerUUID = data.getString("OwnerUUID");
|
|
+ if ((owner != null && owner.length() > 0) || (ownerUUID != null && ownerUUID.length() > 0)) {
|
|
+ data.setBoolean("Trusting", true);
|
|
+ }
|
|
+ } else if (catType > 0 && catType < 4) {
|
|
+ data.setString("id", "minecraft:cat");
|
|
+ data.setString("OwnerUUID", data.getString("OwnerUUID", ""));
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ registerMob("minecraft:cat");
|
|
+ }
|
|
+
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1905.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1905.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..2eeec0d9cbd35ff20ba239ea7fd9c2f52f7e4f9e
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1905.java
|
|
@@ -0,0 +1,35 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1905 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W43C + 2;
|
|
+
|
|
+ private V1905() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String status = level.getString("Status");
|
|
+
|
|
+ if ("postprocessed".equals(status)) {
|
|
+ level.setString("Status", "fullchunk");
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1906.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1906.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..6358c2e0861a3743a3ea6d46a644870892256a79
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1906.java
|
|
@@ -0,0 +1,21 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItems;
|
|
+
|
|
+public final class V1906 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W43C + 3;
|
|
+
|
|
+ private V1906() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, "minecraft:barrel", new DataWalkerItemLists("Items"));
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, "minecraft:smoker", new DataWalkerItemLists("Items"));
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, "minecraft:blast_furnace", new DataWalkerItemLists("Items"));
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, "minecraft:lectern", new DataWalkerItems("Book"));
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1911.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1911.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..b9cc2e4a2ae42e12ccf4e0b634fd74d3aad317ab
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1911.java
|
|
@@ -0,0 +1,48 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V1911 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W46A + 1;
|
|
+
|
|
+ private static final Map<String, String> CHUNK_STATUS_REMAP = ImmutableMap.<String, String>builder()
|
|
+ .put("structure_references", "empty")
|
|
+ .put("biomes", "empty")
|
|
+ .put("base", "surface")
|
|
+ .put("carved", "carvers")
|
|
+ .put("liquid_carved", "liquid_carvers")
|
|
+ .put("decorated", "features")
|
|
+ .put("lighted", "light")
|
|
+ .put("mobs_spawned", "spawn")
|
|
+ .put("finalized", "heightmaps")
|
|
+ .put("fullchunk", "full")
|
|
+ .build();
|
|
+
|
|
+
|
|
+ private V1911() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String status = level.getString("Status", "empty");
|
|
+ level.setString("Status", CHUNK_STATUS_REMAP.getOrDefault(status, "empty"));
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1917.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1917.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..71538d858a681c91f7193003e0808cdb4fd1f847
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1917.java
|
|
@@ -0,0 +1,26 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1917 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W49A + 1;
|
|
+
|
|
+ private V1917() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:cat", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (data.getInt("CatType") == 9) {
|
|
+ data.setInt("CatType", 10);
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1918.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1918.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..28fc06da723792e9abc4999376c0941f9a835aff
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1918.java
|
|
@@ -0,0 +1,65 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V1918 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W49A + 2;
|
|
+
|
|
+ private V1918() {}
|
|
+
|
|
+ private static String getProfessionString(final int professionId, final int careerId) {
|
|
+ if (professionId == 0) {
|
|
+ if (careerId == 2) {
|
|
+ return "minecraft:fisherman";
|
|
+ } else if (careerId == 3) {
|
|
+ return "minecraft:shepherd";
|
|
+ } else {
|
|
+ return careerId == 4 ? "minecraft:fletcher" : "minecraft:farmer";
|
|
+ }
|
|
+ } else if (professionId == 1) {
|
|
+ return careerId == 2 ? "minecraft:cartographer" : "minecraft:librarian";
|
|
+ } else if (professionId == 2) {
|
|
+ return "minecraft:cleric";
|
|
+ } else if (professionId == 3) {
|
|
+ if (careerId == 2) {
|
|
+ return "minecraft:weaponsmith";
|
|
+ } else {
|
|
+ return careerId == 3 ? "minecraft:toolsmith" : "minecraft:armorer";
|
|
+ }
|
|
+ } else if (professionId == 4) {
|
|
+ return careerId == 2 ? "minecraft:leatherworker" : "minecraft:butcher";
|
|
+ } else {
|
|
+ return professionId == 5 ? "minecraft:nitwit" : "minecraft:none";
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ final DataConverter<MapType<String>, MapType<String>> converter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final int profession = data.getInt("Profession");
|
|
+ final int career = data.getInt("Career");
|
|
+ final int careerLevel = data.getInt("CareerLevel", 1);
|
|
+ data.remove("Profession");
|
|
+ data.remove("Career");
|
|
+ data.remove("CareerLevel");
|
|
+
|
|
+ final MapType<String> villagerData = Types.NBT.createEmptyMap();
|
|
+ data.setMap("VillagerData", villagerData);
|
|
+ villagerData.setString("type", "minecraft:plains");
|
|
+ villagerData.setString("profession", getProfessionString(profession, career));
|
|
+ villagerData.setInt("level", careerLevel);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:villager", converter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:zombie_villager", converter);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1920.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1920.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..264264b4f8b9f3b365a5c3e971f817b42359556d
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1920.java
|
|
@@ -0,0 +1,75 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.util.NamespaceUtil;
|
|
+
|
|
+public final class V1920 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V18W50A + 1;
|
|
+
|
|
+ private V1920() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> structures = level.getMap("Structures");
|
|
+ if (structures == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> starts = structures.getMap("Starts");
|
|
+ if (starts != null) {
|
|
+ final MapType<String> village = starts.getMap("New_Village");
|
|
+ if (village != null) {
|
|
+ starts.remove("New_Village");
|
|
+ starts.setMap("Village", village);
|
|
+ } else {
|
|
+ starts.remove("Village");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final MapType<String> references = structures.getMap("References");
|
|
+ if (references != null) {
|
|
+ final MapType<String> newVillage = references.getMap("New_Village");
|
|
+ // I believe Mojang had a typo here, removing Village from references only made sense
|
|
+ // if the new village didn't exist. DFU removes it whether or not it exists, but still relocates
|
|
+ // New_Village to Village first. It doesn't make sense to me to relocate it just to remove it, so it
|
|
+ // must be a typo.
|
|
+ if (newVillage == null) {
|
|
+ references.remove("Village");
|
|
+ } else {
|
|
+ references.remove("New_Village");
|
|
+ references.setMap("Village", newVillage);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.STRUCTURE_FEATURE.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String id = data.getString("id");
|
|
+
|
|
+ if ("minecraft:new_village".equals(NamespaceUtil.correctNamespace(id))) {
|
|
+ data.setString("id", "minecraft:village");
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:campfire", new DataWalkerItemLists("Items"));
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1925.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1925.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..19dc3d9b18d95d5f0e898d4c52c77a527066adf1
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1925.java
|
|
@@ -0,0 +1,29 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V1925 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V19W03C + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.SAVED_DATA.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> root, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> data = root.getMap("data");
|
|
+ if (data == null) {
|
|
+ final MapType<String> ret = Types.NBT.createEmptyMap();
|
|
+ ret.setMap("data", root);
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1928.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1928.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..86caefba615a917d3530112edcc083caaaea4bb9
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1928.java
|
|
@@ -0,0 +1,30 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.entity.ConverterAbstractEntityRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V1928 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V19W04B + 1;
|
|
+
|
|
+ private V1928() {}
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractEntityRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:illager_beast", "minecraft:ravager"
|
|
+ )::get);
|
|
+ ConverterAbstractItemRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:illager_beast_spawn_egg", "minecraft:ravager_spawn_egg"
|
|
+ )::get);
|
|
+
|
|
+ registerMob("minecraft:ravager");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1929.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1929.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..d58c32aa89e416e40cfef7c5840b772dd4991173
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1929.java
|
|
@@ -0,0 +1,49 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+
|
|
+public final class V1929 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V19W04B + 2;
|
|
+
|
|
+ private V1929() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:wandering_trader", (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "Inventory", fromVersion, toVersion);
|
|
+
|
|
+ final MapType<String> offers = data.getMap("Offers");
|
|
+ if (offers != null) {
|
|
+ final ListType recipes = offers.getList("Recipes", ObjectType.MAP);
|
|
+ if (recipes != null) {
|
|
+ for (int i = 0, len = recipes.size(); i < len; ++i) {
|
|
+ final MapType<String> recipe = recipes.getMap(i);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, recipe, "buy", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, recipe, "buyB", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, recipe, "sell", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "ArmorItems", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "HandItems", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:trader_llama", (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, data, "SaddleItem", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, data, "DecorItem", fromVersion, toVersion);
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "Items", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "ArmorItems", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "HandItems", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1931.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1931.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..da845df91d42f1059490d749b235758850ce7254
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1931.java
|
|
@@ -0,0 +1,21 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+
|
|
+public final class V1931 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V19W06A;
|
|
+
|
|
+ private V1931() {}
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ registerMob("minecraft:fox");
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1936.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1936.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..4e7b22874f17f531b583146db3aa4e57bdd5f27c
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1936.java
|
|
@@ -0,0 +1,37 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1936 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V19W09A + 1;
|
|
+
|
|
+ private V1936() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.OPTIONS.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String chatOpacity = data.getString("chatOpacity");
|
|
+ if (chatOpacity != null) {
|
|
+ // Vanilla uses createDouble here, but options is always string -> string. I presume they made
|
|
+ // a mistake with this converter.
|
|
+ data.setString("textBackgroundOpacity", Double.toString(calculateBackground(chatOpacity)));
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private static double calculateBackground(final String opacity) {
|
|
+ try {
|
|
+ final double d = 0.9D * Double.parseDouble(opacity) + 0.1D;
|
|
+ return d / 2.0D;
|
|
+ } catch (final NumberFormatException ex) {
|
|
+ return 0.5D;
|
|
+ }
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1946.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1946.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..00e4bd45b04feee990d9d3414c34c0966e65e4ea
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1946.java
|
|
@@ -0,0 +1,42 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V1946 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V19W14B + 1;
|
|
+
|
|
+ private V1946() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.POI_CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> sections = Types.NBT.createEmptyMap();
|
|
+ data.setMap("Sections", sections);
|
|
+
|
|
+ for (int y = 0; y < 16; ++y) {
|
|
+ final String key = Integer.toString(y);
|
|
+ final Object records = data.getGeneric(key);
|
|
+
|
|
+ if (records == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ data.remove(key);
|
|
+
|
|
+ final MapType<String> section = Types.NBT.createEmptyMap();
|
|
+ section.setGeneric("Records", records);
|
|
+ sections.setMap(key, section); // integer keys convert to string in DFU (at least for NBT ops)
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1948.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1948.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..6b4af1fe7c53e6122d7db952770d14a753f8cab3
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1948.java
|
|
@@ -0,0 +1,39 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1948 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_14_PRE2;
|
|
+
|
|
+ private V1948() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ITEM_STACK.addConverterForId("minecraft:white_banner", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> display = tag.getMap("display");
|
|
+ if (display == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String name = display.getString("Name");
|
|
+ if (name == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ display.setString("Name", name.replace("\"translate\":\"block.minecraft.illager_banner\"", "\"translate\":\"block.minecraft.ominous_banner\""));
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1953.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1953.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..a73471e8f3df3b22349b2f842c3e98c2ff8bb5e1
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1953.java
|
|
@@ -0,0 +1,27 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1953 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_14 + 1;
|
|
+
|
|
+ private V1953() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:banner", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String name = data.getString("CustomName");
|
|
+ if (name != null) {
|
|
+ data.setString("CustomName", name.replace("\"translate\":\"block.minecraft.illager_banner\"", "\"translate\":\"block.minecraft.ominous_banner\""));
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1955.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1955.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..33bfe82709b507c4fd57199f5d8a44d131718d7f
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1955.java
|
|
@@ -0,0 +1,94 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+import net.minecraft.util.Mth;
|
|
+
|
|
+public final class V1955 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_14_1_PRE1;
|
|
+
|
|
+ private static final int[] LEVEL_XP_THRESHOLDS = new int[] {
|
|
+ 0,
|
|
+ 10,
|
|
+ 50,
|
|
+ 100,
|
|
+ 150
|
|
+ };
|
|
+
|
|
+ private V1955() {}
|
|
+
|
|
+ static int getMinXpPerLevel(final int level) {
|
|
+ return LEVEL_XP_THRESHOLDS[Mth.clamp(level - 1, 0, LEVEL_XP_THRESHOLDS.length - 1)];
|
|
+ }
|
|
+
|
|
+ static void addLevel(final MapType<String> data, final int level) {
|
|
+ MapType<String> villagerData = data.getMap("VillagerData");
|
|
+ if (villagerData == null) {
|
|
+ villagerData = Types.NBT.createEmptyMap();
|
|
+ data.setMap("VillagerData", villagerData);
|
|
+ }
|
|
+ villagerData.setInt("level", level);
|
|
+ }
|
|
+
|
|
+ static void addXpFromLevel(final MapType<String> data, final int level) {
|
|
+ data.setInt("Xp", getMinXpPerLevel(level));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:villager", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> villagerData = data.getMap("VillagerData");
|
|
+ int level = villagerData == null ? 0 : villagerData.getInt("level");
|
|
+ if (level == 0 || level == 1) {
|
|
+ // count recipes
|
|
+ final MapType<String> offers = data.getMap("Offers");
|
|
+ final ListType recipes = offers == null ? null : offers.getList("Recipes", ObjectType.MAP);
|
|
+ final int recipeCount;
|
|
+ if (recipes != null) {
|
|
+ recipeCount = recipes.size();
|
|
+ } else {
|
|
+ recipeCount = 0;
|
|
+ }
|
|
+
|
|
+ level = Mth.clamp(recipeCount / 2, 1, 5);
|
|
+ if (level > 1) {
|
|
+ addLevel(data, level);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ if (!data.hasKey("Xp", ObjectType.NUMBER)) {
|
|
+ addXpFromLevel(data, level);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:zombie_villager", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final Number xp = data.getNumber("Xp");
|
|
+ if (xp == null) {
|
|
+ final int level;
|
|
+ final MapType<String> villagerData = data.getMap("VillagerData");
|
|
+ if (villagerData == null) {
|
|
+ level = 1;
|
|
+ } else {
|
|
+ level = villagerData.getInt("level", 1);
|
|
+ }
|
|
+
|
|
+ data.setInt("Xp", getMinXpPerLevel(level));
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1961.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1961.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..8bc6a8734034942a81b282b8766b21fddbe2b304
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1961.java
|
|
@@ -0,0 +1,30 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V1961 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_14_2_PRE3 + 1;
|
|
+
|
|
+ private V1961() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ level.remove("isLightOn");
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1963.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1963.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5e4e7299cec1d3809d1b55ae460e64ec6d2bb477
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V1963.java
|
|
@@ -0,0 +1,40 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+
|
|
+public final class V1963 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_14_2;
|
|
+
|
|
+ private V1963() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:villager", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final ListType gossips = data.getList("Gossips", ObjectType.MAP);
|
|
+ if (gossips == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (int i = 0; i < gossips.size();) {
|
|
+ final MapType<String> gossip = gossips.getMap(i);
|
|
+ if ("golem".equals(gossip.getString("Type"))) {
|
|
+ gossips.remove(i);
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ ++i;
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2100.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2100.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..d905043c4f3071e8dc340ac2afe2b81aac345e1e
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2100.java
|
|
@@ -0,0 +1,46 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.advancements.ConverterAbstractAdvancementsRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.recipe.ConverterAbstractRecipeRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V2100 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_14_4 + 124;
|
|
+ protected static final Map<String, String> RECIPE_RENAMES = ImmutableMap.of(
|
|
+ "minecraft:sugar", "sugar_from_sugar_cane"
|
|
+ );
|
|
+
|
|
+ private V2100() {}
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractRecipeRename.register(VERSION, RECIPE_RENAMES::get);
|
|
+ ConverterAbstractAdvancementsRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:recipes/misc/sugar", "minecraft:recipes/misc/sugar_from_sugar_cane"
|
|
+ )::get);
|
|
+
|
|
+ registerMob("minecraft:bee");
|
|
+ registerMob("minecraft:bee_stinger");
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, "minecraft:beehive", (data, fromVersion, toVersion) -> {
|
|
+ final ListType bees = data.getList("Bees", ObjectType.MAP);
|
|
+ if (bees != null) {
|
|
+ for (int i = 0, len = bees.size(); i < len; ++i) {
|
|
+ WalkerUtils.convert(MCTypeRegistry.ENTITY, bees.getMap(i), "EntityData", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2202.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2202.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..0bb378ac8e8d0a087359361281644a7f39cecfbe
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2202.java
|
|
@@ -0,0 +1,50 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V2202 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V19W35A + 1;
|
|
+
|
|
+ private V2202() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final int[] oldBiomes = level.getInts("Biomes");
|
|
+
|
|
+ if (oldBiomes == null || oldBiomes.length != 256) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final int[] newBiomes = new int[1024];
|
|
+ level.setInts("Biomes", newBiomes);
|
|
+
|
|
+ int n;
|
|
+ for(n = 0; n < 4; ++n) {
|
|
+ for(int j = 0; j < 4; ++j) {
|
|
+ int k = (j << 2) + 2;
|
|
+ int l = (n << 2) + 2;
|
|
+ int m = l << 4 | k;
|
|
+ newBiomes[n << 2 | j] = oldBiomes[m];
|
|
+ }
|
|
+ }
|
|
+
|
|
+ for(n = 1; n < 64; ++n) {
|
|
+ System.arraycopy(newBiomes, 0, newBiomes, n * 16, 16);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2209.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2209.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..6054cd31cb2e140f05b92736405a7d073be5cf5c
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2209.java
|
|
@@ -0,0 +1,26 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.poi.ConverterAbstractPOIRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V2209 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V19W40A + 1;
|
|
+
|
|
+ private V2209() {}
|
|
+
|
|
+ public static void register() {
|
|
+ final Map<String, String> renamedIds = ImmutableMap.of(
|
|
+ "minecraft:bee_hive", "minecraft:beehive"
|
|
+ );
|
|
+
|
|
+ ConverterAbstractBlockRename.register(VERSION, renamedIds::get);
|
|
+ ConverterAbstractItemRename.register(VERSION, renamedIds::get);
|
|
+ ConverterAbstractPOIRename.register(VERSION, renamedIds::get);
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2211.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2211.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..6cff6d723616e0a38811872f7b5d28799240ddfe
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2211.java
|
|
@@ -0,0 +1,32 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+
|
|
+public final class V2211 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V19W41A + 1;
|
|
+
|
|
+ private V2211() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.STRUCTURE_FEATURE.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (!data.hasKey("references", ObjectType.NUMBER)) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final int references = data.getInt("references");
|
|
+ if (references <= 0) {
|
|
+ data.setInt("references", 1);
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2218.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2218.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..e06a98a01086c9d6eb9fc80a151f0403247b0033
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2218.java
|
|
@@ -0,0 +1,33 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V2218 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_15_PRE1;
|
|
+
|
|
+ private V2218() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.POI_CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> sections = data.getMap("Sections");
|
|
+ if (sections == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (final String key : sections.keys()) {
|
|
+ final MapType<String> section = sections.getMap(key);
|
|
+
|
|
+ section.remove("Valid");
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2501.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2501.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..c8901f95e1076ae8be220c03efd83ce9bd18d2a8
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2501.java
|
|
@@ -0,0 +1,65 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V2501 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_15_2 + 271;
|
|
+
|
|
+ private V2501() {}
|
|
+
|
|
+ private static void registerFurnace(final String id) {
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, id, (data, fromVersion, toVersion) -> {
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "Items", fromVersion, toVersion);
|
|
+
|
|
+ WalkerUtils.convertKeys(MCTypeRegistry.RECIPE, data, "RecipesUsed", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ final DataConverter<MapType<String>, MapType<String>> converter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final int recipesUsedSize = data.getInt("RecipesUsedSize");
|
|
+ data.remove("RecipesUsedSize");
|
|
+
|
|
+ if (recipesUsedSize <= 0) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> newRecipes = Types.NBT.createEmptyMap();
|
|
+ data.setMap("RecipesUsed", newRecipes);
|
|
+
|
|
+ for (int i = 0; i < recipesUsedSize; ++i) {
|
|
+ final String recipeKey = data.getString("RecipeLocation" + i);
|
|
+ data.remove("RecipeLocation" + i);
|
|
+ final int recipeAmount = data.getInt("RecipeAmount" + i);
|
|
+ data.remove("RecipeAmount" + i);
|
|
+
|
|
+ if (i <= 0 || recipeKey == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ newRecipes.setInt(recipeKey, recipeAmount);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:furnace", converter);
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:blast_furnace", converter);
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:smoker", converter);
|
|
+
|
|
+ registerFurnace("minecraft:furnace");
|
|
+ registerFurnace("minecraft:smoker");
|
|
+ registerFurnace("minecraft:blast_furnace");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2502.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2502.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..7075f7beb8aacfdadd68f4353d2cf32edaa1905d
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2502.java
|
|
@@ -0,0 +1,20 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+
|
|
+public final class V2502 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_15_2 + 272;
|
|
+
|
|
+ private V2502() {}
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ registerMob("minecraft:hoglin");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2503.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2503.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..cd1bca807236b917244bbacd8df6f25fd3c42407
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2503.java
|
|
@@ -0,0 +1,67 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.advancements.ConverterAbstractAdvancementsRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import com.google.common.collect.ImmutableSet;
|
|
+import java.util.Set;
|
|
+
|
|
+public final class V2503 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_15_2 + 273;
|
|
+
|
|
+ private static final Set<String> WALL_BLOCKS = ImmutableSet.of(
|
|
+ "minecraft:andesite_wall",
|
|
+ "minecraft:brick_wall",
|
|
+ "minecraft:cobblestone_wall",
|
|
+ "minecraft:diorite_wall",
|
|
+ "minecraft:end_stone_brick_wall",
|
|
+ "minecraft:granite_wall",
|
|
+ "minecraft:mossy_cobblestone_wall",
|
|
+ "minecraft:mossy_stone_brick_wall",
|
|
+ "minecraft:nether_brick_wall",
|
|
+ "minecraft:prismarine_wall",
|
|
+ "minecraft:red_nether_brick_wall",
|
|
+ "minecraft:red_sandstone_wall",
|
|
+ "minecraft:sandstone_wall",
|
|
+ "minecraft:stone_brick_wall"
|
|
+ );
|
|
+
|
|
+ private V2503() {}
|
|
+
|
|
+ private static void changeWallProperty(final MapType<String> properties, final String path) {
|
|
+ final String property = properties.getString(path);
|
|
+ if (property != null) {
|
|
+ properties.setString(path, "true".equals(property) ? "low" : "none");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.BLOCK_STATE.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (!WALL_BLOCKS.contains(data.getString("Name"))) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> properties = data.getMap("Properties");
|
|
+ if (properties == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ changeWallProperty(properties, "east");
|
|
+ changeWallProperty(properties, "west");
|
|
+ changeWallProperty(properties, "north");
|
|
+ changeWallProperty(properties, "south");
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ ConverterAbstractAdvancementsRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:recipes/misc/composter", "minecraft:recipes/decorations/composter"
|
|
+ )::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2505.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2505.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..350f5cca06d2a864b5a3cc028753fd6489a28ad5
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2505.java
|
|
@@ -0,0 +1,49 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V2505 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W06A + 1;
|
|
+
|
|
+ private V2505() {}
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:villager", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> brain = data.getMap("Brain");
|
|
+ if (brain == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> memories = brain.getMap("memories");
|
|
+ if (memories == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (final String key : memories.keys()) {
|
|
+ final Object value = memories.getGeneric(key);
|
|
+
|
|
+ final MapType<String> wrapped = Types.NBT.createEmptyMap();
|
|
+ wrapped.setGeneric("value", value);
|
|
+
|
|
+ memories.setMap(key, wrapped);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ registerMob("minecraft:piglin");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2508.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2508.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..8cfd380e870ceea4892b8cd7bf855a6e5dc8cc6f
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2508.java
|
|
@@ -0,0 +1,24 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V2508 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W08A + 1;
|
|
+
|
|
+ private V2508() {}
|
|
+
|
|
+ public static void register() {
|
|
+ final Map<String, String> remap = ImmutableMap.of(
|
|
+ "minecraft:warped_fungi", "minecraft:warped_fungus",
|
|
+ "minecraft:crimson_fungi", "minecraft:crimson_fungus"
|
|
+ );
|
|
+
|
|
+ ConverterAbstractBlockRename.register(VERSION, remap::get);
|
|
+ ConverterAbstractItemRename.register(VERSION, remap::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2509.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2509.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..1fa93dec8a81719a19c0f7db589778935ce44d56
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2509.java
|
|
@@ -0,0 +1,30 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.entity.ConverterAbstractEntityRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2509 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W08A + 2;
|
|
+
|
|
+ private V2509() {}
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractItemRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:zombie_pigman_spawn_egg", "minecraft:zombified_piglin_spawn_egg"
|
|
+ )::get);
|
|
+ ConverterAbstractEntityRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:zombie_pigman", "minecraft:zombified_piglin"
|
|
+ )::get);
|
|
+
|
|
+ registerMob("minecraft:zombified_piglin");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2511.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2511.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..183ab7ed77e30bf87e71e5f682a59fc3a64a7672
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2511.java
|
|
@@ -0,0 +1,97 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItems;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V2511 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W09A + 1;
|
|
+
|
|
+ private V2511() {}
|
|
+
|
|
+ private static int[] createUUIDArray(final long most, final long least) {
|
|
+ return new int[] {
|
|
+ (int)(most >>> 32),
|
|
+ (int)most,
|
|
+ (int)(least >>> 32),
|
|
+ (int)least
|
|
+ };
|
|
+ }
|
|
+
|
|
+ private static void setUUID(final MapType<String> data, final long most, final long least) {
|
|
+ if (most != 0L && least != 0L) {
|
|
+ data.setInts("OwnerUUID", createUUIDArray(most, least));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ final DataConverter<MapType<String>, MapType<String>> throwableConverter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> owner = data.getMap("owner");
|
|
+ data.remove("owner");
|
|
+ if (owner == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ setUUID(data, owner.getLong("M"), owner.getLong("L"));
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+ final DataConverter<MapType<String>, MapType<String>> potionConverter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> potion = data.getMap("Potion");
|
|
+ data.remove("Potion");
|
|
+
|
|
+ data.setMap("Item", potion == null ? Types.NBT.createEmptyMap() : potion);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+ final DataConverter<MapType<String>, MapType<String>> llamaSpitConverter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> owner = data.getMap("Owner");
|
|
+ data.remove("Owner");
|
|
+ if (owner == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ setUUID(data, owner.getLong("OwnerUUIDMost"), owner.getLong("OwnerUUIDLeast"));
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+ final DataConverter<MapType<String>, MapType<String>> arrowConverter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ setUUID(data, data.getLong("OwnerUUIDMost"), data.getLong("OwnerUUIDLeast"));
|
|
+
|
|
+ data.remove("OwnerUUIDMost");
|
|
+ data.remove("OwnerUUIDLeast");
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:egg", throwableConverter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:ender_pearl", throwableConverter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:experience_bottle", throwableConverter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:snowball", throwableConverter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:potion", throwableConverter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:potion", potionConverter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:llama_spit", llamaSpitConverter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:arrow", arrowConverter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:spectral_arrow", arrowConverter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:trident", arrowConverter);
|
|
+
|
|
+ // Vanilla migrates the potion item but does not change the schema.
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:potion", new DataWalkerItems("Item"));
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2514.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2514.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..d494fac0900f61e60c01617e631a0431bbda9438
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2514.java
|
|
@@ -0,0 +1,590 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+import com.google.common.collect.Sets;
|
|
+import java.util.Set;
|
|
+import java.util.UUID;
|
|
+
|
|
+public final class V2514 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W11A + 1;
|
|
+
|
|
+ private static final Set<String> ABSTRACT_HORSES = Sets.newHashSet();
|
|
+ private static final Set<String> TAMEABLE_ANIMALS = Sets.newHashSet();
|
|
+ private static final Set<String> ANIMALS = Sets.newHashSet();
|
|
+ private static final Set<String> MOBS = Sets.newHashSet();
|
|
+ private static final Set<String> LIVING_ENTITIES = Sets.newHashSet();
|
|
+ private static final Set<String> PROJECTILES = Sets.newHashSet();
|
|
+ static {
|
|
+ ABSTRACT_HORSES.add("minecraft:donkey");
|
|
+ ABSTRACT_HORSES.add("minecraft:horse");
|
|
+ ABSTRACT_HORSES.add("minecraft:llama");
|
|
+ ABSTRACT_HORSES.add("minecraft:mule");
|
|
+ ABSTRACT_HORSES.add("minecraft:skeleton_horse");
|
|
+ ABSTRACT_HORSES.add("minecraft:trader_llama");
|
|
+ ABSTRACT_HORSES.add("minecraft:zombie_horse");
|
|
+
|
|
+ TAMEABLE_ANIMALS.add("minecraft:cat");
|
|
+ TAMEABLE_ANIMALS.add("minecraft:parrot");
|
|
+ TAMEABLE_ANIMALS.add("minecraft:wolf");
|
|
+
|
|
+ ANIMALS.add("minecraft:bee");
|
|
+ ANIMALS.add("minecraft:chicken");
|
|
+ ANIMALS.add("minecraft:cow");
|
|
+ ANIMALS.add("minecraft:fox");
|
|
+ ANIMALS.add("minecraft:mooshroom");
|
|
+ ANIMALS.add("minecraft:ocelot");
|
|
+ ANIMALS.add("minecraft:panda");
|
|
+ ANIMALS.add("minecraft:pig");
|
|
+ ANIMALS.add("minecraft:polar_bear");
|
|
+ ANIMALS.add("minecraft:rabbit");
|
|
+ ANIMALS.add("minecraft:sheep");
|
|
+ ANIMALS.add("minecraft:turtle");
|
|
+ ANIMALS.add("minecraft:hoglin");
|
|
+
|
|
+ MOBS.add("minecraft:bat");
|
|
+ MOBS.add("minecraft:blaze");
|
|
+ MOBS.add("minecraft:cave_spider");
|
|
+ MOBS.add("minecraft:cod");
|
|
+ MOBS.add("minecraft:creeper");
|
|
+ MOBS.add("minecraft:dolphin");
|
|
+ MOBS.add("minecraft:drowned");
|
|
+ MOBS.add("minecraft:elder_guardian");
|
|
+ MOBS.add("minecraft:ender_dragon");
|
|
+ MOBS.add("minecraft:enderman");
|
|
+ MOBS.add("minecraft:endermite");
|
|
+ MOBS.add("minecraft:evoker");
|
|
+ MOBS.add("minecraft:ghast");
|
|
+ MOBS.add("minecraft:giant");
|
|
+ MOBS.add("minecraft:guardian");
|
|
+ MOBS.add("minecraft:husk");
|
|
+ MOBS.add("minecraft:illusioner");
|
|
+ MOBS.add("minecraft:magma_cube");
|
|
+ MOBS.add("minecraft:pufferfish");
|
|
+ MOBS.add("minecraft:zombified_piglin");
|
|
+ MOBS.add("minecraft:salmon");
|
|
+ MOBS.add("minecraft:shulker");
|
|
+ MOBS.add("minecraft:silverfish");
|
|
+ MOBS.add("minecraft:skeleton");
|
|
+ MOBS.add("minecraft:slime");
|
|
+ MOBS.add("minecraft:snow_golem");
|
|
+ MOBS.add("minecraft:spider");
|
|
+ MOBS.add("minecraft:squid");
|
|
+ MOBS.add("minecraft:stray");
|
|
+ MOBS.add("minecraft:tropical_fish");
|
|
+ MOBS.add("minecraft:vex");
|
|
+ MOBS.add("minecraft:villager");
|
|
+ MOBS.add("minecraft:iron_golem");
|
|
+ MOBS.add("minecraft:vindicator");
|
|
+ MOBS.add("minecraft:pillager");
|
|
+ MOBS.add("minecraft:wandering_trader");
|
|
+ MOBS.add("minecraft:witch");
|
|
+ MOBS.add("minecraft:wither");
|
|
+ MOBS.add("minecraft:wither_skeleton");
|
|
+ MOBS.add("minecraft:zombie");
|
|
+ MOBS.add("minecraft:zombie_villager");
|
|
+ MOBS.add("minecraft:phantom");
|
|
+ MOBS.add("minecraft:ravager");
|
|
+ MOBS.add("minecraft:piglin");
|
|
+
|
|
+ LIVING_ENTITIES.add("minecraft:armor_stand");
|
|
+
|
|
+ PROJECTILES.add("minecraft:arrow");
|
|
+ PROJECTILES.add("minecraft:dragon_fireball");
|
|
+ PROJECTILES.add("minecraft:firework_rocket");
|
|
+ PROJECTILES.add("minecraft:fireball");
|
|
+ PROJECTILES.add("minecraft:llama_spit");
|
|
+ PROJECTILES.add("minecraft:small_fireball");
|
|
+ PROJECTILES.add("minecraft:snowball");
|
|
+ PROJECTILES.add("minecraft:spectral_arrow");
|
|
+ PROJECTILES.add("minecraft:egg");
|
|
+ PROJECTILES.add("minecraft:ender_pearl");
|
|
+ PROJECTILES.add("minecraft:experience_bottle");
|
|
+ PROJECTILES.add("minecraft:potion");
|
|
+ PROJECTILES.add("minecraft:trident");
|
|
+ PROJECTILES.add("minecraft:wither_skull");
|
|
+ }
|
|
+
|
|
+ static int[] createUUIDArray(final long most, final long least) {
|
|
+ return new int[] {
|
|
+ (int)(most >>> 32),
|
|
+ (int)most,
|
|
+ (int)(least >>> 32),
|
|
+ (int)least
|
|
+ };
|
|
+ }
|
|
+
|
|
+ static int[] createUUIDFromString(final MapType<String> data, final String path) {
|
|
+ if (data == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String uuidString = data.getString(path);
|
|
+ if (uuidString == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ try {
|
|
+ final UUID uuid = UUID.fromString(uuidString);
|
|
+ return createUUIDArray(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());
|
|
+ } catch (final IllegalArgumentException ignore) {
|
|
+ return null;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ static int[] createUUIDFromLongs(final MapType<String> data, final String most, final String least) {
|
|
+ if (data == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final long mostBits = data.getLong(most);
|
|
+ final long leastBits = data.getLong(least);
|
|
+
|
|
+ return (mostBits != 0 || leastBits != 0) ? createUUIDArray(mostBits, leastBits) : null;
|
|
+ }
|
|
+
|
|
+ static void replaceUUIDString(final MapType<String> data, final String oldPath, final String newPath) {
|
|
+ final int[] newUUID = createUUIDFromString(data, oldPath);
|
|
+ if (newUUID != null) {
|
|
+ data.remove(oldPath);
|
|
+ data.setInts(newPath, newUUID);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ static void replaceUUIDMLTag(final MapType<String> data, final String oldPath, final String newPath) {
|
|
+ final int[] uuid = createUUIDFromLongs(data.getMap(oldPath), "M", "L");
|
|
+ if (uuid != null) {
|
|
+ data.remove(oldPath);
|
|
+ data.setInts(newPath, uuid);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ static void replaceUUIDLeastMost(final MapType<String> data, final String prefix, final String newPath) {
|
|
+ final String mostPath = prefix.concat("Most");
|
|
+ final String leastPath = prefix.concat("Least");
|
|
+
|
|
+ final int[] uuid = createUUIDFromLongs(data, mostPath, leastPath);
|
|
+ if (uuid != null) {
|
|
+ data.remove(mostPath);
|
|
+ data.remove(leastPath);
|
|
+ data.setInts(newPath, uuid);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private V2514() {}
|
|
+
|
|
+ private static void updatePiglin(final MapType<String> data) {
|
|
+ final MapType<String> brain = data.getMap("Brain");
|
|
+ if (brain == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final MapType<String> memories = brain.getMap("memories");
|
|
+ if (memories == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final MapType<String> angryAt = memories.getMap("minecraft:angry_at");
|
|
+
|
|
+ replaceUUIDString(angryAt, "value", "value");
|
|
+ }
|
|
+
|
|
+ private static void updateEvokerFangs(final MapType<String> data) {
|
|
+ replaceUUIDLeastMost(data, "OwnerUUID", "Owner");
|
|
+ }
|
|
+
|
|
+ private static void updateZombieVillager(final MapType<String> data) {
|
|
+ replaceUUIDLeastMost(data, "ConversionPlayer", "ConversionPlayer");
|
|
+ }
|
|
+
|
|
+ private static void updateAreaEffectCloud(final MapType<String> data) {
|
|
+ replaceUUIDLeastMost(data, "OwnerUUID", "Owner");
|
|
+ }
|
|
+
|
|
+ private static void updateShulkerBullet(final MapType<String> data) {
|
|
+ replaceUUIDMLTag(data, "Owner", "Owner");
|
|
+ replaceUUIDMLTag(data, "Target", "Target");
|
|
+ }
|
|
+
|
|
+ private static void updateItem(final MapType<String> data) {
|
|
+ replaceUUIDMLTag(data, "Owner", "Owner");
|
|
+ replaceUUIDMLTag(data, "Thrower", "Thrower");
|
|
+ }
|
|
+
|
|
+ private static void updateFox(final MapType<String> data) {
|
|
+ final ListType trustedUUIDS = data.getList("TrustedUUIDs", ObjectType.MAP);
|
|
+ if (trustedUUIDS == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final ListType newUUIDs = Types.NBT.createEmptyList();
|
|
+ data.remove("TrustedUUIDs");
|
|
+ data.setList("Trusted", newUUIDs);
|
|
+
|
|
+ for (int i = 0, len = trustedUUIDS.size(); i < len; ++i) {
|
|
+ final MapType<String> uuid = trustedUUIDS.getMap(i);
|
|
+ final int[] newUUID = createUUIDFromLongs(uuid, "M", "L");
|
|
+ if (newUUID != null) {
|
|
+ newUUIDs.addIntArray(newUUID);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static void updateHurtBy(final MapType<String> data) {
|
|
+ replaceUUIDString(data, "HurtBy", "HurtBy");
|
|
+ }
|
|
+
|
|
+ private static void updateAnimalOwner(final MapType<String> data) {
|
|
+ updateAnimal(data);
|
|
+
|
|
+ replaceUUIDString(data, "OwnerUUID", "Owner");
|
|
+ }
|
|
+
|
|
+ private static void updateAnimal(final MapType<String> data) {
|
|
+ updateMob(data);
|
|
+
|
|
+ replaceUUIDLeastMost(data, "LoveCause", "LoveCause");
|
|
+ }
|
|
+
|
|
+ private static void updateMob(final MapType<String> data) {
|
|
+ updateLivingEntity(data);
|
|
+
|
|
+ final MapType<String> leash = data.getMap("Leash");
|
|
+ if (leash == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ replaceUUIDLeastMost(leash, "UUID", "UUID");
|
|
+ }
|
|
+
|
|
+ private static void updateLivingEntity(final MapType<String> data) {
|
|
+ final ListType attributes = data.getList("Attributes", ObjectType.MAP);
|
|
+ if (attributes == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = attributes.size(); i < len; ++i) {
|
|
+ final MapType<String> attribute = attributes.getMap(i);
|
|
+
|
|
+ final ListType modifiers = attribute.getList("Modifiers", ObjectType.MAP);
|
|
+ if (modifiers == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ for (int k = 0; k < modifiers.size(); ++k) {
|
|
+ replaceUUIDLeastMost(modifiers.getMap(k), "UUID", "UUID");
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static void updateProjectile(final MapType<String> data) {
|
|
+ final Object ownerUUID = data.getGeneric("OwnerUUID");
|
|
+ if (ownerUUID != null) {
|
|
+ data.remove("OwnerUUID");
|
|
+ data.setGeneric("Owner", ownerUUID);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static void updateEntityUUID(final MapType<String> data) {
|
|
+ replaceUUIDLeastMost(data, "UUID", "UUID");
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ // Entity UUID fixes
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateEntityUUID(data);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ final DataConverter<MapType<String>, MapType<String>> animalOwnerConverter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateAnimalOwner(data);
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+ final DataConverter<MapType<String>, MapType<String>> animalConverter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateAnimal(data);
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+ final DataConverter<MapType<String>, MapType<String>> mobConverter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateMob(data);
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+ final DataConverter<MapType<String>, MapType<String>> livingEntityConverter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateLivingEntity(data);
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+ final DataConverter<MapType<String>, MapType<String>> projectileConverter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateProjectile(data);
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+ for (final String id : ABSTRACT_HORSES) {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId(id, animalOwnerConverter);
|
|
+ }
|
|
+ for (final String id : TAMEABLE_ANIMALS) {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId(id, animalOwnerConverter);
|
|
+ }
|
|
+ for (final String id : ANIMALS) {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId(id, animalConverter);
|
|
+ }
|
|
+ for (final String id : MOBS) {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId(id, mobConverter);
|
|
+ }
|
|
+ for (final String id : LIVING_ENTITIES) {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId(id, livingEntityConverter);
|
|
+ }
|
|
+ for (final String id : PROJECTILES) {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId(id, projectileConverter);
|
|
+ }
|
|
+
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:bee", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateHurtBy(data);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:zombified_piglin", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateHurtBy(data);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:fox", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateFox(data);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:item", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateItem(data);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:shulker_bullet", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateShulkerBullet(data);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:area_effect_cloud", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateAreaEffectCloud(data);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:zombie_villager", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateZombieVillager(data);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:evoker_fangs", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateEvokerFangs(data);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:piglin", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updatePiglin(data);
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+
|
|
+ // Update TE
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:conduit", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ replaceUUIDMLTag(data, "target_uuid", "Target");
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:skull", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> owner = data.getMap("Owner");
|
|
+ if (owner == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ data.remove("Owner");
|
|
+
|
|
+ replaceUUIDString(owner, "Id", "Id");
|
|
+
|
|
+ data.setMap("SkullOwner", owner);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ // Player UUID
|
|
+ MCTypeRegistry.PLAYER.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ updateLivingEntity(data);
|
|
+ updateEntityUUID(data);
|
|
+
|
|
+ final MapType<String> rootVehicle = data.getMap("RootVehicle");
|
|
+ if (rootVehicle == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ replaceUUIDLeastMost(rootVehicle, "Attach", "Attach");
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ // Level.dat
|
|
+ MCTypeRegistry.LEVEL.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ replaceUUIDString(data, "WanderingTraderId", "WanderingTraderId");
|
|
+
|
|
+ final MapType<String> dimensionData = data.getMap("DimensionData");
|
|
+ if (dimensionData != null) {
|
|
+ for (final String key : dimensionData.keys()) {
|
|
+ final MapType<String> dimension = dimensionData.getMap(key);
|
|
+
|
|
+ final MapType<String> dragonFight = dimension.getMap("DragonFight");
|
|
+ if (dragonFight == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ replaceUUIDLeastMost(dragonFight, "DragonUUID", "Dragon");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final MapType<String> customBossEvents = data.getMap("CustomBossEvents");
|
|
+ if (customBossEvents != null) {
|
|
+ for (final String key : customBossEvents.keys()) {
|
|
+ final MapType<String> customBossEvent = customBossEvents.getMap(key);
|
|
+
|
|
+ final ListType players = customBossEvent.getList("Players", ObjectType.MAP);
|
|
+ if (players == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final ListType newPlayers = Types.NBT.createEmptyList();
|
|
+ customBossEvent.setList("Players", newPlayers);
|
|
+
|
|
+ for (int i = 0, len = players.size(); i < len; ++i) {
|
|
+ final int[] newUUID = createUUIDFromLongs(players.getMap(i), "M", "L");
|
|
+ if (newUUID != null) {
|
|
+ newPlayers.addIntArray(newUUID);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.SAVED_DATA.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> root, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> data = root.getMap("data");
|
|
+ if (data == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final ListType raids = data.getList("Raids", ObjectType.MAP);
|
|
+ if (raids == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = raids.size(); i < len; ++i) {
|
|
+ final MapType<String> raid = raids.getMap(i);
|
|
+
|
|
+ final ListType heros = raid.getList("HeroesOfTheVillage", ObjectType.MAP);
|
|
+
|
|
+ if (heros == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final ListType newHeros = Types.NBT.createEmptyList();
|
|
+ raid.setList("HeroesOfTheVillage", newHeros);
|
|
+
|
|
+ for (int k = 0, klen = heros.size(); k < klen; ++k) {
|
|
+ final MapType<String> uuidOld = heros.getMap(i);
|
|
+ final int[] uuidNew = createUUIDFromLongs(uuidOld, "UUIDMost", "UUIDLeast");
|
|
+ if (uuidNew != null) {
|
|
+ newHeros.addIntArray(uuidNew);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.ITEM_STACK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ updateAttributeModifiers(tag);
|
|
+
|
|
+ if ("minecraft:player_head".equals(data.getString("id"))) {
|
|
+ updateSkullOwner(tag);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private static void updateAttributeModifiers(final MapType<String> tag) {
|
|
+ final ListType attributes = tag.getList("AttributeModifiers", ObjectType.MAP);
|
|
+ if (attributes == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = attributes.size(); i < len; ++i) {
|
|
+ replaceUUIDLeastMost(attributes.getMap(i), "UUID", "UUID");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static void updateSkullOwner(final MapType<String> tag) {
|
|
+ replaceUUIDString(tag.getMap("SkullOwner"), "Id", "Id");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2516.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2516.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..40bf0a1788520bbf1d66da53b6532bdd8af246f4
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2516.java
|
|
@@ -0,0 +1,37 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+
|
|
+public final class V2516 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W12A + 1;
|
|
+
|
|
+ private V2516() {}
|
|
+
|
|
+ public static void register() {
|
|
+ final DataConverter<MapType<String>, MapType<String>> gossipUUIDConverter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final ListType gossips = data.getList("Gossips", ObjectType.MAP);
|
|
+
|
|
+ if (gossips == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = gossips.size(); i < len; ++i) {
|
|
+ V2514.replaceUUIDLeastMost(gossips.getMap(i), "Target", "Target");
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:villager", gossipUUIDConverter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:zombie_villager", gossipUUIDConverter);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2518.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2518.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..e7a55eeb02fb99289e4c8bfe2d28fc4a0c716719
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2518.java
|
|
@@ -0,0 +1,63 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V2518 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W12A + 3;
|
|
+
|
|
+ private static final Map<String, String> FACING_RENAMES = ImmutableMap.<String, String>builder()
|
|
+ .put("down", "down_south")
|
|
+ .put("up", "up_north")
|
|
+ .put("north", "north_up")
|
|
+ .put("south", "south_up")
|
|
+ .put("west", "west_up")
|
|
+ .put("east", "east_up")
|
|
+ .build();
|
|
+
|
|
+
|
|
+ private V2518() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:jigsaw", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String type = data.getString("attachement_type", "minecraft:empty");
|
|
+ final String pool = data.getString("target_pool", "minecraft:empty");
|
|
+ data.remove("attachement_type");
|
|
+ data.remove("target_pool");
|
|
+
|
|
+ data.setString("name", type);
|
|
+ data.setString("target", type);
|
|
+ data.setString("pool", pool);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.BLOCK_STATE.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (!"minecraft:jigsaw".equals(data.getString("Name"))) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> properties = data.getMap("Properties");
|
|
+ if (properties == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String facing = properties.getString("facing", "north");
|
|
+ properties.remove("facing");
|
|
+ properties.setString("orientation", FACING_RENAMES.getOrDefault(facing, facing));
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2519.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2519.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..47a8bb340e72e48fd237d4001b55c81b1182a72f
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2519.java
|
|
@@ -0,0 +1,20 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+
|
|
+public final class V2519 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W12A + 4;
|
|
+
|
|
+ private V2519() {}
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ registerMob("minecraft:strider");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2522.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2522.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..3a91600427cb013cdfc03b084017b6f32d9e05fa
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2522.java
|
|
@@ -0,0 +1,20 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+
|
|
+public final class V2522 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W13B + 1;
|
|
+
|
|
+ private V2522() {}
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ registerMob("minecraft:zoglin");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2523.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2523.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5d3726bb7670bc89feb8ebeed5c097a77e909f5a
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2523.java
|
|
@@ -0,0 +1,92 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V2523 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W13B + 2;
|
|
+
|
|
+ private static final Map<String, String> RENAMES = ImmutableMap.<String, String>builder()
|
|
+ .put("generic.maxHealth", "generic.max_health")
|
|
+ .put("Max Health", "generic.max_health")
|
|
+ .put("zombie.spawnReinforcements", "zombie.spawn_reinforcements")
|
|
+ .put("Spawn Reinforcements Chance", "zombie.spawn_reinforcements")
|
|
+ .put("horse.jumpStrength", "horse.jump_strength")
|
|
+ .put("Jump Strength", "horse.jump_strength")
|
|
+ .put("generic.followRange", "generic.follow_range")
|
|
+ .put("Follow Range", "generic.follow_range")
|
|
+ .put("generic.knockbackResistance", "generic.knockback_resistance")
|
|
+ .put("Knockback Resistance", "generic.knockback_resistance")
|
|
+ .put("generic.movementSpeed", "generic.movement_speed")
|
|
+ .put("Movement Speed", "generic.movement_speed")
|
|
+ .put("generic.flyingSpeed", "generic.flying_speed")
|
|
+ .put("Flying Speed", "generic.flying_speed")
|
|
+ .put("generic.attackDamage", "generic.attack_damage")
|
|
+ .put("generic.attackKnockback", "generic.attack_knockback")
|
|
+ .put("generic.attackSpeed", "generic.attack_speed")
|
|
+ .put("generic.armorToughness", "generic.armor_toughness")
|
|
+ .build();
|
|
+
|
|
+ private V2523() {}
|
|
+
|
|
+ private static void updateName(final MapType<String> data, final String path) {
|
|
+ if (data == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final String name = data.getString(path);
|
|
+ if (name != null) {
|
|
+ final String renamed = RENAMES.get(name);
|
|
+ if (renamed != null) {
|
|
+ data.setString(path, renamed);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ final DataConverter<MapType<String>, MapType<String>> entityConverter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final ListType attributes = data.getList("Attributes", ObjectType.MAP);
|
|
+
|
|
+ if (attributes == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = attributes.size(); i < len; ++i) {
|
|
+ updateName(attributes.getMap(i), "Name");
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addStructureConverter(entityConverter);
|
|
+ MCTypeRegistry.PLAYER.addStructureConverter(entityConverter);
|
|
+
|
|
+ MCTypeRegistry.ITEM_STACK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final ListType attributes = data.getList("AttributeModifiers", ObjectType.MAP);
|
|
+
|
|
+ if (attributes == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = attributes.size(); i < len; ++i) {
|
|
+ updateName(attributes.getMap(i), "AttributeName");
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2527.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2527.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5e951f91d03f95ed671bb7403592960690c65879
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2527.java
|
|
@@ -0,0 +1,123 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import com.mojang.datafixers.DataFixUtils;
|
|
+import net.minecraft.util.Mth;
|
|
+
|
|
+public final class V2527 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W16A + 1;
|
|
+
|
|
+ private V2527() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final ListType sections = level.getList("Sections", ObjectType.MAP);
|
|
+ if (sections != null) {
|
|
+ for (int i = 0, len = sections.size(); i < len; ++i) {
|
|
+ final MapType<String> section = sections.getMap(i);
|
|
+
|
|
+ final ListType palette = section.getList("Palette", ObjectType.MAP);
|
|
+
|
|
+ if (palette == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final int bits = Math.max(4, DataFixUtils.ceillog2(palette.size()));
|
|
+
|
|
+ if (Mth.isPowerOfTwo(bits)) {
|
|
+ // fits perfectly
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final long[] states = section.getLongs("BlockStates");
|
|
+ if (states == null) {
|
|
+ // wat
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ section.setLongs("BlockStates", addPadding(4096, bits, states));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final MapType<String> heightMaps = level.getMap("Heightmaps");
|
|
+ if (heightMaps != null) {
|
|
+ for (final String key : heightMaps.keys()) {
|
|
+ final long[] old = heightMaps.getLongs(key);
|
|
+ heightMaps.setLongs(key, addPadding(256, 9, old));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ public static long[] addPadding(final int indices, final int bits, final long[] old) {
|
|
+ int k = old.length;
|
|
+ if (k == 0) {
|
|
+ return old;
|
|
+ } else {
|
|
+ long l = (1L << bits) - 1L;
|
|
+ int m = 64 / bits;
|
|
+ int n = (indices + m - 1) / m;
|
|
+ long[] padded = new long[n];
|
|
+ int o = 0;
|
|
+ int p = 0;
|
|
+ long q = 0L;
|
|
+ int r = 0;
|
|
+ long s = old[0];
|
|
+ long t = k > 1 ? old[1] : 0L;
|
|
+
|
|
+ for(int u = 0; u < indices; ++u) {
|
|
+ int v = u * bits;
|
|
+ int w = v >> 6;
|
|
+ int x = (u + 1) * bits - 1 >> 6;
|
|
+ int y = v ^ w << 6;
|
|
+ if (w != r) {
|
|
+ s = t;
|
|
+ t = w + 1 < k ? old[w + 1] : 0L;
|
|
+ r = w;
|
|
+ }
|
|
+
|
|
+ long ab;
|
|
+ int ac;
|
|
+ if (w == x) {
|
|
+ ab = s >>> y & l;
|
|
+ } else {
|
|
+ ac = 64 - y;
|
|
+ ab = (s >>> y | t << ac) & l;
|
|
+ }
|
|
+
|
|
+ ac = p + bits;
|
|
+ if (ac >= 64) {
|
|
+ padded[o++] = q;
|
|
+ q = ab;
|
|
+ p = bits;
|
|
+ } else {
|
|
+ q |= ab << p;
|
|
+ p = ac;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ if (q != 0L) {
|
|
+ padded[o] = q;
|
|
+ }
|
|
+
|
|
+ return padded;
|
|
+ }
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2528.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2528.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..f7f2e3f75a9f8a5533fe010bc23e8384878d7ce8
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2528.java
|
|
@@ -0,0 +1,25 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2528 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W16A + 2;
|
|
+
|
|
+ private V2528() {}
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractItemRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:soul_fire_torch", "minecraft:soul_torch",
|
|
+ "minecraft:soul_fire_lantern", "minecraft:soul_lantern"
|
|
+ )::get);
|
|
+ ConverterAbstractBlockRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:soul_fire_torch", "minecraft:soul_torch",
|
|
+ "minecraft:soul_fire_wall_torch", "minecraft:soul_wall_torch",
|
|
+ "minecraft:soul_fire_lantern", "minecraft:soul_lantern"
|
|
+ )::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2529.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2529.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..f239dbf4beb87efd1fff4e5d8d6f041fa8687f01
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2529.java
|
|
@@ -0,0 +1,25 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V2529 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W17A;
|
|
+
|
|
+ private V2529() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:strider", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (data.getBoolean("NoGravity")) {
|
|
+ data.setBoolean("NoGravity", false);
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2531.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2531.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..7783d75578d29e09029b26c8c8c0b053c5526eb9
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2531.java
|
|
@@ -0,0 +1,63 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V2531 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W17A + 2;
|
|
+
|
|
+ private V2531() {}
|
|
+
|
|
+ private static boolean isConnected(final String facing) {
|
|
+ return !"none".equals(facing);
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.BLOCK_STATE.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (!"minecraft:redstone_wire".equals(data.getString("Name"))) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> properties = data.getMap("Properties");
|
|
+
|
|
+ if (properties == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+
|
|
+ final String east = properties.getString("east", "none");
|
|
+ final String west = properties.getString("west", "none");
|
|
+ final String north = properties.getString("north", "none");
|
|
+ final String south = properties.getString("south", "none");
|
|
+
|
|
+ final boolean connectedX = isConnected(east) || isConnected(west);
|
|
+ final boolean connectedZ = isConnected(north) || isConnected(south);
|
|
+
|
|
+ final String newEast = !isConnected(east) && !connectedZ ? "side" : east;
|
|
+ final String newWest = !isConnected(west) && !connectedZ ? "side" : west;
|
|
+ final String newNorth = !isConnected(north) && !connectedX ? "side" : north;
|
|
+ final String newSouth = !isConnected(south) && !connectedX ? "side" : south;
|
|
+
|
|
+ if (properties.hasKey("east")) {
|
|
+ properties.setString("east", newEast);
|
|
+ }
|
|
+ if (properties.hasKey("west")) {
|
|
+ properties.setString("west", newWest);
|
|
+ }
|
|
+ if (properties.hasKey("north")) {
|
|
+ properties.setString("north", newNorth);
|
|
+ }
|
|
+ if (properties.hasKey("south")) {
|
|
+ properties.setString("south", newSouth);
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2533.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2533.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..ece1cd5afab80a8271b2ebac95dcc0a6239cd42c
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2533.java
|
|
@@ -0,0 +1,43 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+
|
|
+public final class V2533 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W18A + 1;
|
|
+
|
|
+ private V2533() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:villager", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final ListType attributes = data.getList("Attributes", ObjectType.MAP);
|
|
+
|
|
+ if (attributes == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = attributes.size(); i < len; ++i) {
|
|
+ final MapType<String> attribute = attributes.getMap(i);
|
|
+
|
|
+ if (!"generic.follow_range".equals(attribute.getString("Name"))) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ if (attribute.getDouble("Base") == 16.0) {
|
|
+ attribute.setDouble("Base", 48.0);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2535.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2535.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..9648299bb96c20c783bb7c7010173a0f007584e0
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2535.java
|
|
@@ -0,0 +1,34 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+
|
|
+public final class V2535 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W19A + 1;
|
|
+
|
|
+ private V2535() {}
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:shulker", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ // Mojang uses doubles for whatever reason... rotation is in FLOAT. by using double here
|
|
+ // the entity load will just ignore rotation and set it to 0...
|
|
+ final ListType rotation = data.getList("Rotation", ObjectType.FLOAT);
|
|
+
|
|
+ if (rotation == null || rotation.size() == 0) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ rotation.setFloat(0, rotation.getFloat(0) - 180.0F);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2550.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2550.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..b9a50d44982abe228c5e7d58a4b917d0fbfda6b9
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2550.java
|
|
@@ -0,0 +1,342 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import org.apache.commons.lang3.math.NumberUtils;
|
|
+import java.util.HashMap;
|
|
+import java.util.Locale;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V2550 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W20B + 13;
|
|
+
|
|
+ private static final ImmutableMap<String, StructureFeatureConfiguration> DEFAULTS = ImmutableMap.<String, StructureFeatureConfiguration>builder()
|
|
+ .put("minecraft:village", new StructureFeatureConfiguration(32, 8, 10387312))
|
|
+ .put("minecraft:desert_pyramid", new StructureFeatureConfiguration(32, 8, 14357617))
|
|
+ .put("minecraft:igloo", new StructureFeatureConfiguration(32, 8, 14357618))
|
|
+ .put("minecraft:jungle_pyramid", new StructureFeatureConfiguration(32, 8, 14357619))
|
|
+ .put("minecraft:swamp_hut", new StructureFeatureConfiguration(32, 8, 14357620))
|
|
+ .put("minecraft:pillager_outpost", new StructureFeatureConfiguration(32, 8, 165745296))
|
|
+ .put("minecraft:monument", new StructureFeatureConfiguration(32, 5, 10387313))
|
|
+ .put("minecraft:endcity", new StructureFeatureConfiguration(20, 11, 10387313))
|
|
+ .put("minecraft:mansion", new StructureFeatureConfiguration(80, 20, 10387319))
|
|
+ .build();
|
|
+
|
|
+ record StructureFeatureConfiguration(int spacing, int separation, int salt) {
|
|
+
|
|
+ public MapType<String> serialize() {
|
|
+ final MapType<String> ret = Types.NBT.createEmptyMap();
|
|
+
|
|
+ ret.setInt("spacing", this.spacing);
|
|
+ ret.setInt("separation", this.separation);
|
|
+ ret.setInt("salt", this.salt);
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.WORLD_GEN_SETTINGS.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final long seed = data.getLong("RandomSeed");
|
|
+ String generatorName = data.getString("generatorName");
|
|
+ if (generatorName != null) {
|
|
+ generatorName = generatorName.toLowerCase(Locale.ROOT);
|
|
+ }
|
|
+ String legacyCustomOptions = data.getString("legacy_custom_options");
|
|
+ if (legacyCustomOptions == null) {
|
|
+ legacyCustomOptions = "customized".equals(generatorName) ? data.getString("generatorOptions") : null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> generator;
|
|
+ boolean caves = false;
|
|
+
|
|
+ if ("customized".equals(generatorName) || generatorName == null) {
|
|
+ generator = defaultOverworld(seed);
|
|
+ } else {
|
|
+ switch (generatorName) {
|
|
+ case "flat": {
|
|
+ final MapType<String> generatorOptions = data.getMap("generatorOptions");
|
|
+
|
|
+ final MapType<String> structures = fixFlatStructures(generatorOptions);
|
|
+ final MapType<String> settings = Types.NBT.createEmptyMap();
|
|
+ generator = Types.NBT.createEmptyMap();
|
|
+ generator.setString("type", "minecraft:flat");
|
|
+ generator.setMap("settings", settings);
|
|
+
|
|
+ settings.setMap("structures", structures);
|
|
+
|
|
+ ListType layers = generatorOptions.getList("layers", ObjectType.MAP);
|
|
+ if (layers == null) {
|
|
+ layers = Types.NBT.createEmptyList();
|
|
+
|
|
+ final int[] heights = new int[] { 1, 2, 1 };
|
|
+ final String[] blocks = new String[] { "minecraft:bedrock", "minecraft:dirt", "minecraft:grass_block" };
|
|
+ for (int i = 0; i < 3; ++i) {
|
|
+ final MapType<String> layer = Types.NBT.createEmptyMap();
|
|
+ layer.setInt("height", heights[i]);
|
|
+ layer.setString("block", blocks[i]);
|
|
+ layers.addMap(layer);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ settings.setList("layers", layers);
|
|
+ settings.setString("biome", generatorOptions.getString("biome", "minecraft:plains"));
|
|
+
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ case "debug_all_block_states": {
|
|
+ generator = Types.NBT.createEmptyMap();
|
|
+ generator.setString("type", "minecraft:debug");
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ case "buffet": {
|
|
+ final MapType<String> generatorOptions = data.getMap("generatorOptions");
|
|
+ final MapType<String> chunkGenerator = generatorOptions == null ? null : generatorOptions.getMap("chunk_generator");
|
|
+ final String chunkGeneratorType = chunkGenerator == null ? null : chunkGenerator.getString("type");
|
|
+
|
|
+ final String newType;
|
|
+ if ("minecraft:caves".equals(chunkGeneratorType)) {
|
|
+ newType = "minecraft:caves";
|
|
+ caves = true;
|
|
+ } else if ("minecraft:floating_islands".equals(chunkGeneratorType)) {
|
|
+ newType = "minecraft:floating_islands";
|
|
+ } else {
|
|
+ newType = "minecraft:overworld";
|
|
+ }
|
|
+
|
|
+ MapType<String> biomeSource = generatorOptions == null ? null : generatorOptions.getMap("biome_source");
|
|
+ if (biomeSource == null) {
|
|
+ biomeSource = Types.NBT.createEmptyMap();
|
|
+ biomeSource.setString("type", "minecraft:fixed");
|
|
+ }
|
|
+
|
|
+ if ("minecraft:fixed".equals(biomeSource.getString("type"))) {
|
|
+ final MapType<String> options = biomeSource.getMap("options");
|
|
+ final ListType biomes = options == null ? null : options.getList("biomes", ObjectType.STRING);
|
|
+ final String biome = biomes == null || biomes.size() == 0 ? "minecraft:ocean" : biomes.getString(0);
|
|
+ biomeSource.remove("options");
|
|
+ biomeSource.setString("biome", biome);
|
|
+ }
|
|
+
|
|
+ generator = noise(seed, newType, biomeSource);
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ default: {
|
|
+ boolean defaultGen = generatorName.equals("default");
|
|
+ boolean default11Gen = generatorName.equals("default_1_1") || defaultGen && data.getInt("generatorVersion") == 0;
|
|
+ boolean amplified = generatorName.equals("amplified");
|
|
+ boolean largeBiomes = generatorName.equals("largebiomes");
|
|
+
|
|
+ generator = noise(seed, amplified ? "minecraft:amplified" : "minecraft:overworld",
|
|
+ vanillaBiomeSource(seed, default11Gen, largeBiomes));
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final boolean mapFeatures = data.getBoolean("MapFeatures", true);
|
|
+ final boolean bonusChest = data.getBoolean("BonusChest", false);
|
|
+
|
|
+ final MapType<String> ret = Types.NBT.createEmptyMap();
|
|
+
|
|
+ ret.setLong("seed", seed);
|
|
+ ret.setBoolean("generate_features", mapFeatures);
|
|
+ ret.setBoolean("bonus_chest", bonusChest);
|
|
+ ret.setMap("dimensions", vanillaLevels(seed, generator, caves));
|
|
+ if (legacyCustomOptions != null) {
|
|
+ ret.setString("legacy_custom_options", legacyCustomOptions);
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ public static MapType<String> noise(final long seed, final String worldType, final MapType<String> biomeSource) {
|
|
+ final MapType<String> ret = Types.NBT.createEmptyMap();
|
|
+
|
|
+ ret.setString("type", "minecraft:noise");
|
|
+ ret.setMap("biome_source", biomeSource);
|
|
+ ret.setLong("seed", seed);
|
|
+ ret.setString("settings", worldType);
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ public static MapType<String> vanillaBiomeSource(final long seed, final boolean default11Gen, final boolean largeBiomes) {
|
|
+ final MapType<String> ret = Types.NBT.createEmptyMap();
|
|
+
|
|
+ ret.setString("type", "minecraft:vanilla_layered");
|
|
+ ret.setLong("seed", seed);
|
|
+ ret.setBoolean("large_biomes", largeBiomes);
|
|
+ if (default11Gen) {
|
|
+ ret.setBoolean("legacy_biome_init_layer", default11Gen);
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ public static MapType<String> fixFlatStructures(final MapType<String> generatorOptions) {
|
|
+ int distance = 32;
|
|
+ int spread = 3;
|
|
+ int count = 128;
|
|
+ boolean stronghold = false;
|
|
+ final Map<String, StructureFeatureConfiguration> newStructures = new HashMap<>();
|
|
+
|
|
+ if (generatorOptions == null) {
|
|
+ stronghold = true;
|
|
+ newStructures.put("minecraft:village", DEFAULTS.get("minecraft:village"));
|
|
+ }
|
|
+
|
|
+ final MapType<String> oldStructures = generatorOptions == null ? null : generatorOptions.getMap("structures");
|
|
+ if (oldStructures != null) {
|
|
+ for (final String structureName : oldStructures.keys()) {
|
|
+ final MapType<String> structureValues = oldStructures.getMap(structureName);
|
|
+ if (structureValues == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ for (final String structureValueKey : structureValues.keys()) {
|
|
+ final String structureValue = structureValues.getString(structureValueKey);
|
|
+
|
|
+ if ("stronghold".equals(structureName)) {
|
|
+ stronghold = true;
|
|
+ switch (structureValueKey) {
|
|
+ case "distance":
|
|
+ distance = getInt(structureValue, distance, 1);
|
|
+ break;
|
|
+ case "spread":
|
|
+ spread = getInt(structureValue, spread, 1);
|
|
+ break;
|
|
+ case "count":
|
|
+ count = getInt(structureValue, count, 1);
|
|
+ break;
|
|
+ }
|
|
+ } else {
|
|
+ switch (structureValueKey) {
|
|
+ case "distance":
|
|
+ switch (structureName) {
|
|
+ case "village":
|
|
+ setSpacing(newStructures, "minecraft:village", structureValue, 9);
|
|
+ break;
|
|
+ case "biome_1":
|
|
+ setSpacing(newStructures, "minecraft:desert_pyramid", structureValue, 9);
|
|
+ setSpacing(newStructures, "minecraft:igloo", structureValue, 9);
|
|
+ setSpacing(newStructures, "minecraft:jungle_pyramid", structureValue, 9);
|
|
+ setSpacing(newStructures, "minecraft:swamp_hut", structureValue, 9);
|
|
+ setSpacing(newStructures, "minecraft:pillager_outpost", structureValue, 9);
|
|
+ break;
|
|
+ case "endcity":
|
|
+ setSpacing(newStructures, "minecraft:endcity", structureValue, 1);
|
|
+ break;
|
|
+ case "mansion":
|
|
+ setSpacing(newStructures, "minecraft:mansion", structureValue, 1);
|
|
+ break;
|
|
+ default:
|
|
+ break;
|
|
+ }
|
|
+ case "separation":
|
|
+ if ("oceanmonument".equals(structureName)) {
|
|
+ final StructureFeatureConfiguration structure = newStructures.getOrDefault("minecraft:monument", DEFAULTS.get("minecraft:monument"));
|
|
+ final int newSpacing = getInt(structureValue, structure.separation, 1);
|
|
+ newStructures.put("minecraft:monument", new StructureFeatureConfiguration(newSpacing, structure.separation, structure.salt));
|
|
+ }
|
|
+
|
|
+ break;
|
|
+ case "spacing":
|
|
+ if ("oceanmonument".equals(structureName)) {
|
|
+ setSpacing(newStructures, "minecraft:monument", structureValue, 1);
|
|
+ }
|
|
+
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final MapType<String> ret = Types.NBT.createEmptyMap();
|
|
+ final MapType<String> structuresSerialized = Types.NBT.createEmptyMap();
|
|
+ ret.setMap("structures", structuresSerialized);
|
|
+ for (final String key : newStructures.keySet()) {
|
|
+ structuresSerialized.setMap(key, newStructures.get(key).serialize());
|
|
+ }
|
|
+
|
|
+ if (stronghold) {
|
|
+ final MapType<String> strongholdData = Types.NBT.createEmptyMap();
|
|
+ ret.setMap("stronghold", strongholdData);
|
|
+
|
|
+ strongholdData.setInt("distance", distance);
|
|
+ strongholdData.setInt("spread", spread);
|
|
+ strongholdData.setInt("count", count);
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ public static MapType<String> vanillaLevels(final long seed, final MapType<String> generator, final boolean caves) {
|
|
+ final MapType<String> ret = Types.NBT.createEmptyMap();
|
|
+
|
|
+ final MapType<String> overworld = Types.NBT.createEmptyMap();
|
|
+ final MapType<String> nether = Types.NBT.createEmptyMap();
|
|
+ final MapType<String> end = Types.NBT.createEmptyMap();
|
|
+
|
|
+ ret.setMap("minecraft:overworld", overworld);
|
|
+ ret.setMap("minecraft:the_nether", nether);
|
|
+ ret.setMap("minecraft:the_end", end);
|
|
+
|
|
+ // overworld
|
|
+ overworld.setString("type", caves ? "minecraft:overworld_caves" : "minecraft:overworld");
|
|
+ overworld.setMap("generator", generator);
|
|
+
|
|
+ // nether
|
|
+ nether.setString("type", "minecraft:the_nether");
|
|
+ final MapType<String> netherBiomeSource = Types.NBT.createEmptyMap();
|
|
+ netherBiomeSource.setString("type", "minecraft:multi_noise");
|
|
+ netherBiomeSource.setLong("seed", seed);
|
|
+ netherBiomeSource.setString("preset", "minecraft:nether");
|
|
+
|
|
+ nether.setMap("generator", noise(seed, "minecraft:nether", netherBiomeSource));
|
|
+
|
|
+ // end
|
|
+ end.setString("type", "minecraft:the_end");
|
|
+ final MapType<String> endBiomeSource = Types.NBT.createEmptyMap();
|
|
+ endBiomeSource.setString("type", "minecraft:the_end");
|
|
+ endBiomeSource.setLong("seed", seed);
|
|
+ end.setMap("generator", noise(seed,"minecraft:end", endBiomeSource));
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ public static MapType<String> defaultOverworld(final long seed) {
|
|
+ return noise(seed, "minecraft:overworld", vanillaBiomeSource(seed, false, false));
|
|
+ }
|
|
+
|
|
+ private static int getInt(final String value, final int dfl) {
|
|
+ return NumberUtils.toInt(value, dfl);
|
|
+ }
|
|
+
|
|
+ private static int getInt(final String value, final int dfl, final int minVal) {
|
|
+ return Math.max(minVal, getInt(value, dfl));
|
|
+ }
|
|
+
|
|
+ private static void setSpacing(final Map<String, StructureFeatureConfiguration> structures, final String structureName,
|
|
+ final String value, final int minVal) {
|
|
+ final StructureFeatureConfiguration structure = structures.getOrDefault(structureName, DEFAULTS.get(structureName));
|
|
+ final int newSpacing = getInt(value, structure.spacing, minVal);
|
|
+
|
|
+ structures.put(structureName, new StructureFeatureConfiguration(newSpacing, structure.separation, structure.salt));
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2551.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2551.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..ac0c4475556fe5202a6aa5724cb47b35c0cc9c00
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2551.java
|
|
@@ -0,0 +1,101 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+
|
|
+public final class V2551 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W20B + 14;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.WORLD_GEN_SETTINGS.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final MapType<String> dimensions = data.getMap("dimensions");
|
|
+
|
|
+ if (dimensions == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (final String dimension : dimensions.keys()) {
|
|
+ final MapType<String> dimensionData = dimensions.getMap(dimension);
|
|
+ if (dimensionData == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final MapType<String> generator = dimensionData.getMap("generator");
|
|
+ if (generator == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String type = generator.getString("type");
|
|
+ if (type == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ switch (type) {
|
|
+ case "minecraft:flat": {
|
|
+ final MapType<String> settings = generator.getMap("settings");
|
|
+ if (settings == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convert(MCTypeRegistry.BIOME, settings, "biome", fromVersion, toVersion);
|
|
+
|
|
+ final ListType layers = settings.getList("layers", ObjectType.MAP);
|
|
+ if (layers != null) {
|
|
+ for (int i = 0, len = layers.size(); i < len; ++i) {
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_NAME, layers.getMap(i), "block", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ break;
|
|
+ }
|
|
+ case "minecraft:noise": {
|
|
+ final MapType<String> settings = generator.getMap("settings");
|
|
+ if (settings != null) {
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_NAME, settings, "default_block", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_NAME, settings, "default_fluid", fromVersion, toVersion);
|
|
+ }
|
|
+
|
|
+ final MapType<String> biomeSource = generator.getMap("biome_source");
|
|
+ if (biomeSource != null) {
|
|
+ final String biomeSourceType = biomeSource.getString("type", "");
|
|
+ switch (biomeSourceType) {
|
|
+ case "minecraft:fixed": {
|
|
+ WalkerUtils.convert(MCTypeRegistry.BIOME, biomeSource, "biome", fromVersion, toVersion);
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ case "minecraft:multi_noise": {
|
|
+ // Vanilla's schema is wrong. It should be DSL.fields("biomes", DSL.list(DSL.fields("biome")))
|
|
+ // But it just contains the list part. That obviously can never be the case, because
|
|
+ // the root object is a compound, not a list.
|
|
+
|
|
+ final ListType biomes = biomeSource.getList("biomes", ObjectType.MAP);
|
|
+ if (biomes != null) {
|
|
+ for (int i = 0, len = biomes.size(); i < len; ++i) {
|
|
+ WalkerUtils.convert(MCTypeRegistry.BIOME, biomes.getMap(i), "biome", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ case "minecraft:checkerboard": {
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BIOME, biomeSource, "biomes", fromVersion, toVersion);
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2552.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2552.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..c06aa2099494f82bad2c1f212b2db07405f8f6ff
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2552.java
|
|
@@ -0,0 +1,20 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.ConverterAbstractStringValueTypeRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2552 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W20B + 15;
|
|
+
|
|
+ private V2552() {}
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractStringValueTypeRename.register(VERSION, MCTypeRegistry.BIOME, ImmutableMap.of(
|
|
+ "minecraft:nether", "minecraft:nether_wastes"
|
|
+ )::get);
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2553.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2553.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..20c57f66e92922a8843887fb032f01c873c45679
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2553.java
|
|
@@ -0,0 +1,75 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.ConverterAbstractStringValueTypeRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V2553 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W20B + 16;
|
|
+
|
|
+ public static final Map<String, String> BIOME_RENAMES = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:extreme_hills", "minecraft:mountains")
|
|
+ .put("minecraft:swampland", "minecraft:swamp")
|
|
+ .put("minecraft:hell", "minecraft:nether_wastes")
|
|
+ .put("minecraft:sky", "minecraft:the_end")
|
|
+ .put("minecraft:ice_flats", "minecraft:snowy_tundra")
|
|
+ .put("minecraft:ice_mountains", "minecraft:snowy_mountains")
|
|
+ .put("minecraft:mushroom_island", "minecraft:mushroom_fields")
|
|
+ .put("minecraft:mushroom_island_shore", "minecraft:mushroom_field_shore")
|
|
+ .put("minecraft:beaches", "minecraft:beach")
|
|
+ .put("minecraft:forest_hills", "minecraft:wooded_hills")
|
|
+ .put("minecraft:smaller_extreme_hills", "minecraft:mountain_edge")
|
|
+ .put("minecraft:stone_beach", "minecraft:stone_shore")
|
|
+ .put("minecraft:cold_beach", "minecraft:snowy_beach")
|
|
+ .put("minecraft:roofed_forest", "minecraft:dark_forest")
|
|
+ .put("minecraft:taiga_cold", "minecraft:snowy_taiga")
|
|
+ .put("minecraft:taiga_cold_hills", "minecraft:snowy_taiga_hills")
|
|
+ .put("minecraft:redwood_taiga", "minecraft:giant_tree_taiga")
|
|
+ .put("minecraft:redwood_taiga_hills", "minecraft:giant_tree_taiga_hills")
|
|
+ .put("minecraft:extreme_hills_with_trees", "minecraft:wooded_mountains")
|
|
+ .put("minecraft:savanna_rock", "minecraft:savanna_plateau")
|
|
+ .put("minecraft:mesa", "minecraft:badlands")
|
|
+ .put("minecraft:mesa_rock", "minecraft:wooded_badlands_plateau")
|
|
+ .put("minecraft:mesa_clear_rock", "minecraft:badlands_plateau")
|
|
+ .put("minecraft:sky_island_low", "minecraft:small_end_islands")
|
|
+ .put("minecraft:sky_island_medium", "minecraft:end_midlands")
|
|
+ .put("minecraft:sky_island_high", "minecraft:end_highlands")
|
|
+ .put("minecraft:sky_island_barren", "minecraft:end_barrens")
|
|
+ .put("minecraft:void", "minecraft:the_void")
|
|
+ .put("minecraft:mutated_plains", "minecraft:sunflower_plains")
|
|
+ .put("minecraft:mutated_desert", "minecraft:desert_lakes")
|
|
+ .put("minecraft:mutated_extreme_hills", "minecraft:gravelly_mountains")
|
|
+ .put("minecraft:mutated_forest", "minecraft:flower_forest")
|
|
+ .put("minecraft:mutated_taiga", "minecraft:taiga_mountains")
|
|
+ .put("minecraft:mutated_swampland", "minecraft:swamp_hills")
|
|
+ .put("minecraft:mutated_ice_flats", "minecraft:ice_spikes")
|
|
+ .put("minecraft:mutated_jungle", "minecraft:modified_jungle")
|
|
+ .put("minecraft:mutated_jungle_edge", "minecraft:modified_jungle_edge")
|
|
+ .put("minecraft:mutated_birch_forest", "minecraft:tall_birch_forest")
|
|
+ .put("minecraft:mutated_birch_forest_hills", "minecraft:tall_birch_hills")
|
|
+ .put("minecraft:mutated_roofed_forest", "minecraft:dark_forest_hills")
|
|
+ .put("minecraft:mutated_taiga_cold", "minecraft:snowy_taiga_mountains")
|
|
+ .put("minecraft:mutated_redwood_taiga", "minecraft:giant_spruce_taiga")
|
|
+ .put("minecraft:mutated_redwood_taiga_hills", "minecraft:giant_spruce_taiga_hills")
|
|
+ .put("minecraft:mutated_extreme_hills_with_trees", "minecraft:modified_gravelly_mountains")
|
|
+ .put("minecraft:mutated_savanna", "minecraft:shattered_savanna")
|
|
+ .put("minecraft:mutated_savanna_rock", "minecraft:shattered_savanna_plateau")
|
|
+ .put("minecraft:mutated_mesa", "minecraft:eroded_badlands")
|
|
+ .put("minecraft:mutated_mesa_rock", "minecraft:modified_wooded_badlands_plateau")
|
|
+ .put("minecraft:mutated_mesa_clear_rock", "minecraft:modified_badlands_plateau")
|
|
+ .put("minecraft:warm_deep_ocean", "minecraft:deep_warm_ocean")
|
|
+ .put("minecraft:lukewarm_deep_ocean", "minecraft:deep_lukewarm_ocean")
|
|
+ .put("minecraft:cold_deep_ocean", "minecraft:deep_cold_ocean")
|
|
+ .put("minecraft:frozen_deep_ocean", "minecraft:deep_frozen_ocean")
|
|
+ .build();
|
|
+
|
|
+
|
|
+ private V2553() {}
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractStringValueTypeRename.register(VERSION, MCTypeRegistry.BIOME, BIOME_RENAMES::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2558.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2558.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..0e228fd642cbca13e8682950b5f0ec4e3e8a4da7
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2558.java
|
|
@@ -0,0 +1,45 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.options.ConverterAbstractOptionsRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2558 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_16_PRE2 + 1;
|
|
+
|
|
+ private V2558() {}
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractOptionsRename.register(VERSION, ImmutableMap.of(
|
|
+ "key_key.swapHands", "key_key.swapOffhand"
|
|
+ )::get);
|
|
+
|
|
+ MCTypeRegistry.WORLD_GEN_SETTINGS.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ MapType<String> dimensions = data.getMap("dimensions");
|
|
+ if (dimensions == null) {
|
|
+ dimensions = Types.NBT.createEmptyMap();
|
|
+ data.setMap("dimensions", dimensions);
|
|
+ }
|
|
+
|
|
+ if (dimensions.isEmpty()) {
|
|
+ data.setMap("dimensions", recreateSettings(data));
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private static MapType<String> recreateSettings(final MapType<String> data) {
|
|
+ final long seed = data.getLong("seed");
|
|
+
|
|
+ return V2550.vanillaLevels(seed, V2550.defaultOverworld(seed), false);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2568.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2568.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5835159d7016fb4f05d137acba709fa7d8e8e752
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2568.java
|
|
@@ -0,0 +1,20 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+
|
|
+public final class V2568 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_16_1 + 1;
|
|
+
|
|
+ private V2568() {}
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ registerMob("minecraft:piglin_brute");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2671.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2671.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..374d24db80f3ed8cd241e18d776c39a8da72d8fd
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2671.java
|
|
@@ -0,0 +1,18 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+
|
|
+public final class V2671 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_16_5 + 85;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ registerMob("minecraft:goat");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2679.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2679.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..6c788f51be0439797bf9fc8711d4cf8e382f5c11
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2679.java
|
|
@@ -0,0 +1,36 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V2679 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_16_5 + 93;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.BLOCK_STATE.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (!"minecraft:cauldron".equals(data.getString("Name"))) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> properties = data.getMap("Properties");
|
|
+
|
|
+ if (properties == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ if (properties.getString("level", "0").equals("0")) {
|
|
+ data.remove("Properties");
|
|
+ return null;
|
|
+ } else {
|
|
+ data.setString("Name", "minecraft:water_cauldron");
|
|
+ return null;
|
|
+ }
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2680.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2680.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..232a28c07c6341a996253282d9872d76b3fce0e3
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2680.java
|
|
@@ -0,0 +1,21 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2680 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_16_5 + 94;
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractItemRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:grass_path", "minecraft:dirt_path"
|
|
+ )::get);
|
|
+ ConverterAbstractBlockRename.registerAndFixJigsaw(VERSION, ImmutableMap.of(
|
|
+ "minecraft:grass_path", "minecraft:dirt_path"
|
|
+ )::get);
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2686.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2686.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..f6a6f33d4f701f4188828994c8e56dea21950366
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2686.java
|
|
@@ -0,0 +1,18 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+
|
|
+public final class V2686 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W49A + 1;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ registerMob("minecraft:axolotl");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2688.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2688.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..2c6450ae2786d05a9eed8c2e8ae03acf5ff3dab4
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2688.java
|
|
@@ -0,0 +1,18 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+
|
|
+public final class V2688 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V20W51A + 1;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ registerMob("minecraft:glow_squid");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2690.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2690.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..1638f04efd4063c23807b29bc226ad33eed27e7b
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2690.java
|
|
@@ -0,0 +1,39 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2690 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W05A;
|
|
+
|
|
+ protected static final ImmutableMap<String, String> RENAMES = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:weathered_copper_block", "minecraft:oxidized_copper_block")
|
|
+ .put("minecraft:semi_weathered_copper_block", "minecraft:weathered_copper_block")
|
|
+ .put("minecraft:lightly_weathered_copper_block", "minecraft:exposed_copper_block")
|
|
+ .put("minecraft:weathered_cut_copper", "minecraft:oxidized_cut_copper")
|
|
+ .put("minecraft:semi_weathered_cut_copper", "minecraft:weathered_cut_copper")
|
|
+ .put("minecraft:lightly_weathered_cut_copper", "minecraft:exposed_cut_copper")
|
|
+ .put("minecraft:weathered_cut_copper_stairs", "minecraft:oxidized_cut_copper_stairs")
|
|
+ .put("minecraft:semi_weathered_cut_copper_stairs", "minecraft:weathered_cut_copper_stairs")
|
|
+ .put("minecraft:lightly_weathered_cut_copper_stairs", "minecraft:exposed_cut_copper_stairs")
|
|
+ .put("minecraft:weathered_cut_copper_slab", "minecraft:oxidized_cut_copper_slab")
|
|
+ .put("minecraft:semi_weathered_cut_copper_slab", "minecraft:weathered_cut_copper_slab")
|
|
+ .put("minecraft:lightly_weathered_cut_copper_slab", "minecraft:exposed_cut_copper_slab")
|
|
+ .put("minecraft:waxed_semi_weathered_copper", "minecraft:waxed_weathered_copper")
|
|
+ .put("minecraft:waxed_lightly_weathered_copper", "minecraft:waxed_exposed_copper")
|
|
+ .put("minecraft:waxed_semi_weathered_cut_copper", "minecraft:waxed_weathered_cut_copper")
|
|
+ .put("minecraft:waxed_lightly_weathered_cut_copper", "minecraft:waxed_exposed_cut_copper")
|
|
+ .put("minecraft:waxed_semi_weathered_cut_copper_stairs", "minecraft:waxed_weathered_cut_copper_stairs")
|
|
+ .put("minecraft:waxed_lightly_weathered_cut_copper_stairs", "minecraft:waxed_exposed_cut_copper_stairs")
|
|
+ .put("minecraft:waxed_semi_weathered_cut_copper_slab", "minecraft:waxed_weathered_cut_copper_slab")
|
|
+ .put("minecraft:waxed_lightly_weathered_cut_copper_slab", "minecraft:waxed_exposed_cut_copper_slab")
|
|
+ .build();
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractItemRename.register(VERSION, RENAMES::get);
|
|
+ ConverterAbstractBlockRename.registerAndFixJigsaw(VERSION, RENAMES::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2691.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2691.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..3841780d52c2e242609fc076efa5902c063b7b48
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2691.java
|
|
@@ -0,0 +1,23 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2691 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W05A + 1;
|
|
+
|
|
+ protected static final ImmutableMap<String, String> RENAMES = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:waxed_copper", "minecraft:waxed_copper_block")
|
|
+ .put("minecraft:oxidized_copper_block", "minecraft:oxidized_copper")
|
|
+ .put("minecraft:weathered_copper_block", "minecraft:weathered_copper")
|
|
+ .put("minecraft:exposed_copper_block", "minecraft:exposed_copper")
|
|
+ .build();
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractItemRename.register(VERSION, RENAMES::get);
|
|
+ ConverterAbstractBlockRename.registerAndFixJigsaw(VERSION, RENAMES::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2693.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2693.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..deac34afe6a3681db9a7630ad6526f71d4dd6e1f
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2693.java
|
|
@@ -0,0 +1,15 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.AddFlagIfAbsent;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+
|
|
+public final class V2693 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W05B + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.WORLD_GEN_SETTINGS.addStructureConverter(new AddFlagIfAbsent(VERSION, "has_increased_height_already", false));
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2696.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2696.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..0094154c1da7cb95120e01bceeb836ca7ab68e25
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2696.java
|
|
@@ -0,0 +1,36 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2696 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W07A + 1;
|
|
+
|
|
+ protected static final ImmutableMap<String, String> RENAMES = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:grimstone", "minecraft:deepslate")
|
|
+ .put("minecraft:grimstone_slab", "minecraft:cobbled_deepslate_slab")
|
|
+ .put("minecraft:grimstone_stairs", "minecraft:cobbled_deepslate_stairs")
|
|
+ .put("minecraft:grimstone_wall", "minecraft:cobbled_deepslate_wall")
|
|
+ .put("minecraft:polished_grimstone", "minecraft:polished_deepslate")
|
|
+ .put("minecraft:polished_grimstone_slab", "minecraft:polished_deepslate_slab")
|
|
+ .put("minecraft:polished_grimstone_stairs", "minecraft:polished_deepslate_stairs")
|
|
+ .put("minecraft:polished_grimstone_wall", "minecraft:polished_deepslate_wall")
|
|
+ .put("minecraft:grimstone_tiles", "minecraft:deepslate_tiles")
|
|
+ .put("minecraft:grimstone_tile_slab", "minecraft:deepslate_tile_slab")
|
|
+ .put("minecraft:grimstone_tile_stairs", "minecraft:deepslate_tile_stairs")
|
|
+ .put("minecraft:grimstone_tile_wall", "minecraft:deepslate_tile_wall")
|
|
+ .put("minecraft:grimstone_bricks", "minecraft:deepslate_bricks")
|
|
+ .put("minecraft:grimstone_brick_slab", "minecraft:deepslate_brick_slab")
|
|
+ .put("minecraft:grimstone_brick_stairs", "minecraft:deepslate_brick_stairs")
|
|
+ .put("minecraft:grimstone_brick_wall", "minecraft:deepslate_brick_wall")
|
|
+ .put("minecraft:chiseled_grimstone", "minecraft:chiseled_deepslate")
|
|
+ .build();
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractItemRename.register(VERSION, RENAMES::get);
|
|
+ ConverterAbstractBlockRename.registerAndFixJigsaw(VERSION, RENAMES::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2700.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2700.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..c37142033061a3e4865686ee64d8f15f040d7d41
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2700.java
|
|
@@ -0,0 +1,17 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2700 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W10A + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractBlockRename.registerAndFixJigsaw(VERSION, ImmutableMap.of(
|
|
+ "minecraft:cave_vines_head", "minecraft:cave_vines",
|
|
+ "minecraft:cave_vines_body", "minecraft:cave_vines_plant"
|
|
+ )::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2701.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2701.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..9d6b03410c4665e19a2a35226d11f77b2cae3bbf
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2701.java
|
|
@@ -0,0 +1,203 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import com.google.common.collect.Sets;
|
|
+import java.util.Set;
|
|
+import java.util.regex.Matcher;
|
|
+import java.util.regex.Pattern;
|
|
+
|
|
+public final class V2701 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W10A + 2;
|
|
+
|
|
+ private static final Pattern INDEX_PATTERN = Pattern.compile("\\[(\\d+)\\]");
|
|
+
|
|
+ private static final Set<String> PIECE_TYPE = Sets.newHashSet(
|
|
+ "minecraft:jigsaw",
|
|
+ "minecraft:nvi",
|
|
+ "minecraft:pcp",
|
|
+ "minecraft:bastionremnant",
|
|
+ "minecraft:runtime"
|
|
+ );
|
|
+ private static final Set<String> FEATURES = Sets.newHashSet(
|
|
+ "minecraft:tree",
|
|
+ "minecraft:flower",
|
|
+ "minecraft:block_pile",
|
|
+ "minecraft:random_patch"
|
|
+ );
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.STRUCTURE_FEATURE.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final ListType children = data.getList("Children", ObjectType.MAP);
|
|
+
|
|
+ if (children == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = children.size(); i < len; ++i) {
|
|
+ final MapType<String> child = children.getMap(i);
|
|
+
|
|
+ if (!PIECE_TYPE.contains(child.getString("id"))) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String poolElement = child.getString("pool_element");
|
|
+ if (!"minecraft:feature_pool_element".equals(poolElement)) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final MapType<String> feature = child.getMap("feature");
|
|
+ if (feature == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String replacement = convertToString(feature);
|
|
+
|
|
+ if (replacement != null) {
|
|
+ child.setString("feature", replacement);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private static String getNestedString(final MapType<String> root, final String... paths) {
|
|
+ if (paths.length == 0) {
|
|
+ throw new IllegalArgumentException("Missing path");
|
|
+ }
|
|
+
|
|
+ Object current = root.getGeneric(paths[0]);
|
|
+
|
|
+ for (int i = 1; i < paths.length; ++i) {
|
|
+ final String path = paths[i];
|
|
+
|
|
+ final Matcher indexMatcher = INDEX_PATTERN.matcher(path);
|
|
+ if (!indexMatcher.matches()) {
|
|
+ current = (current instanceof MapType) ? ((MapType<String>)current).getGeneric(path) : null;
|
|
+ if (current == null) {
|
|
+ break;
|
|
+ }
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final int index = Integer.parseInt(indexMatcher.group(1));
|
|
+ if (!(current instanceof ListType)) {
|
|
+ current = null;
|
|
+ break;
|
|
+ } else {
|
|
+ final ListType list = (ListType)current;
|
|
+ if (index >= 0 && index < list.size()) {
|
|
+ current = list.getGeneric(index);
|
|
+ } else {
|
|
+ current = null;
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return current instanceof String ? (String)current : "";
|
|
+ }
|
|
+
|
|
+ protected static String convertToString(final MapType<String> feature) {
|
|
+ return getReplacement(
|
|
+ getNestedString(feature, "type"),
|
|
+ getNestedString(feature, "name"),
|
|
+ getNestedString(feature, "config", "state_provider", "type"),
|
|
+ getNestedString(feature, "config", "state_provider", "state", "Name"),
|
|
+ getNestedString(feature, "config", "state_provider", "entries", "[0]", "data", "Name"),
|
|
+ getNestedString(feature, "config", "foliage_placer", "type"),
|
|
+ getNestedString(feature, "config", "leaves_provider", "state", "Name")
|
|
+ );
|
|
+ }
|
|
+
|
|
+ private static String getReplacement(final String type, final String name, final String stateType, final String stateName,
|
|
+ final String firstEntryName, final String foliageName, final String leavesName) {
|
|
+ final String actualType;
|
|
+ if (!type.isEmpty()) {
|
|
+ actualType = type;
|
|
+ } else {
|
|
+ if (name.isEmpty()) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ if ("minecraft:normal_tree".equals(name)) {
|
|
+ actualType = "minecraft:tree";
|
|
+ } else {
|
|
+ actualType = name;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ if (FEATURES.contains(actualType)) {
|
|
+ if ("minecraft:random_patch".equals(actualType)) {
|
|
+ if ("minecraft:simple_state_provider".equals(stateType)) {
|
|
+ if ("minecraft:sweet_berry_bush".equals(stateName)) {
|
|
+ return "minecraft:patch_berry_bush";
|
|
+ }
|
|
+
|
|
+ if ("minecraft:cactus".equals(stateName)) {
|
|
+ return "minecraft:patch_cactus";
|
|
+ }
|
|
+ } else if ("minecraft:weighted_state_provider".equals(stateType) && ("minecraft:grass".equals(firstEntryName) || "minecraft:fern".equals(firstEntryName))) {
|
|
+ return "minecraft:patch_taiga_grass";
|
|
+ }
|
|
+ } else if ("minecraft:block_pile".equals(actualType)) {
|
|
+ if (!"minecraft:simple_state_provider".equals(stateType) && !"minecraft:rotated_block_provider".equals(stateType)) {
|
|
+ if ("minecraft:weighted_state_provider".equals(stateType)) {
|
|
+ if ("minecraft:packed_ice".equals(firstEntryName) || "minecraft:blue_ice".equals(firstEntryName)) {
|
|
+ return "minecraft:pile_ice";
|
|
+ }
|
|
+
|
|
+ if ("minecraft:jack_o_lantern".equals(firstEntryName) || "minecraft:pumpkin".equals(firstEntryName)) {
|
|
+ return "minecraft:pile_pumpkin";
|
|
+ }
|
|
+ }
|
|
+ } else {
|
|
+ if ("minecraft:hay_block".equals(stateName)) {
|
|
+ return "minecraft:pile_hay";
|
|
+ }
|
|
+
|
|
+ if ("minecraft:melon".equals(stateName)) {
|
|
+ return "minecraft:pile_melon";
|
|
+ }
|
|
+
|
|
+ if ("minecraft:snow".equals(stateName)) {
|
|
+ return "minecraft:pile_snow";
|
|
+ }
|
|
+ }
|
|
+ } else {
|
|
+ if ("minecraft:flower".equals(actualType)) {
|
|
+ return "minecraft:flower_plain";
|
|
+ }
|
|
+
|
|
+ if ("minecraft:tree".equals(actualType)) {
|
|
+ if ("minecraft:acacia_foliage_placer".equals(foliageName)) {
|
|
+ return "minecraft:acacia";
|
|
+ }
|
|
+
|
|
+ if ("minecraft:blob_foliage_placer".equals(foliageName) && "minecraft:oak_leaves".equals(leavesName)) {
|
|
+ return "minecraft:oak";
|
|
+ }
|
|
+
|
|
+ if ("minecraft:pine_foliage_placer".equals(foliageName)) {
|
|
+ return "minecraft:pine";
|
|
+ }
|
|
+
|
|
+ if ("minecraft:spruce_foliage_placer".equals(foliageName)) {
|
|
+ return "minecraft:spruce";
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2702.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2702.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..53e45b14c05dab35cd5725998458d47e28718075
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2702.java
|
|
@@ -0,0 +1,33 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V2702 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W10A + 3;
|
|
+
|
|
+ public static void register() {
|
|
+ final DataConverter<MapType<String>, MapType<String>> arrowConverter = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (data.hasKey("pickup")) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final boolean player = data.getBoolean("player", true);
|
|
+ data.remove("player");
|
|
+
|
|
+ data.setByte("pickup", player ? (byte)1 : (byte)0);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:arrow", arrowConverter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:spectral_arrow", arrowConverter);
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:trident", arrowConverter);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2707.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2707.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..74c1df97036059b3a5147f7cf94752ef4516a33d
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2707.java
|
|
@@ -0,0 +1,21 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.AddFlagIfAbsent;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+
|
|
+public final class V2707 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W14A + 1;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.WORLD_GEN_SETTINGS.addStructureConverter(new AddFlagIfAbsent(VERSION, "has_increased_height_already", true));
|
|
+
|
|
+ registerMob("minecraft:marker"); // ?????????????
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2710.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2710.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..0d31b10a4f93c0eb8bff66dd062ffb950b2182ec
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2710.java
|
|
@@ -0,0 +1,17 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.stats.ConverterAbstractStatsRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2710 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W15A + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractStatsRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:play_one_minute", "minecraft:play_time"
|
|
+ )::get);
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2717.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2717.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..8678ba95b5abe96b399a310623078f8827dfa0f0
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2717.java
|
|
@@ -0,0 +1,20 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.blockname.ConverterAbstractBlockRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2717 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_17_PRE1 + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ final ImmutableMap<String, String> rename = ImmutableMap.of(
|
|
+ "minecraft:azalea_leaves_flowers", "minecraft:flowering_azalea_leaves"
|
|
+ );
|
|
+ ConverterAbstractItemRename.register(VERSION, rename::get);
|
|
+ ConverterAbstractBlockRename.register(VERSION, rename::get);
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2825.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2825.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..c2d2b7c10e5b988b1111b20b778c475a12bef353
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2825.java
|
|
@@ -0,0 +1,15 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.AddFlagIfAbsent;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+
|
|
+public final class V2825 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_17_1 + 95;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.WORLD_GEN_SETTINGS.addStructureConverter(new AddFlagIfAbsent(VERSION, "has_increased_height_already", false));
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2831.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2831.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..d28ade80499dce882a9a84309a2a0da527fe01a0
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2831.java
|
|
@@ -0,0 +1,69 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V2831 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_17_1 + 101;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.UNTAGGED_SPAWNER.addStructureWalker(VERSION, (final MapType<String> root, final long fromVersion, final long toVersion) -> {
|
|
+ final ListType spawnPotentials = root.getList("SpawnPotentials", ObjectType.MAP);
|
|
+ if (spawnPotentials != null) {
|
|
+ for (int i = 0, len = spawnPotentials.size(); i < len; ++i) {
|
|
+ final MapType<String> spawnPotential = spawnPotentials.getMap(i);
|
|
+
|
|
+ WalkerUtils.convert(MCTypeRegistry.ENTITY, spawnPotential.getMap("data"), "entity", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convert(MCTypeRegistry.ENTITY, root.getMap("SpawnData"), "entity", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.UNTAGGED_SPAWNER.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> root, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> spawnData = root.getMap("SpawnData");
|
|
+ if (spawnData != null) {
|
|
+ final MapType<String> wrapped = Types.NBT.createEmptyMap();
|
|
+ root.setMap("SpawnData", wrapped);
|
|
+
|
|
+ wrapped.setMap("entity", spawnData);
|
|
+ }
|
|
+
|
|
+ final ListType spawnPotentials = root.getList("SpawnPotentials", ObjectType.MAP);
|
|
+ if (spawnPotentials != null) {
|
|
+ for (int i = 0, len = spawnPotentials.size(); i < len; ++i) {
|
|
+ final MapType<String> spawnPotential = spawnPotentials.getMap(i);
|
|
+
|
|
+ // new format of weighted list (SpawnPotentials):
|
|
+ // root.data -> data
|
|
+ // root.weight -> weight
|
|
+
|
|
+ final MapType<String> entity = spawnPotential.getMap("Entity");
|
|
+ final int weight = spawnPotential.getInt("Weight", 1);
|
|
+ spawnPotential.remove("Entity");
|
|
+ spawnPotential.remove("Weight");
|
|
+ spawnPotential.setInt("weight", weight);
|
|
+
|
|
+ final MapType<String> data = Types.NBT.createEmptyMap();
|
|
+ spawnPotential.setMap("data", data);
|
|
+
|
|
+ data.setMap("entity", entity);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2832.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2832.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..b1049823fc2ff1c8183f4664ff4d40da6495f9ee
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2832.java
|
|
@@ -0,0 +1,920 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.RenameHelper;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+import it.unimi.dsi.fastutil.ints.Int2IntLinkedOpenHashMap;
|
|
+import it.unimi.dsi.fastutil.ints.IntIterator;
|
|
+import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
|
|
+import org.apache.commons.lang3.mutable.MutableBoolean;
|
|
+import org.apache.logging.log4j.LogManager;
|
|
+import org.apache.logging.log4j.Logger;
|
|
+import java.util.Arrays;
|
|
+import java.util.BitSet;
|
|
+import java.util.HashSet;
|
|
+import java.util.Set;
|
|
+
|
|
+public final class V2832 {
|
|
+
|
|
+ protected static final Logger LOGGER = LogManager.getLogger();
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_17_1 + 102;
|
|
+
|
|
+ private static final String[] BIOMES_BY_ID = new String[256]; // rip datapacks
|
|
+ static {
|
|
+ BIOMES_BY_ID[0] = "minecraft:ocean";
|
|
+ BIOMES_BY_ID[1] = "minecraft:plains";
|
|
+ BIOMES_BY_ID[2] = "minecraft:desert";
|
|
+ BIOMES_BY_ID[3] = "minecraft:mountains";
|
|
+ BIOMES_BY_ID[4] = "minecraft:forest";
|
|
+ BIOMES_BY_ID[5] = "minecraft:taiga";
|
|
+ BIOMES_BY_ID[6] = "minecraft:swamp";
|
|
+ BIOMES_BY_ID[7] = "minecraft:river";
|
|
+ BIOMES_BY_ID[8] = "minecraft:nether_wastes";
|
|
+ BIOMES_BY_ID[9] = "minecraft:the_end";
|
|
+ BIOMES_BY_ID[10] = "minecraft:frozen_ocean";
|
|
+ BIOMES_BY_ID[11] = "minecraft:frozen_river";
|
|
+ BIOMES_BY_ID[12] = "minecraft:snowy_tundra";
|
|
+ BIOMES_BY_ID[13] = "minecraft:snowy_mountains";
|
|
+ BIOMES_BY_ID[14] = "minecraft:mushroom_fields";
|
|
+ BIOMES_BY_ID[15] = "minecraft:mushroom_field_shore";
|
|
+ BIOMES_BY_ID[16] = "minecraft:beach";
|
|
+ BIOMES_BY_ID[17] = "minecraft:desert_hills";
|
|
+ BIOMES_BY_ID[18] = "minecraft:wooded_hills";
|
|
+ BIOMES_BY_ID[19] = "minecraft:taiga_hills";
|
|
+ BIOMES_BY_ID[20] = "minecraft:mountain_edge";
|
|
+ BIOMES_BY_ID[21] = "minecraft:jungle";
|
|
+ BIOMES_BY_ID[22] = "minecraft:jungle_hills";
|
|
+ BIOMES_BY_ID[23] = "minecraft:jungle_edge";
|
|
+ BIOMES_BY_ID[24] = "minecraft:deep_ocean";
|
|
+ BIOMES_BY_ID[25] = "minecraft:stone_shore";
|
|
+ BIOMES_BY_ID[26] = "minecraft:snowy_beach";
|
|
+ BIOMES_BY_ID[27] = "minecraft:birch_forest";
|
|
+ BIOMES_BY_ID[28] = "minecraft:birch_forest_hills";
|
|
+ BIOMES_BY_ID[29] = "minecraft:dark_forest";
|
|
+ BIOMES_BY_ID[30] = "minecraft:snowy_taiga";
|
|
+ BIOMES_BY_ID[31] = "minecraft:snowy_taiga_hills";
|
|
+ BIOMES_BY_ID[32] = "minecraft:giant_tree_taiga";
|
|
+ BIOMES_BY_ID[33] = "minecraft:giant_tree_taiga_hills";
|
|
+ BIOMES_BY_ID[34] = "minecraft:wooded_mountains";
|
|
+ BIOMES_BY_ID[35] = "minecraft:savanna";
|
|
+ BIOMES_BY_ID[36] = "minecraft:savanna_plateau";
|
|
+ BIOMES_BY_ID[37] = "minecraft:badlands";
|
|
+ BIOMES_BY_ID[38] = "minecraft:wooded_badlands_plateau";
|
|
+ BIOMES_BY_ID[39] = "minecraft:badlands_plateau";
|
|
+ BIOMES_BY_ID[40] = "minecraft:small_end_islands";
|
|
+ BIOMES_BY_ID[41] = "minecraft:end_midlands";
|
|
+ BIOMES_BY_ID[42] = "minecraft:end_highlands";
|
|
+ BIOMES_BY_ID[43] = "minecraft:end_barrens";
|
|
+ BIOMES_BY_ID[44] = "minecraft:warm_ocean";
|
|
+ BIOMES_BY_ID[45] = "minecraft:lukewarm_ocean";
|
|
+ BIOMES_BY_ID[46] = "minecraft:cold_ocean";
|
|
+ BIOMES_BY_ID[47] = "minecraft:deep_warm_ocean";
|
|
+ BIOMES_BY_ID[48] = "minecraft:deep_lukewarm_ocean";
|
|
+ BIOMES_BY_ID[49] = "minecraft:deep_cold_ocean";
|
|
+ BIOMES_BY_ID[50] = "minecraft:deep_frozen_ocean";
|
|
+ BIOMES_BY_ID[127] = "minecraft:the_void";
|
|
+ BIOMES_BY_ID[129] = "minecraft:sunflower_plains";
|
|
+ BIOMES_BY_ID[130] = "minecraft:desert_lakes";
|
|
+ BIOMES_BY_ID[131] = "minecraft:gravelly_mountains";
|
|
+ BIOMES_BY_ID[132] = "minecraft:flower_forest";
|
|
+ BIOMES_BY_ID[133] = "minecraft:taiga_mountains";
|
|
+ BIOMES_BY_ID[134] = "minecraft:swamp_hills";
|
|
+ BIOMES_BY_ID[140] = "minecraft:ice_spikes";
|
|
+ BIOMES_BY_ID[149] = "minecraft:modified_jungle";
|
|
+ BIOMES_BY_ID[151] = "minecraft:modified_jungle_edge";
|
|
+ BIOMES_BY_ID[155] = "minecraft:tall_birch_forest";
|
|
+ BIOMES_BY_ID[156] = "minecraft:tall_birch_hills";
|
|
+ BIOMES_BY_ID[157] = "minecraft:dark_forest_hills";
|
|
+ BIOMES_BY_ID[158] = "minecraft:snowy_taiga_mountains";
|
|
+ BIOMES_BY_ID[160] = "minecraft:giant_spruce_taiga";
|
|
+ BIOMES_BY_ID[161] = "minecraft:giant_spruce_taiga_hills";
|
|
+ BIOMES_BY_ID[162] = "minecraft:modified_gravelly_mountains";
|
|
+ BIOMES_BY_ID[163] = "minecraft:shattered_savanna";
|
|
+ BIOMES_BY_ID[164] = "minecraft:shattered_savanna_plateau";
|
|
+ BIOMES_BY_ID[165] = "minecraft:eroded_badlands";
|
|
+ BIOMES_BY_ID[166] = "minecraft:modified_wooded_badlands_plateau";
|
|
+ BIOMES_BY_ID[167] = "minecraft:modified_badlands_plateau";
|
|
+ BIOMES_BY_ID[168] = "minecraft:bamboo_jungle";
|
|
+ BIOMES_BY_ID[169] = "minecraft:bamboo_jungle_hills";
|
|
+ BIOMES_BY_ID[170] = "minecraft:soul_sand_valley";
|
|
+ BIOMES_BY_ID[171] = "minecraft:crimson_forest";
|
|
+ BIOMES_BY_ID[172] = "minecraft:warped_forest";
|
|
+ BIOMES_BY_ID[173] = "minecraft:basalt_deltas";
|
|
+ BIOMES_BY_ID[174] = "minecraft:dripstone_caves";
|
|
+ BIOMES_BY_ID[175] = "minecraft:lush_caves";
|
|
+ BIOMES_BY_ID[177] = "minecraft:meadow";
|
|
+ BIOMES_BY_ID[178] = "minecraft:grove";
|
|
+ BIOMES_BY_ID[179] = "minecraft:snowy_slopes";
|
|
+ BIOMES_BY_ID[180] = "minecraft:snowcapped_peaks";
|
|
+ BIOMES_BY_ID[181] = "minecraft:lofty_peaks";
|
|
+ BIOMES_BY_ID[182] = "minecraft:stony_peaks";
|
|
+ }
|
|
+
|
|
+ private static final String[] HEIGHTMAP_TYPES = new String[] {
|
|
+ "WORLD_SURFACE_WG",
|
|
+ "WORLD_SURFACE",
|
|
+ "WORLD_SURFACE_IGNORE_SNOW",
|
|
+ "OCEAN_FLOOR_WG",
|
|
+ "OCEAN_FLOOR",
|
|
+ "MOTION_BLOCKING",
|
|
+ "MOTION_BLOCKING_NO_LEAVES"
|
|
+ };
|
|
+
|
|
+ private static final Set<String> STATUS_IS_OR_AFTER_SURFACE = new HashSet<>(Arrays.asList(
|
|
+ "surface",
|
|
+ "carvers",
|
|
+ "liquid_carvers",
|
|
+ "features",
|
|
+ "light",
|
|
+ "spawn",
|
|
+ "heightmaps",
|
|
+ "full"
|
|
+ ));
|
|
+ private static final Set<String> STATUS_IS_OR_AFTER_NOISE = new HashSet<>(Arrays.asList(
|
|
+ "noise",
|
|
+ "surface",
|
|
+ "carvers",
|
|
+ "liquid_carvers",
|
|
+ "features",
|
|
+ "light",
|
|
+ "spawn",
|
|
+ "heightmaps",
|
|
+ "full"
|
|
+ ));
|
|
+ private static final Set<String> BLOCKS_BEFORE_FEATURE_STATUS = new HashSet<>(Arrays.asList(
|
|
+ "minecraft:air",
|
|
+ "minecraft:basalt",
|
|
+ "minecraft:bedrock",
|
|
+ "minecraft:blackstone",
|
|
+ "minecraft:calcite",
|
|
+ "minecraft:cave_air",
|
|
+ "minecraft:coarse_dirt",
|
|
+ "minecraft:crimson_nylium",
|
|
+ "minecraft:dirt",
|
|
+ "minecraft:end_stone",
|
|
+ "minecraft:grass_block",
|
|
+ "minecraft:gravel",
|
|
+ "minecraft:ice",
|
|
+ "minecraft:lava",
|
|
+ "minecraft:mycelium",
|
|
+ "minecraft:nether_wart_block",
|
|
+ "minecraft:netherrack",
|
|
+ "minecraft:orange_terracotta",
|
|
+ "minecraft:packed_ice",
|
|
+ "minecraft:podzol",
|
|
+ "minecraft:powder_snow",
|
|
+ "minecraft:red_sand",
|
|
+ "minecraft:red_sandstone",
|
|
+ "minecraft:sand",
|
|
+ "minecraft:sandstone",
|
|
+ "minecraft:snow_block",
|
|
+ "minecraft:soul_sand",
|
|
+ "minecraft:soul_soil",
|
|
+ "minecraft:stone",
|
|
+ "minecraft:terracotta",
|
|
+ "minecraft:warped_nylium",
|
|
+ "minecraft:warped_wart_block",
|
|
+ "minecraft:water",
|
|
+ "minecraft:white_terracotta"
|
|
+ ));
|
|
+
|
|
+ private static int getObjectsPerValue(final long[] val) {
|
|
+ return (4096 + val.length - 1) / (val.length); // expression is invalid if it returns > 64
|
|
+ }
|
|
+
|
|
+ private static long[] resize(final long[] val, final int oldBitsPerObject, final int newBitsPerObject) {
|
|
+ final long oldMask = (1L << oldBitsPerObject) - 1; // works even if bitsPerObject == 64
|
|
+ final long newMask = (1L << newBitsPerObject) - 1;
|
|
+ final int oldObjectsPerValue = 64 / oldBitsPerObject;
|
|
+ final int newObjectsPerValue = 64 / newBitsPerObject;
|
|
+
|
|
+ if (newBitsPerObject == oldBitsPerObject) {
|
|
+ return val;
|
|
+ }
|
|
+
|
|
+ final int items = 4096;
|
|
+
|
|
+ final long[] ret = new long[(items + newObjectsPerValue - 1) / newObjectsPerValue];
|
|
+
|
|
+ final int expectedSize = ((items + oldObjectsPerValue - 1) / oldObjectsPerValue);
|
|
+ if (val.length != expectedSize) {
|
|
+ throw new IllegalStateException("Expected size: " + expectedSize + ", got: " + val.length);
|
|
+ }
|
|
+
|
|
+ int shift = 0;
|
|
+ int idx = 0;
|
|
+ long newCurr = 0L;
|
|
+
|
|
+ int currItem = 0;
|
|
+ for (int i = 0; i < val.length; ++i) {
|
|
+ final long oldCurr = val[i];
|
|
+
|
|
+ for (int objIdx = 0; currItem < items && objIdx + oldBitsPerObject <= 64; objIdx += oldBitsPerObject, ++currItem) {
|
|
+ final long value = (oldCurr >> objIdx) & oldMask;
|
|
+
|
|
+ if ((value & newMask) != value) {
|
|
+ throw new IllegalStateException("Old data storage has values that cannot be moved into new palette (would erase data)!");
|
|
+ }
|
|
+
|
|
+ newCurr |= value << shift;
|
|
+ shift += newBitsPerObject;
|
|
+
|
|
+ if (shift + newBitsPerObject > 64) { // will next write overflow?
|
|
+ // must move to next idx
|
|
+ ret[idx++] = newCurr;
|
|
+ shift = 0;
|
|
+ newCurr = 0L;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // don't forget to write the last one
|
|
+ if (shift != 0) {
|
|
+ ret[idx] = newCurr;
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ private static void fixLithiumChunks(final MapType<String> data) {
|
|
+ // See https://github.com/CaffeineMC/lithium-fabric/issues/279
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final int chunkX = level.getInt("xPos");
|
|
+ final int chunkZ = level.getInt("zPos");
|
|
+
|
|
+ final ListType sections = level.getList("Sections", ObjectType.MAP);
|
|
+ if (sections == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = sections.size(); i < len; ++i) {
|
|
+ final MapType<String> section = sections.getMap(i);
|
|
+
|
|
+ final int sectionY = section.getInt("Y");
|
|
+
|
|
+ final ListType palette = section.getList("Palette", ObjectType.MAP);
|
|
+ final long[] blockStates = section.getLongs("BlockStates");
|
|
+
|
|
+ if (palette == null || blockStates == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final int expectedBits = Math.max(4, ceilLog2(palette.size()));
|
|
+ final int gotObjectsPerValue = getObjectsPerValue(blockStates);
|
|
+ final int gotBits = 64 / gotObjectsPerValue;
|
|
+
|
|
+ if (expectedBits == gotBits) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ try {
|
|
+ section.setLongs("BlockStates", resize(blockStates, gotBits, expectedBits));
|
|
+ } catch (final Exception ex) {
|
|
+ LOGGER.fatal("Failed to rewrite mismatched palette and data storage for section y: " + sectionY
|
|
+ + " for chunk [" + chunkX + "," + chunkZ + "], palette entries: " + palette.size() + ", data storage size: "
|
|
+ + blockStates.length,
|
|
+ ex
|
|
+ );
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ // See V2551 for the layout of world gen settings
|
|
+ MCTypeRegistry.WORLD_GEN_SETTINGS.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ // converters were added to older versions note whether the world has increased height already or not
|
|
+ final boolean noHeightFlag = !data.hasKey("has_increased_height_already");
|
|
+ final boolean hasIncreasedHeight = data.getBoolean("has_increased_height_already", true);
|
|
+ data.remove("has_increased_height_already");
|
|
+
|
|
+ final MapType<String> dimensions = data.getMap("dimensions");
|
|
+ if (dimensions == null) {
|
|
+ // wat
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ // only care about overworld
|
|
+ final MapType<String> overworld = dimensions.getMap("minecraft:overworld");
|
|
+ if (overworld == null) {
|
|
+ // wat
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> generator = overworld.getMap("generator");
|
|
+ if (generator == null) {
|
|
+ // wat
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final String type = generator.getString("type", "");
|
|
+ switch (type) {
|
|
+ case "minecraft:noise": {
|
|
+ final MapType<String> biomeSource = generator.getMap("biome_source");
|
|
+ final String sourceType = biomeSource.getString("type");
|
|
+
|
|
+ boolean largeBiomes = false;
|
|
+
|
|
+ if ("minecraft:vanilla_layered".equals(sourceType) || (noHeightFlag && "minecraft:multi_noise".equals(sourceType))) {
|
|
+ largeBiomes = biomeSource.getBoolean("large_biomes");
|
|
+
|
|
+ final MapType<String> newBiomeSource = Types.NBT.createEmptyMap();
|
|
+ generator.setMap("biome_source", newBiomeSource);
|
|
+
|
|
+ newBiomeSource.setString("preset", "minecraft:overworld");
|
|
+ newBiomeSource.setString("type", "minecraft:multi_noise");
|
|
+ }
|
|
+
|
|
+ if (largeBiomes) {
|
|
+ if ("minecraft:overworld".equals(generator.getString("settings"))) {
|
|
+ generator.setString("settings", "minecraft:large_biomes");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ break;
|
|
+ }
|
|
+ case "minecraft:flat": {
|
|
+ if (!hasIncreasedHeight) {
|
|
+ final MapType<String> settings = generator.getMap("settings");
|
|
+ if (settings == null) {
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ updateLayers(settings.getList("layers", ObjectType.MAP));
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+ default:
|
|
+ // do nothing
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+
|
|
+ // It looks like DFU will only support worlds in the old height format or the new one, any custom one isn't supported
|
|
+ // and by not supported I mean it will just treat it as the old format... maybe at least throw in that case?
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ // The below covers padPaletteEntries - this was written BEFORE that code was added to the datafixer -
|
|
+ // and this still works, so I'm keeping it. Don't fix what isn't broken.
|
|
+ fixLithiumChunks(data); // See https://github.com/CaffeineMC/lithium-fabric/issues/279
|
|
+
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> context = data.getMap("__context"); // Passed through by ChunkStorage
|
|
+ final String dimension = context == null ? "" : context.getString("dimension", "");
|
|
+ final String generator = context == null ? "" : context.getString("generator", "");
|
|
+ final boolean isOverworld = "minecraft:overworld".equals(dimension);
|
|
+ final int minSection = isOverworld ? -4 : 0;
|
|
+ final MutableBoolean isAlreadyExtended = new MutableBoolean();
|
|
+
|
|
+ final MapType<String>[] newBiomes = createBiomeSections(level, isOverworld, minSection, isAlreadyExtended);
|
|
+ final MapType<String> wrappedEmptyBlockPalette = getEmptyBlockPalette();
|
|
+
|
|
+ ListType sections = level.getList("Sections", ObjectType.MAP);
|
|
+ if (sections == null) {
|
|
+ level.setList("Sections", sections = Types.NBT.createEmptyList());
|
|
+ }
|
|
+
|
|
+ // must update sections for two things:
|
|
+ // 1. the biomes are now stored per section, so we must insert the biomes palette into each section (and create them if they don't exist)
|
|
+ // 2. each section must now have block states (or at least DFU is ensuring they do, but current code does not require)
|
|
+ V2841.SimplePaletteReader bottomSection = null;
|
|
+ final Set<String> allBlocks = new HashSet<>();
|
|
+ final IntOpenHashSet existingSections = new IntOpenHashSet();
|
|
+
|
|
+ for (int i = 0, len = sections.size(); i < len; ++i) {
|
|
+ final MapType<String> section = sections.getMap(i);
|
|
+
|
|
+ final int y = section.getInt("Y");
|
|
+ final int sectionIndex = y - minSection;
|
|
+
|
|
+ existingSections.add(y);
|
|
+
|
|
+ // add in relevant biome section
|
|
+ if (sectionIndex >= 0 && sectionIndex < newBiomes.length) {
|
|
+ // exclude out of bounds sections (i.e the light sections above and below the world)
|
|
+ section.setMap("biomes", newBiomes[sectionIndex]);
|
|
+ }
|
|
+
|
|
+ // update palette
|
|
+ final ListType palette = section.getList("Palette", ObjectType.MAP);
|
|
+ final long[] blockStates = section.getLongs("BlockStates");
|
|
+
|
|
+ section.remove("Palette");
|
|
+ section.remove("BlockStates");
|
|
+
|
|
+ if (palette != null) {
|
|
+ for (int j = 0, len2 = palette.size(); j < len2; ++j) {
|
|
+ allBlocks.add(V2841.getBlockId(palette.getMap(j)));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final MapType<String> palettedContainer;
|
|
+ if (palette != null && blockStates != null) {
|
|
+ // only if both exist, same as DFU, same as legacy chunk loading code
|
|
+ section.setMap("block_states", palettedContainer = wrapPaletteOptimised(palette, blockStates));
|
|
+ } else {
|
|
+ section.setMap("block_states", palettedContainer = wrappedEmptyBlockPalette.copy()); // must write a palette now, copy so that later edits do not edit them all
|
|
+ }
|
|
+
|
|
+ if (section.getInt("Y", Integer.MAX_VALUE) == 0) {
|
|
+ bottomSection = new V2841.SimplePaletteReader(palettedContainer.getList("palette", ObjectType.MAP), palettedContainer.getLongs("data"));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // all existing sections updated, now we must create new sections just for the biomes migration
|
|
+ for (int sectionIndex = 0; sectionIndex < newBiomes.length; ++sectionIndex) {
|
|
+ final int sectionY = sectionIndex + minSection;
|
|
+ if (!existingSections.add(sectionY)) {
|
|
+ // exists already
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final MapType<String> newSection = Types.NBT.createEmptyMap();
|
|
+ sections.addMap(newSection);
|
|
+
|
|
+ newSection.setByte("Y", (byte)sectionY);
|
|
+ // must write a palette now, copy so that later edits do not edit them all
|
|
+ newSection.setMap("block_states", wrappedEmptyBlockPalette.copy());
|
|
+
|
|
+ newSection.setGeneric("biomes", newBiomes[sectionIndex]);
|
|
+ }
|
|
+
|
|
+ // update status so interpolation can take place
|
|
+ predictChunkStatusBeforeSurface(level, allBlocks);
|
|
+
|
|
+ // done with sections, update the rest of the chunk
|
|
+ updateChunkData(level, isOverworld, isAlreadyExtended.getValue(), "minecraft:noise".equals(generator), bottomSection);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.WORLD_GEN_SETTINGS.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final MapType<String> dimensions = data.getMap("dimensions");
|
|
+
|
|
+ if (dimensions == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ for (final String dimension : dimensions.keys()) {
|
|
+ final MapType<String> dimensionData = dimensions.getMap(dimension);
|
|
+ if (dimensionData == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final MapType<String> generator = dimensionData.getMap("generator");
|
|
+ if (generator == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String type = generator.getString("type");
|
|
+ if (type == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ switch (type) {
|
|
+ case "minecraft:flat": {
|
|
+ final MapType<String> settings = generator.getMap("settings");
|
|
+ if (settings == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convert(MCTypeRegistry.BIOME, settings, "biome", fromVersion, toVersion);
|
|
+
|
|
+ final ListType layers = settings.getList("layers", ObjectType.MAP);
|
|
+ if (layers != null) {
|
|
+ for (int i = 0, len = layers.size(); i < len; ++i) {
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_NAME, layers.getMap(i), "block", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ break;
|
|
+ }
|
|
+ case "minecraft:noise": {
|
|
+ final MapType<String> settings = generator.getMap("settings");
|
|
+ if (settings != null) {
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_NAME, settings, "default_block", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_NAME, settings, "default_fluid", fromVersion, toVersion);
|
|
+ }
|
|
+
|
|
+ final MapType<String> biomeSource = generator.getMap("biome_source");
|
|
+ if (biomeSource != null) {
|
|
+ final String biomeSourceType = biomeSource.getString("type", "");
|
|
+ switch (biomeSourceType) {
|
|
+ case "minecraft:fixed": {
|
|
+ WalkerUtils.convert(MCTypeRegistry.BIOME, biomeSource, "biome", fromVersion, toVersion);
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ case "minecraft:multi_noise": {
|
|
+ // preset is absent, no type for namespaced string
|
|
+
|
|
+ // Vanilla's schema is _still_ wrong. It should be DSL.fields("biomes", DSL.list(DSL.fields("biome")))
|
|
+ // But it just contains the list part. That obviously can never be the case, because
|
|
+ // the root object is a compound, not a list.
|
|
+
|
|
+ final ListType biomes = biomeSource.getList("biomes", ObjectType.MAP);
|
|
+ if (biomes != null) {
|
|
+ for (int i = 0, len = biomes.size(); i < len; ++i) {
|
|
+ WalkerUtils.convert(MCTypeRegistry.BIOME, biomes.getMap(i), "biome", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ case "minecraft:checkerboard": {
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BIOME, biomeSource, "biomes", fromVersion, toVersion);
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.CHUNK.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ENTITY, level, "Entities", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.TILE_ENTITY, level, "TileEntities", fromVersion, toVersion);
|
|
+
|
|
+ final ListType tileTicks = level.getList("TileTicks", ObjectType.MAP);
|
|
+ if (tileTicks != null) {
|
|
+ for (int i = 0, len = tileTicks.size(); i < len; ++i) {
|
|
+ final MapType<String> tileTick = tileTicks.getMap(i);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_NAME, tileTick, "i", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final ListType sections = level.getList("Sections", ObjectType.MAP);
|
|
+ if (sections != null) {
|
|
+ for (int i = 0, len = sections.size(); i < len; ++i) {
|
|
+ final MapType<String> section = sections.getMap(i);
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BIOME, section.getMap("biomes"), "palette", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BLOCK_STATE, section.getMap("block_states"), "palette", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertValues(MCTypeRegistry.STRUCTURE_FEATURE, level.getMap("Structures"), "Starts", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private static void predictChunkStatusBeforeSurface(final MapType<String> level, final Set<String> chunkBlocks) {
|
|
+ final String status = level.getString("Status", "empty");
|
|
+ if (STATUS_IS_OR_AFTER_SURFACE.contains(status)) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ chunkBlocks.remove("minecraft:air");
|
|
+ final boolean chunkNotEmpty = !chunkBlocks.isEmpty();
|
|
+ chunkBlocks.removeAll(BLOCKS_BEFORE_FEATURE_STATUS);
|
|
+ final boolean chunkFeatureStatus = !chunkBlocks.isEmpty();
|
|
+
|
|
+ final String update;
|
|
+ if (chunkFeatureStatus) {
|
|
+ update = "liquid_carvers";
|
|
+ } else if (!"noise".equals(status) && !chunkNotEmpty) {
|
|
+ update = "biomes".equals(status) ? "structure_references" : status;
|
|
+ } else {
|
|
+ update = "noise";
|
|
+ }
|
|
+
|
|
+ level.setString("Status", update);
|
|
+ }
|
|
+
|
|
+ private static MapType<String> getEmptyBlockPalette() {
|
|
+ final MapType<String> airBlockState = Types.NBT.createEmptyMap();
|
|
+ airBlockState.setString("Name", "minecraft:air");
|
|
+
|
|
+ final ListType emptyBlockPalette = Types.NBT.createEmptyList();
|
|
+ emptyBlockPalette.addMap(airBlockState);
|
|
+
|
|
+ return V2832.wrapPalette(emptyBlockPalette);
|
|
+ }
|
|
+
|
|
+ private static void shiftUpgradeData(final MapType<String> upgradeData, final int shift) {
|
|
+ if (upgradeData == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final MapType<String> indices = upgradeData.getMap("Indices");
|
|
+ if (indices == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ RenameHelper.renameKeys(indices, (final String input) -> {
|
|
+ return Integer.toString(Integer.parseInt(input) + shift);
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private static void updateChunkData(final MapType<String> level, final boolean wantExtendedHeight, final boolean isAlreadyExtended,
|
|
+ final boolean onNoiseGenerator, final V2841.SimplePaletteReader bottomSection) {
|
|
+ level.remove("Biomes");
|
|
+ if (!wantExtendedHeight) {
|
|
+ padCarvingMasks(level, 16, 0);
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ if (isAlreadyExtended) {
|
|
+ padCarvingMasks(level, 24, 0);
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ offsetHeightmaps(level);
|
|
+ addEmptyListPadding(level, "Lights");
|
|
+ addEmptyListPadding(level, "LiquidsToBeTicked");
|
|
+ addEmptyListPadding(level, "PostProcessing");
|
|
+ addEmptyListPadding(level, "ToBeTicked");
|
|
+ shiftUpgradeData(level.getMap("UpgradeData"), 4); // https://bugs.mojang.com/browse/MC-238076 - fixed now, Mojang fix is identical. No change required.
|
|
+ padCarvingMasks(level, 24, 4);
|
|
+
|
|
+ if (!onNoiseGenerator) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final String status = level.getString("Status");
|
|
+ if (status == null || "empty".equals(status)) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final MapType<String> blendingData = Types.NBT.createEmptyMap();
|
|
+ level.setMap("blending_data", blendingData);
|
|
+
|
|
+ blendingData.setBoolean("old_noise", STATUS_IS_OR_AFTER_NOISE.contains(status));
|
|
+
|
|
+ if (bottomSection == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final BitSet missingBedrock = new BitSet(256);
|
|
+ boolean hasBedrock = status.equals("noise");
|
|
+
|
|
+ for (int z = 0; z <= 15; ++z) {
|
|
+ for (int x = 0; x <= 15; ++x) {
|
|
+ final MapType<String> state = bottomSection.getState(x, 0, z);
|
|
+ final String blockId = V2841.getBlockId(state);
|
|
+ final boolean isBedrock = state != null && "minecraft:bedrock".equals(blockId);
|
|
+ final boolean isAir = state != null && "minecraft:air".equals(blockId);
|
|
+ if (isAir) {
|
|
+ missingBedrock.set((z << 4) | x);
|
|
+ }
|
|
+
|
|
+ hasBedrock |= isBedrock;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ if (hasBedrock && missingBedrock.cardinality() != missingBedrock.size()) {
|
|
+ final String targetStatus = "full".equals(status) ? "heightmaps" : status;
|
|
+
|
|
+ final MapType<String> belowZeroRetrogen = Types.NBT.createEmptyMap();
|
|
+ level.setMap("below_zero_retrogen", belowZeroRetrogen);
|
|
+
|
|
+ belowZeroRetrogen.setString("target_status", targetStatus);
|
|
+ belowZeroRetrogen.setLongs("missing_bedrock", missingBedrock.toLongArray());
|
|
+
|
|
+ level.setString("Status", "empty");
|
|
+ }
|
|
+
|
|
+ level.setBoolean("isLightOn", false);
|
|
+ }
|
|
+
|
|
+ private static void padCarvingMasks(final MapType<String> level, final int newSize, final int offset) {
|
|
+ final MapType<String> carvingMasks = level.getMap("CarvingMasks");
|
|
+ if (carvingMasks == null) {
|
|
+ // if empty, DFU still writes
|
|
+ level.setMap("CarvingMasks", Types.NBT.createEmptyMap());
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ for (final String key : carvingMasks.keys()) {
|
|
+ final long[] old = BitSet.valueOf(carvingMasks.getBytes(key)).toLongArray();
|
|
+ final long[] newVal = new long[64 * newSize];
|
|
+
|
|
+ System.arraycopy(old, 0, newVal, 64 * offset, old.length);
|
|
+
|
|
+ carvingMasks.setLongs(key, newVal); // no CME: key exists already
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static void addEmptyListPadding(final MapType<String> level, final String path) {
|
|
+ ListType list = level.getListUnchecked(path);
|
|
+ if (list != null && list.size() == 24) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ if (list == null) {
|
|
+ // difference from DFU: Don't create the damn thing!
|
|
+ return;
|
|
+ }
|
|
+
|
|
+
|
|
+ // offset the section array to the new format
|
|
+ for (int i = 0; i < 4; ++i) {
|
|
+ // always create new copies, so that modifying one doesn't modify ALL of them!
|
|
+ list.addList(0, Types.NBT.createEmptyList()); // add below
|
|
+ list.addList(Types.NBT.createEmptyList()); // add above
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static void offsetHeightmaps(final MapType<String> level) {
|
|
+ final MapType<String> heightmaps = level.getMap("Heightmaps");
|
|
+ if (heightmaps == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ for (final String key : HEIGHTMAP_TYPES) {
|
|
+ offsetHeightmap(heightmaps.getLongs(key));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static void offsetHeightmap(final long[] heightmap) {
|
|
+ if (heightmap == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ // heightmaps are configured to have 9 bits per value, with 256 total values
|
|
+ // heightmaps are also relative to the lowest position
|
|
+ for (int idx = 0, len = heightmap.length; idx < len; ++idx) {
|
|
+ long curr = heightmap[idx];
|
|
+ long next = 0L;
|
|
+
|
|
+ for (int objIdx = 0; objIdx + 9 <= 64; objIdx += 9) {
|
|
+ final long value = (curr >> objIdx) & 511L;
|
|
+ if (value != 0L) {
|
|
+ final long offset = Math.min(511L, value + 64L);
|
|
+
|
|
+ next |= (offset << objIdx);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ heightmap[idx] = next;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private static MapType<String>[] createBiomeSections(final MapType<String> level, final boolean wantExtendedHeight,
|
|
+ final int minSection, final MutableBoolean isAlreadyExtended) {
|
|
+ final MapType<String>[] ret = new MapType[wantExtendedHeight ? 24 : 16];
|
|
+
|
|
+ final int[] biomes = level.getInts("Biomes");
|
|
+
|
|
+ if (biomes != null && biomes.length == 1536) { // magic value for 24 sections of biomes (24 * 4^3)
|
|
+ isAlreadyExtended.setValue(true);
|
|
+ for (int sectionIndex = 0; sectionIndex < 24; ++sectionIndex) {
|
|
+ ret[sectionIndex] = createBiomeSection(biomes, sectionIndex * 64, -1); // -1 is all 1s
|
|
+ }
|
|
+ } else if (biomes != null && biomes.length == 1024) { // magic value for 24 sections of biomes (16 * 4^3)
|
|
+ for (int sectionY = 0; sectionY < 16; ++sectionY) {
|
|
+ ret[sectionY - minSection] = createBiomeSection(biomes, sectionY * 64, -1); // -1 is all 1s
|
|
+ }
|
|
+
|
|
+ if (wantExtendedHeight) {
|
|
+ // must set the new sections at top and bottom
|
|
+ final MapType<String> bottomCopy = createBiomeSection(biomes, 0, 15); // just want the biomes at y = 0
|
|
+ final MapType<String> topCopy = createBiomeSection(biomes, 1008, 15); // just want the biomes at y = 252
|
|
+
|
|
+ for (int sectionIndex = 0; sectionIndex < 4; ++sectionIndex) {
|
|
+ ret[sectionIndex] = bottomCopy.copy(); // copy palette so that later possible modifications don't trash all sections
|
|
+ }
|
|
+
|
|
+ for (int sectionIndex = 20; sectionIndex < 24; ++sectionIndex) {
|
|
+ ret[sectionIndex] = topCopy.copy(); // copy palette so that later possible modifications don't trash all sections
|
|
+ }
|
|
+ }
|
|
+ } else {
|
|
+ final ListType palette = Types.NBT.createEmptyList();
|
|
+ palette.addString("minecraft:plains");
|
|
+
|
|
+ for (int i = 0; i < ret.length; ++i) {
|
|
+ ret[i] = wrapPalette(palette.copy()); // copy palette so that later possible modifications don't trash all sections
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ private static MapType<String> createBiomeSection(final int[] biomes, final int offset, final int mask) {
|
|
+ final Int2IntLinkedOpenHashMap paletteId = new Int2IntLinkedOpenHashMap();
|
|
+
|
|
+ for (int idx = 0; idx < 64; ++idx) {
|
|
+ final int biome = biomes[offset + (idx & mask)];
|
|
+ paletteId.putIfAbsent(biome, paletteId.size());
|
|
+ }
|
|
+
|
|
+ final ListType paletteString = Types.NBT.createEmptyList();
|
|
+ for (final IntIterator iterator = paletteId.keySet().iterator(); iterator.hasNext();) {
|
|
+ final int biomeId = iterator.nextInt();
|
|
+ final String biome = biomeId >= 0 && biomeId < BIOMES_BY_ID.length ? BIOMES_BY_ID[biomeId] : null;
|
|
+ paletteString.addString(biome == null ? "minecraft:plains" : biome);
|
|
+ }
|
|
+
|
|
+ final int bitsPerObject = ceilLog2(paletteString.size());
|
|
+ if (bitsPerObject == 0) {
|
|
+ return wrapPalette(paletteString);
|
|
+ }
|
|
+
|
|
+ // manually create packed integer data
|
|
+ final int objectsPerValue = 64 / bitsPerObject;
|
|
+ final long[] packed = new long[(64 + objectsPerValue - 1) / objectsPerValue];
|
|
+
|
|
+ int shift = 0;
|
|
+ int idx = 0;
|
|
+ long curr = 0;
|
|
+
|
|
+ for (int biome_idx = 0; biome_idx < 64; ++biome_idx) {
|
|
+ final int biome = biomes[offset + (biome_idx & mask)];
|
|
+
|
|
+ curr |= ((long)paletteId.get(biome)) << shift;
|
|
+
|
|
+ shift += bitsPerObject;
|
|
+
|
|
+ if (shift + bitsPerObject > 64) { // will next write overflow?
|
|
+ // must move to next idx
|
|
+ packed[idx++] = curr;
|
|
+ shift = 0;
|
|
+ curr = 0L;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // don't forget to write the last one
|
|
+ if (shift != 0) {
|
|
+ packed[idx] = curr;
|
|
+ }
|
|
+
|
|
+ return wrapPalette(paletteString, packed);
|
|
+ }
|
|
+
|
|
+ private static MapType<String> wrapPalette(final ListType palette) {
|
|
+ return wrapPalette(palette, null);
|
|
+ }
|
|
+
|
|
+ private static MapType<String> wrapPalette(final ListType palette, final long[] blockStates) {
|
|
+ final MapType<String> ret = Types.NBT.createEmptyMap();
|
|
+ ret.setList("palette", palette);
|
|
+ if (blockStates != null) {
|
|
+ ret.setLongs("data", blockStates);
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ private static MapType<String> wrapPaletteOptimised(final ListType palette, final long[] blockStates) {
|
|
+ if (palette.size() == 1) {
|
|
+ return wrapPalette(palette);
|
|
+ }
|
|
+
|
|
+ return wrapPalette(palette, blockStates);
|
|
+ }
|
|
+
|
|
+ public static int ceilLog2(final int value) {
|
|
+ return value == 0 ? 0 : Integer.SIZE - Integer.numberOfLeadingZeros(value - 1); // see doc of numberOfLeadingZeros
|
|
+ }
|
|
+
|
|
+ private static void updateLayers(final ListType layers) {
|
|
+ if (layers == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ layers.addMap(0, createEmptyLayer()); // add at the bottom
|
|
+ }
|
|
+
|
|
+ private static MapType<String> createEmptyLayer() {
|
|
+ final MapType<String> ret = Types.NBT.createEmptyMap();
|
|
+ ret.setInt("height", 64);
|
|
+ ret.setString("block", "minecraft:air");
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2833.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2833.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..4bdac86810c51e9f87ea82ba9f6c6d8ae8ce2bdf
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2833.java
|
|
@@ -0,0 +1,30 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V2833 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_17_1 + 103;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.WORLD_GEN_SETTINGS.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> dimensions = data.getMap("dimensions");
|
|
+
|
|
+ for (final String dimensionKey : dimensions.keys()) {
|
|
+ final MapType<String> dimension = dimensions.getMap(dimensionKey);
|
|
+ if (!dimension.hasKey("type")) {
|
|
+ throw new IllegalStateException("Unable load old custom worlds.");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2838.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2838.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..586e711163e2bdea110442dd181289fc06f6f7f1
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2838.java
|
|
@@ -0,0 +1,56 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.ConverterAbstractStringValueTypeRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2838 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W40A;
|
|
+
|
|
+ public static final ImmutableMap<String, String> BIOME_UPDATE = ImmutableMap.<String, String>builder()
|
|
+ .put("minecraft:badlands_plateau", "minecraft:badlands")
|
|
+ .put("minecraft:bamboo_jungle_hills", "minecraft:bamboo_jungle")
|
|
+ .put("minecraft:birch_forest_hills", "minecraft:birch_forest")
|
|
+ .put("minecraft:dark_forest_hills", "minecraft:dark_forest")
|
|
+ .put("minecraft:desert_hills", "minecraft:desert")
|
|
+ .put("minecraft:desert_lakes", "minecraft:desert")
|
|
+ .put("minecraft:giant_spruce_taiga_hills", "minecraft:old_growth_spruce_taiga")
|
|
+ .put("minecraft:giant_spruce_taiga", "minecraft:old_growth_spruce_taiga")
|
|
+ .put("minecraft:giant_tree_taiga_hills", "minecraft:old_growth_pine_taiga")
|
|
+ .put("minecraft:giant_tree_taiga", "minecraft:old_growth_pine_taiga")
|
|
+ .put("minecraft:gravelly_mountains", "minecraft:windswept_gravelly_hills")
|
|
+ .put("minecraft:jungle_edge", "minecraft:sparse_jungle")
|
|
+ .put("minecraft:jungle_hills", "minecraft:jungle")
|
|
+ .put("minecraft:modified_badlands_plateau", "minecraft:badlands")
|
|
+ .put("minecraft:modified_gravelly_mountains", "minecraft:windswept_gravelly_hills")
|
|
+ .put("minecraft:modified_jungle_edge", "minecraft:sparse_jungle")
|
|
+ .put("minecraft:modified_jungle", "minecraft:jungle")
|
|
+ .put("minecraft:modified_wooded_badlands_plateau", "minecraft:wooded_badlands")
|
|
+ .put("minecraft:mountain_edge", "minecraft:windswept_hills")
|
|
+ .put("minecraft:mountains", "minecraft:windswept_hills")
|
|
+ .put("minecraft:mushroom_field_shore", "minecraft:mushroom_fields")
|
|
+ .put("minecraft:shattered_savanna", "minecraft:windswept_savanna")
|
|
+ .put("minecraft:shattered_savanna_plateau", "minecraft:windswept_savanna")
|
|
+ .put("minecraft:snowy_mountains", "minecraft:snowy_plains")
|
|
+ .put("minecraft:snowy_taiga_hills", "minecraft:snowy_taiga")
|
|
+ .put("minecraft:snowy_taiga_mountains", "minecraft:snowy_taiga")
|
|
+ .put("minecraft:snowy_tundra", "minecraft:snowy_plains")
|
|
+ .put("minecraft:stone_shore", "minecraft:stony_shore")
|
|
+ .put("minecraft:swamp_hills", "minecraft:swamp")
|
|
+ .put("minecraft:taiga_hills", "minecraft:taiga")
|
|
+ .put("minecraft:taiga_mountains", "minecraft:taiga")
|
|
+ .put("minecraft:tall_birch_forest", "minecraft:old_growth_birch_forest")
|
|
+ .put("minecraft:tall_birch_hills", "minecraft:old_growth_birch_forest")
|
|
+ .put("minecraft:wooded_badlands_plateau", "minecraft:wooded_badlands")
|
|
+ .put("minecraft:wooded_hills", "minecraft:forest")
|
|
+ .put("minecraft:wooded_mountains", "minecraft:windswept_forest")
|
|
+ .put("minecraft:lofty_peaks", "minecraft:jagged_peaks")
|
|
+ .put("minecraft:snowcapped_peaks", "minecraft:frozen_peaks")
|
|
+ .build();
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractStringValueTypeRename.register(VERSION, MCTypeRegistry.BIOME, BIOME_UPDATE::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2841.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2841.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..41b41ff084662bbc2e323713473e4e13b8e50cd7
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2841.java
|
|
@@ -0,0 +1,205 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+import ca.spottedleaf.dataconverter.util.IntegerUtil;
|
|
+import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
|
+import java.util.Arrays;
|
|
+import java.util.HashSet;
|
|
+import java.util.Set;
|
|
+
|
|
+public final class V2841 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W42A + 1;
|
|
+
|
|
+ protected static final Set<String> ALWAYS_WATERLOGGED = new HashSet<>(Arrays.asList(
|
|
+ "minecraft:bubble_column",
|
|
+ "minecraft:kelp",
|
|
+ "minecraft:kelp_plant",
|
|
+ "minecraft:seagrass",
|
|
+ "minecraft:tall_seagrass"
|
|
+ ));
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> root, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = root.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ {
|
|
+ // Why it's renamed here and not the next data version is beyond me.
|
|
+ final MapType<String> liquidTicks = level.getMap("LiquidTicks");
|
|
+ if (liquidTicks != null) {
|
|
+ level.remove("LiquidTicks");
|
|
+ level.setMap("fluid_ticks", liquidTicks);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final Int2ObjectOpenHashMap<SimplePaletteReader> sectionBlocks = new Int2ObjectOpenHashMap<>();
|
|
+ final ListType sections = level.getList("Sections", ObjectType.MAP);
|
|
+ int minSection = 0; // TODO wtf is this
|
|
+ if (sections != null) {
|
|
+ for (int i = 0, len = sections.size(); i < len; ++i) {
|
|
+ final MapType<String> section = sections.getMap(i);
|
|
+
|
|
+ final int sectionY = section.getInt("Y");
|
|
+ if (sectionY < minSection && section.hasKey("biomes")) {
|
|
+ minSection = sectionY;
|
|
+ }
|
|
+
|
|
+ final MapType<String> blockStates = section.getMap("block_states");
|
|
+ if (blockStates == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ sectionBlocks.put(sectionY, new SimplePaletteReader(section.getList("palette", ObjectType.MAP), section.getLongs("data")));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ level.setByte("yPos", (byte)minSection); // TODO ???????????????????????????????????????
|
|
+
|
|
+ if (level.hasKey("fluid_ticks") || level.hasKey("TileTicks")) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final int sectionX = level.getInt("xPos");
|
|
+ final int sectionZ = level.getInt("zPos");
|
|
+
|
|
+ final ListType fluidTicks = level.getList("LiquidsToBeTicked", ObjectType.LIST);
|
|
+ final ListType blockTicks = level.getList("ToBeTicked", ObjectType.LIST);
|
|
+ level.remove("LiquidsToBeTicked");
|
|
+ level.remove("ToBeTicked");
|
|
+
|
|
+ level.setList("fluid_ticks", migrateTickList(fluidTicks, false, sectionBlocks, sectionX, minSection, sectionZ));
|
|
+ level.setList("TileTicks", migrateTickList(blockTicks, true, sectionBlocks, sectionX, minSection, sectionZ));
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ public static ListType migrateTickList(final ListType ticks, final boolean blockTicks, final Int2ObjectOpenHashMap<SimplePaletteReader> sectionBlocks,
|
|
+ final int sectionX, final int minSection, final int sectionZ) {
|
|
+ final ListType ret = Types.NBT.createEmptyList();
|
|
+
|
|
+ if (ticks == null) {
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ for (int sectionIndex = 0, totalSections = ticks.size(); sectionIndex < totalSections; ++sectionIndex) {
|
|
+ final int sectionY = sectionIndex + minSection;
|
|
+ final ListType sectionTicks = ticks.getList(sectionIndex);
|
|
+ final SimplePaletteReader palette = sectionBlocks.get(sectionY);
|
|
+
|
|
+ for (int i = 0, len = sectionTicks.size(); i < len; ++i) {
|
|
+ final int localIndex = sectionTicks.getShort(i) & 0xFFFF;
|
|
+ final MapType<String> blockState = palette == null ? null : palette.getState(localIndex);
|
|
+ final String subjectId = blockTicks ? getBlockId(blockState) : getLiquidId(blockState);
|
|
+
|
|
+ ret.addMap(createNewTick(subjectId, localIndex, sectionX, sectionY, sectionZ));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ public static MapType<String> createNewTick(final String subjectId, final int localIndex, final int sectionX, final int sectionY, final int sectionZ) {
|
|
+ final int newX = (localIndex & 15) + (sectionX << 4);
|
|
+ final int newZ = ((localIndex >> 4) & 15) + (sectionZ << 4);
|
|
+ final int newY = ((localIndex >> 8) & 15) + (sectionY << 4);
|
|
+
|
|
+ final MapType<String> ret = Types.NBT.createEmptyMap();
|
|
+
|
|
+ ret.setString("i", subjectId);
|
|
+ ret.setInt("x", newX);
|
|
+ ret.setInt("y", newY);
|
|
+ ret.setInt("z", newZ);
|
|
+ ret.setInt("t", 0);
|
|
+ ret.setInt("p", 0);
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ public static String getBlockId(final MapType<String> blockState) {
|
|
+ return blockState == null ? "minecraft:air" : blockState.getString("Name", "minecraft:air");
|
|
+ }
|
|
+
|
|
+ private static String getLiquidId(final MapType<String> blockState) {
|
|
+ if (blockState == null) {
|
|
+ return "minecraft:empty";
|
|
+ }
|
|
+
|
|
+ final String name = blockState.getString("Name");
|
|
+ if (ALWAYS_WATERLOGGED.contains(name)) {
|
|
+ return "minecraft:water";
|
|
+ }
|
|
+
|
|
+ final MapType<String> properties = blockState.getMap("Properties");
|
|
+ if ("minecraft:water".equals(name)) {
|
|
+ return properties != null && properties.getInt("level") == 0 ? "minecraft:water" : "minecraft:flowing_water";
|
|
+ } else if ("minecraft:lava".equals(name)) {
|
|
+ return properties != null && properties.getInt("level") == 0 ? "minecraft:lava" : "minecraft:flowing_lava";
|
|
+ }
|
|
+
|
|
+ return (properties != null && properties.getBoolean("waterlogged")) ? "minecraft:water" : "minecraft:empty";
|
|
+ }
|
|
+
|
|
+ public static final class SimplePaletteReader {
|
|
+
|
|
+ public final ListType palette;
|
|
+ public final long[] data;
|
|
+ private final int bitsPerValue;
|
|
+ private final long mask;
|
|
+ private final int valuesPerLong;
|
|
+
|
|
+ public SimplePaletteReader(final ListType palette, final long[] data) {
|
|
+ this.palette = palette == null ? null : (palette.size() == 0 ? null : palette);
|
|
+ this.data = data;
|
|
+ this.bitsPerValue = Math.max(4, IntegerUtil.ceilLog2(this.palette == null ? 0 : this.palette.size()));
|
|
+ this.mask = (1L << this.bitsPerValue) - 1L;
|
|
+ this.valuesPerLong = (int)(64L / this.bitsPerValue);
|
|
+ }
|
|
+
|
|
+ public MapType<String> getState(final int x, final int y, final int z) {
|
|
+ final int index = x | (z << 4) | (y << 8);
|
|
+ return this.getState(index);
|
|
+ }
|
|
+
|
|
+ public MapType<String> getState(final int index) {
|
|
+ final ListType palette = this.palette;
|
|
+ if (palette == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final int paletteSize = palette.size();
|
|
+ if (paletteSize == 1) {
|
|
+ return palette.getMap(0);
|
|
+ }
|
|
+
|
|
+ // x86 div computes mod. no loss here using mod
|
|
+ // if needed, can compute magic mul and shift for div values using IntegerUtil
|
|
+ final int dataIndex = index / this.valuesPerLong;
|
|
+ final int localIndex = (index % this.valuesPerLong) * this.bitsPerValue;
|
|
+ final long[] data = this.data;
|
|
+ if (dataIndex < 0 || dataIndex >= data.length) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final long value = data[dataIndex];
|
|
+ final int paletteIndex = (int)((value >>> localIndex) & this.mask);
|
|
+ if (paletteIndex < 0 || paletteIndex >= paletteSize) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ return palette.getMap(paletteIndex);
|
|
+ }
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2842.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2842.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..f06e24bb87baf01b1386fb7a6af1ea04f4d6f2ef
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2842.java
|
|
@@ -0,0 +1,76 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.RenameHelper;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+
|
|
+public final class V2842 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W42A + 2;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.CHUNK.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> root, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> level = root.getMap("Level");
|
|
+ root.remove("Level");
|
|
+
|
|
+ if (!root.isEmpty()) {
|
|
+ for (final String key : root.keys()) {
|
|
+ if (level.hasKey(key)) {
|
|
+ // Don't clobber level's data
|
|
+ continue;
|
|
+ }
|
|
+ level.setGeneric(key, root.getGeneric(key));
|
|
+ }
|
|
+ }
|
|
+
|
|
+ // Rename top level first
|
|
+ RenameHelper.renameSingle(level, "TileEntities", "block_entities");
|
|
+ RenameHelper.renameSingle(level, "TileTicks", "block_ticks");
|
|
+ RenameHelper.renameSingle(level, "Entities", "entities");
|
|
+ RenameHelper.renameSingle(level, "Sections", "sections");
|
|
+ RenameHelper.renameSingle(level, "Structures", "structures");
|
|
+
|
|
+ // 2nd level
|
|
+ final MapType<String> structures = level.getMap("structures");
|
|
+ if (structures != null) {
|
|
+ RenameHelper.renameSingle(structures, "Starts", "starts");
|
|
+ }
|
|
+
|
|
+ return level; // Level is now root tag.
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.CHUNK.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ENTITY, data, "entities", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.TILE_ENTITY, data, "block_entities", fromVersion, toVersion);
|
|
+
|
|
+ final ListType blockTicks = data.getList("block_ticks", ObjectType.MAP);
|
|
+ if (blockTicks != null) {
|
|
+ for (int i = 0, len = blockTicks.size(); i < len; ++i) {
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_NAME, blockTicks.getMap(i), "i", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final ListType sections = data.getList("sections", ObjectType.MAP);
|
|
+ if (sections != null) {
|
|
+ for (int i = 0, len = sections.size(); i < len; ++i) {
|
|
+ final MapType<String> section = sections.getMap(i);
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BIOME, section.getMap("biomes"), "palette", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BLOCK_STATE, section.getMap("block_states"), "palette", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertValues(MCTypeRegistry.STRUCTURE_FEATURE, data.getMap("structures"), "starts", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2843.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2843.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5d69a84a1d4f74a961210561c3258a4ed5e4c4d2
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2843.java
|
|
@@ -0,0 +1,15 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.ConverterAbstractStringValueTypeRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V2843 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W42A + 3;
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractStringValueTypeRename.register(VERSION, MCTypeRegistry.BIOME, Map.of("minecraft:deep_warm_ocean", "minecraft:warm_ocean")::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2846.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2846.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..236327249d2b95b799b90172d457601167492249
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2846.java
|
|
@@ -0,0 +1,18 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.advancements.ConverterAbstractAdvancementsRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V2846 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V21W44A + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractAdvancementsRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:husbandry/play_jukebox_in_meadows", "minecraft:adventure/play_jukebox_in_meadows",
|
|
+ "minecraft:adventure/caves_and_cliff", "minecraft:adventure/fall_from_world_height",
|
|
+ "minecraft:adventure/ride_strider_in_overworld_lava", "minecraft:nether/ride_strider_in_overworld_lava"
|
|
+ )::get);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2852.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2852.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..94ab7be8c34d2ebb557df5a0864130f7f12c2185
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V2852.java
|
|
@@ -0,0 +1,29 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V2852 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_18_PRE5 + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.WORLD_GEN_SETTINGS.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> dimensions = data.getMap("dimensions");
|
|
+
|
|
+ for (final String dimensionKey : dimensions.keys()) {
|
|
+ final MapType<String> dimension = dimensions.getMap(dimensionKey);
|
|
+ if (!dimension.hasKey("type")) {
|
|
+ throw new IllegalStateException("Unable load old custom worlds.");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V501.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V501.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..6ab2bf99d72983fc2742a1f6f2f7fa671611526d
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V501.java
|
|
@@ -0,0 +1,21 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+
|
|
+public final class V501 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V16W20A;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ registerMob("PolarBear");
|
|
+ }
|
|
+
|
|
+ private V501() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V502.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V502.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..08fa912f9afac69dca8869d6d443226ea033c9db
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V502.java
|
|
@@ -0,0 +1,47 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+import java.util.concurrent.ThreadLocalRandom;
|
|
+
|
|
+public final class V502 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V16W20A + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractItemRename.register(VERSION, (final String name) -> {
|
|
+ return "minecraft:cooked_fished".equals(name) ? "minecraft:cooked_fish" : null;
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("Zombie", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (!data.getBoolean("IsVillager")) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ data.remove("IsVillager");
|
|
+
|
|
+ if (data.hasKey("ZombieType")) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ int type = data.getInt("VillagerProfession", -1);
|
|
+ // Vanilla doesn't remove the profession tag, so we don't!
|
|
+ if (type < 0 || type >= 6) {
|
|
+ type = ThreadLocalRandom.current().nextInt(6);
|
|
+ }
|
|
+
|
|
+ data.setInt("ZombieType", type);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V502() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V505.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V505.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..30769f902c7d694bce41ab319d0b9a87c6103f11
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V505.java
|
|
@@ -0,0 +1,24 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V505 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V16W21B + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.OPTIONS.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ data.setString("useVbo", "true");
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V505() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V700.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V700.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..f46b1a0c4bc96d638853cc61e5703798dbf6b886
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V700.java
|
|
@@ -0,0 +1,33 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V700 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_10_2 + 188;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("Guardian", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (data.getBoolean("Elder")) {
|
|
+ data.setString("id", "ElderGuardian");
|
|
+ }
|
|
+ data.remove("Elder");
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ registerMob("ElderGuardian");
|
|
+ }
|
|
+
|
|
+ private V700() {}
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V701.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V701.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..42f173f426fb7d26e5ddb5a1c92c63b2e6a4930c
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V701.java
|
|
@@ -0,0 +1,43 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V701 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_10_2 + 189;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("Skeleton", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final int type = data.getInt("SkeletonType");
|
|
+ data.remove("SkeletonType");
|
|
+
|
|
+ switch (type) {
|
|
+ case 1:
|
|
+ data.setString("id", "WitherSkeleton");
|
|
+ break;
|
|
+ case 2:
|
|
+ data.setString("id", "Stray");
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ registerMob("WitherSkeleton");
|
|
+ registerMob("Stray");
|
|
+ }
|
|
+
|
|
+ private V701() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V702.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V702.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5cc91edde9c8160f75165bcef554023246e0a224
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V702.java
|
|
@@ -0,0 +1,53 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V702 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_10_2 + 190;
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("Zombie", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final int zombieType = data.getInt("ZombieType");
|
|
+ data.remove("ZombieType");
|
|
+
|
|
+ switch (zombieType) {
|
|
+ case 0:
|
|
+ default:
|
|
+ break;
|
|
+
|
|
+ case 1:
|
|
+ case 2:
|
|
+ case 3:
|
|
+ case 4:
|
|
+ case 5:
|
|
+ data.setString("id", "ZombieVillager");
|
|
+ data.setInt("Profession", zombieType - 1);
|
|
+ break;
|
|
+
|
|
+ case 6:
|
|
+ data.setString("id", "Husk");
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ registerMob("ZombieVillager");
|
|
+ registerMob( "Husk");
|
|
+ }
|
|
+
|
|
+ private V702() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V703.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V703.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..88d9c0fcd88ccfd6d6b46ae050914079c816fa3f
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V703.java
|
|
@@ -0,0 +1,66 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItems;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V703 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_10_2 + 191;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("EntityHorse", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final int type = data.getInt("Type");
|
|
+ data.remove("Type");
|
|
+
|
|
+ switch (type) {
|
|
+ case 0:
|
|
+ default:
|
|
+ data.setString("id", "Horse");
|
|
+ break;
|
|
+
|
|
+ case 1:
|
|
+ data.setString("id", "Donkey");
|
|
+ break;
|
|
+
|
|
+ case 2:
|
|
+ data.setString("id", "Mule");
|
|
+ break;
|
|
+
|
|
+ case 3:
|
|
+ data.setString("id", "ZombieHorse");
|
|
+ break;
|
|
+
|
|
+ case 4:
|
|
+ data.setString("id", "SkeletonHorse");
|
|
+ break;
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Horse", new DataWalkerItems("ArmorItem", "SaddleItem"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Horse", new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Donkey", new DataWalkerItems("SaddleItem"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Donkey", new DataWalkerItemLists("Items", "ArmorItems", "HandItems"));
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Mule", new DataWalkerItems("SaddleItem"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Mule", new DataWalkerItemLists("Items", "ArmorItems", "HandItems"));
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "ZombieHorse", new DataWalkerItems("SaddleItem"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "ZombieHorse", new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "SkeletonHorse", new DataWalkerItems("SaddleItem"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "SkeletonHorse", new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ private V703() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V704.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V704.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5f9cc332c7969f613a912ae66606cbc7352e5ed7
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V704.java
|
|
@@ -0,0 +1,335 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.hooks.DataHookEnforceNamespacedID;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.item_name.DataWalkerItemNames;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItems;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import net.minecraft.core.Registry;
|
|
+import net.minecraft.world.item.BlockItem;
|
|
+import net.minecraft.world.item.Item;
|
|
+import net.minecraft.world.level.block.EntityBlock;
|
|
+import org.apache.logging.log4j.LogManager;
|
|
+import org.apache.logging.log4j.Logger;
|
|
+import java.util.HashMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V704 {
|
|
+
|
|
+ private static final Logger LOGGER = LogManager.getLogger();
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_10_2 + 192;
|
|
+
|
|
+ public static final Map<String, String> ITEM_ID_TO_TILE_ENTITY_ID = new HashMap<String, String>() {
|
|
+ @Override
|
|
+ public String put(final String key, final String value) {
|
|
+ if (this.containsKey(key)) {
|
|
+ LOGGER.fatal("Duplicate item id to tile key: " + key);
|
|
+ throw new RuntimeException(); // only devs should see the consequence of this... at least start up the damn thing...
|
|
+ }
|
|
+ return super.put(key, value);
|
|
+ }
|
|
+ };
|
|
+ static {
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:furnace", "minecraft:furnace");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:lit_furnace", "minecraft:furnace");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:chest", "minecraft:chest");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:trapped_chest", "minecraft:chest");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:ender_chest", "minecraft:ender_chest");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:jukebox", "minecraft:jukebox");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:dispenser", "minecraft:dispenser");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:dropper", "minecraft:dropper");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:sign", "minecraft:sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:mob_spawner", "minecraft:mob_spawner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:spawner", "minecraft:mob_spawner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:noteblock", "minecraft:noteblock");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:brewing_stand", "minecraft:brewing_stand");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:enhanting_table", "minecraft:enchanting_table");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:command_block", "minecraft:command_block");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:beacon", "minecraft:beacon");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:skull", "minecraft:skull");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:daylight_detector", "minecraft:daylight_detector");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:hopper", "minecraft:hopper");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:flower_pot", "minecraft:flower_pot");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:repeating_command_block", "minecraft:command_block");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:chain_command_block", "minecraft:command_block");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:white_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:orange_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:magenta_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:light_blue_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:yellow_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:lime_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:pink_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:gray_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:silver_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:cyan_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:purple_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:blue_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:brown_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:green_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:red_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:black_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:light_gray_shulker_box", "minecraft:shulker_box");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:white_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:orange_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:magenta_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:light_blue_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:yellow_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:lime_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:pink_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:gray_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:silver_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:cyan_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:purple_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:blue_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:brown_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:green_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:red_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:black_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:standing_sign", "minecraft:sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:wall_sign", "minecraft:sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:piston_head", "minecraft:piston");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:daylight_detector_inverted", "minecraft:daylight_detector");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:unpowered_comparator", "minecraft:comparator");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:powered_comparator", "minecraft:comparator");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:wall_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:standing_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:structure_block", "minecraft:structure_block");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:end_portal", "minecraft:end_portal");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:end_gateway", "minecraft:end_gateway");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:shield", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:white_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:orange_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:magenta_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:light_blue_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:yellow_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:lime_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:pink_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:gray_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:silver_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:cyan_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:purple_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:blue_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:brown_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:green_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:red_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:black_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:oak_sign", "minecraft:sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:spruce_sign", "minecraft:sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:birch_sign", "minecraft:sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:jungle_sign", "minecraft:sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:acacia_sign", "minecraft:sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:dark_oak_sign", "minecraft:sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:crimson_sign", "minecraft:sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:warped_sign", "minecraft:sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:skeleton_skull", "minecraft:skull");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:wither_skeleton_skull", "minecraft:skull");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:zombie_head", "minecraft:skull");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:player_head", "minecraft:skull");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:creeper_head", "minecraft:skull");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:dragon_head", "minecraft:skull");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:barrel", "minecraft:barrel");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:conduit", "minecraft:conduit");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:smoker", "minecraft:smoker");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:blast_furnace", "minecraft:blast_furnace");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:lectern", "minecraft:lectern");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:bell", "minecraft:bell");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:jigsaw", "minecraft:jigsaw");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:campfire", "minecraft:campfire");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:bee_nest", "minecraft:beehive");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:beehive", "minecraft:beehive");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:sculk_sensor", "minecraft:sculk_sensor");
|
|
+
|
|
+ // These are missing from Vanilla (TODO check on update)
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:enchanting_table", "minecraft:enchanting_table");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:comparator", "minecraft:comparator");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:light_gray_bed", "minecraft:bed");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:light_gray_banner", "minecraft:banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:soul_campfire", "minecraft:campfire");
|
|
+ }
|
|
+
|
|
+ // This class is responsible for also integrity checking the item id to tile id map here, we just use the item registry to figure it out
|
|
+
|
|
+ static {
|
|
+ for (final Item item : Registry.ITEM) {
|
|
+ if (!(item instanceof BlockItem)) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ if (!(((BlockItem)item).getBlock() instanceof EntityBlock)) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final String itemName = Registry.ITEM.getKey(item).toString();
|
|
+ if (!ITEM_ID_TO_TILE_ENTITY_ID.containsKey(itemName)) {
|
|
+ LOGGER.error("Item id " + itemName + " does not contain tile mapping! (V704)");
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ protected static final Map<String, String> TILE_ID_UPDATE = new HashMap<>();
|
|
+ static {
|
|
+ TILE_ID_UPDATE.put("Airportal", "minecraft:end_portal");
|
|
+ TILE_ID_UPDATE.put("Banner", "minecraft:banner");
|
|
+ TILE_ID_UPDATE.put("Beacon", "minecraft:beacon");
|
|
+ TILE_ID_UPDATE.put("Cauldron", "minecraft:brewing_stand");
|
|
+ TILE_ID_UPDATE.put("Chest", "minecraft:chest");
|
|
+ TILE_ID_UPDATE.put("Comparator", "minecraft:comparator");
|
|
+ TILE_ID_UPDATE.put("Control", "minecraft:command_block");
|
|
+ TILE_ID_UPDATE.put("DLDetector", "minecraft:daylight_detector");
|
|
+ TILE_ID_UPDATE.put("Dropper", "minecraft:dropper");
|
|
+ TILE_ID_UPDATE.put("EnchantTable", "minecraft:enchanting_table");
|
|
+ TILE_ID_UPDATE.put("EndGateway", "minecraft:end_gateway");
|
|
+ TILE_ID_UPDATE.put("EnderChest", "minecraft:ender_chest");
|
|
+ TILE_ID_UPDATE.put("FlowerPot", "minecraft:flower_pot");
|
|
+ TILE_ID_UPDATE.put("Furnace", "minecraft:furnace");
|
|
+ TILE_ID_UPDATE.put("Hopper", "minecraft:hopper");
|
|
+ TILE_ID_UPDATE.put("MobSpawner", "minecraft:mob_spawner");
|
|
+ TILE_ID_UPDATE.put("Music", "minecraft:noteblock");
|
|
+ TILE_ID_UPDATE.put("Piston", "minecraft:piston");
|
|
+ TILE_ID_UPDATE.put("RecordPlayer", "minecraft:jukebox");
|
|
+ TILE_ID_UPDATE.put("Sign", "minecraft:sign");
|
|
+ TILE_ID_UPDATE.put("Skull", "minecraft:skull");
|
|
+ TILE_ID_UPDATE.put("Structure", "minecraft:structure_block");
|
|
+ TILE_ID_UPDATE.put("Trap", "minecraft:dispenser");
|
|
+ }
|
|
+
|
|
+ protected static void registerInventory(final String id) {
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("Items"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.TILE_ENTITY.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String id = data.getString("id");
|
|
+ if (id == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ data.setString("id", TILE_ID_UPDATE.getOrDefault(id, id));
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+
|
|
+
|
|
+ registerInventory( "minecraft:furnace");
|
|
+ registerInventory( "minecraft:chest");
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, "minecraft:jukebox", new DataWalkerItems("RecordItem"));
|
|
+ registerInventory("minecraft:dispenser");
|
|
+ registerInventory("minecraft:dropper");
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, "minecraft:mob_spawner", (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ MCTypeRegistry.UNTAGGED_SPAWNER.convert(data, fromVersion, toVersion);
|
|
+ return null;
|
|
+ });
|
|
+ registerInventory("minecraft:brewing_stand");
|
|
+ registerInventory("minecraft:hopper");
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, "minecraft:flower_pot", new DataWalkerItemNames("Item"));
|
|
+
|
|
+ MCTypeRegistry.ITEM_STACK.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_NAME, data, "id", fromVersion, toVersion);
|
|
+
|
|
+ final MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ // only things here are in tag, if changed update if above
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, tag, "Items", fromVersion, toVersion);
|
|
+
|
|
+ MapType<String> entityTag = tag.getMap("EntityTag");
|
|
+ if (entityTag != null) {
|
|
+ final String itemId = data.getString("id");
|
|
+ final String entityId;
|
|
+ if ("minecraft:armor_stand".equals(itemId)) {
|
|
+ // The check for version id is changed here. For whatever reason, the legacy
|
|
+ // data converters used entity id "minecraft:armor_stand" when version was greater-than 514,
|
|
+ // but entity ids were not namespaced until V705! So somebody fucked up the legacy converters.
|
|
+ // DFU agrees with my analysis here, it will only set the entityId here to the namespaced variant
|
|
+ // with the V705 schema.
|
|
+ entityId = DataConverter.getVersion(fromVersion) < 705 ? "ArmorStand" : "minecraft:armor_stand";
|
|
+ } else if (itemId != null && itemId.contains("_spawn_egg")) {
|
|
+ // V1451 changes spawn eggs to have the sub entity id be a part of the item id, but of course Mojang never
|
|
+ // bothered to write in logic to set the sub entity id, so we have to.
|
|
+ // format is ALWAYS <namespace>:<id>_spawn_egg post flattening
|
|
+ entityId = itemId.substring(0, itemId.indexOf("_spawn_egg"));
|
|
+ } else if ("minecraft:item_frame".equals(itemId)) {
|
|
+ // add missing item_frame entity id
|
|
+ // version check is same for armorstand, as both were namespaced at the same time
|
|
+ entityId = DataConverter.getVersion(fromVersion) < 705 ? "ItemFrame" : "minecraft:item_frame";
|
|
+ } else {
|
|
+ entityId = entityTag.getString("id");
|
|
+ }
|
|
+
|
|
+ final boolean removeId;
|
|
+ if (entityId == null) {
|
|
+ if (!"minecraft:air".equals(itemId)) {
|
|
+ LOGGER.warn("Unable to resolve Entity for ItemStack (V704): " + itemId);
|
|
+ }
|
|
+ removeId = false;
|
|
+ } else {
|
|
+ removeId = !entityTag.hasKey("id", ObjectType.STRING);
|
|
+ if (removeId) {
|
|
+ entityTag.setString("id", entityId);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final MapType<String> replace = MCTypeRegistry.ENTITY.convert(entityTag, fromVersion, toVersion);
|
|
+
|
|
+ if (replace != null) {
|
|
+ entityTag = replace;
|
|
+ tag.setMap("EntityTag", entityTag);
|
|
+ }
|
|
+ if (removeId) {
|
|
+ entityTag.remove("id");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ MapType<String> blockEntityTag = tag.getMap("BlockEntityTag");
|
|
+ if (blockEntityTag != null) {
|
|
+ final String itemId = data.getString("id");
|
|
+ final String entityId = ITEM_ID_TO_TILE_ENTITY_ID.get(itemId);
|
|
+ final boolean removeId;
|
|
+ if (entityId == null) {
|
|
+ if (!"minecraft:air".equals(itemId)) {
|
|
+ LOGGER.warn("Unable to resolve BlockEntity for ItemStack (V704): " + itemId);
|
|
+ }
|
|
+ removeId = false;
|
|
+ } else {
|
|
+ removeId = !blockEntityTag.hasKey("id", ObjectType.STRING);
|
|
+ if (removeId) {
|
|
+ blockEntityTag.setString("id", entityId);
|
|
+ }
|
|
+ }
|
|
+ final MapType<String> replace = MCTypeRegistry.TILE_ENTITY.convert(blockEntityTag, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ blockEntityTag = replace;
|
|
+ tag.setMap("BlockEntityTag", entityTag);
|
|
+ }
|
|
+ if (removeId) {
|
|
+ blockEntityTag.remove("id");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BLOCK_NAME, tag, "CanDestroy", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BLOCK_NAME, tag, "CanPlaceOn", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+ // Enforce namespace for ids
|
|
+ MCTypeRegistry.TILE_ENTITY.addStructureHook(VERSION, new DataHookEnforceNamespacedID());
|
|
+ }
|
|
+
|
|
+ private V704() {}
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V705.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V705.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..95e3dd0b76bc9e9ef7388617bdb2dd340b8dfc0d
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V705.java
|
|
@@ -0,0 +1,231 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.entity.ConverterAbstractEntityRename;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.hooks.DataHookEnforceNamespacedID;
|
|
+import ca.spottedleaf.dataconverter.minecraft.hooks.DataHookValueTypeEnforceNamespaced;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.block_name.DataWalkerBlockNames;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItems;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.tile_entity.DataWalkerTileEntities;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import org.apache.logging.log4j.LogManager;
|
|
+import org.apache.logging.log4j.Logger;
|
|
+import java.util.HashMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V705 {
|
|
+
|
|
+ private static final Logger LOGGER = LogManager.getLogger();
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_10_2 + 193;
|
|
+
|
|
+ protected static final Map<String, String> ENTITY_ID_UPDATE = new HashMap<>();
|
|
+ static {
|
|
+ ENTITY_ID_UPDATE.put("AreaEffectCloud", "minecraft:area_effect_cloud");
|
|
+ ENTITY_ID_UPDATE.put("ArmorStand", "minecraft:armor_stand");
|
|
+ ENTITY_ID_UPDATE.put("Arrow", "minecraft:arrow");
|
|
+ ENTITY_ID_UPDATE.put("Bat", "minecraft:bat");
|
|
+ ENTITY_ID_UPDATE.put("Blaze", "minecraft:blaze");
|
|
+ ENTITY_ID_UPDATE.put("Boat", "minecraft:boat");
|
|
+ ENTITY_ID_UPDATE.put("CaveSpider", "minecraft:cave_spider");
|
|
+ ENTITY_ID_UPDATE.put("Chicken", "minecraft:chicken");
|
|
+ ENTITY_ID_UPDATE.put("Cow", "minecraft:cow");
|
|
+ ENTITY_ID_UPDATE.put("Creeper", "minecraft:creeper");
|
|
+ ENTITY_ID_UPDATE.put("Donkey", "minecraft:donkey");
|
|
+ ENTITY_ID_UPDATE.put("DragonFireball", "minecraft:dragon_fireball");
|
|
+ ENTITY_ID_UPDATE.put("ElderGuardian", "minecraft:elder_guardian");
|
|
+ ENTITY_ID_UPDATE.put("EnderCrystal", "minecraft:ender_crystal");
|
|
+ ENTITY_ID_UPDATE.put("EnderDragon", "minecraft:ender_dragon");
|
|
+ ENTITY_ID_UPDATE.put("Enderman", "minecraft:enderman");
|
|
+ ENTITY_ID_UPDATE.put("Endermite", "minecraft:endermite");
|
|
+ ENTITY_ID_UPDATE.put("EyeOfEnderSignal", "minecraft:eye_of_ender_signal");
|
|
+ ENTITY_ID_UPDATE.put("FallingSand", "minecraft:falling_block");
|
|
+ ENTITY_ID_UPDATE.put("Fireball", "minecraft:fireball");
|
|
+ ENTITY_ID_UPDATE.put("FireworksRocketEntity", "minecraft:fireworks_rocket");
|
|
+ ENTITY_ID_UPDATE.put("Ghast", "minecraft:ghast");
|
|
+ ENTITY_ID_UPDATE.put("Giant", "minecraft:giant");
|
|
+ ENTITY_ID_UPDATE.put("Guardian", "minecraft:guardian");
|
|
+ ENTITY_ID_UPDATE.put("Horse", "minecraft:horse");
|
|
+ ENTITY_ID_UPDATE.put("Husk", "minecraft:husk");
|
|
+ ENTITY_ID_UPDATE.put("Item", "minecraft:item");
|
|
+ ENTITY_ID_UPDATE.put("ItemFrame", "minecraft:item_frame");
|
|
+ ENTITY_ID_UPDATE.put("LavaSlime", "minecraft:magma_cube");
|
|
+ ENTITY_ID_UPDATE.put("LeashKnot", "minecraft:leash_knot");
|
|
+ ENTITY_ID_UPDATE.put("MinecartChest", "minecraft:chest_minecart");
|
|
+ ENTITY_ID_UPDATE.put("MinecartCommandBlock", "minecraft:commandblock_minecart");
|
|
+ ENTITY_ID_UPDATE.put("MinecartFurnace", "minecraft:furnace_minecart");
|
|
+ ENTITY_ID_UPDATE.put("MinecartHopper", "minecraft:hopper_minecart");
|
|
+ ENTITY_ID_UPDATE.put("MinecartRideable", "minecraft:minecart");
|
|
+ ENTITY_ID_UPDATE.put("MinecartSpawner", "minecraft:spawner_minecart");
|
|
+ ENTITY_ID_UPDATE.put("MinecartTNT", "minecraft:tnt_minecart");
|
|
+ ENTITY_ID_UPDATE.put("Mule", "minecraft:mule");
|
|
+ ENTITY_ID_UPDATE.put("MushroomCow", "minecraft:mooshroom");
|
|
+ ENTITY_ID_UPDATE.put("Ozelot", "minecraft:ocelot");
|
|
+ ENTITY_ID_UPDATE.put("Painting", "minecraft:painting");
|
|
+ ENTITY_ID_UPDATE.put("Pig", "minecraft:pig");
|
|
+ ENTITY_ID_UPDATE.put("PigZombie", "minecraft:zombie_pigman");
|
|
+ ENTITY_ID_UPDATE.put("PolarBear", "minecraft:polar_bear");
|
|
+ ENTITY_ID_UPDATE.put("PrimedTnt", "minecraft:tnt");
|
|
+ ENTITY_ID_UPDATE.put("Rabbit", "minecraft:rabbit");
|
|
+ ENTITY_ID_UPDATE.put("Sheep", "minecraft:sheep");
|
|
+ ENTITY_ID_UPDATE.put("Shulker", "minecraft:shulker");
|
|
+ ENTITY_ID_UPDATE.put("ShulkerBullet", "minecraft:shulker_bullet");
|
|
+ ENTITY_ID_UPDATE.put("Silverfish", "minecraft:silverfish");
|
|
+ ENTITY_ID_UPDATE.put("Skeleton", "minecraft:skeleton");
|
|
+ ENTITY_ID_UPDATE.put("SkeletonHorse", "minecraft:skeleton_horse");
|
|
+ ENTITY_ID_UPDATE.put("Slime", "minecraft:slime");
|
|
+ ENTITY_ID_UPDATE.put("SmallFireball", "minecraft:small_fireball");
|
|
+ ENTITY_ID_UPDATE.put("SnowMan", "minecraft:snowman");
|
|
+ ENTITY_ID_UPDATE.put("Snowball", "minecraft:snowball");
|
|
+ ENTITY_ID_UPDATE.put("SpectralArrow", "minecraft:spectral_arrow");
|
|
+ ENTITY_ID_UPDATE.put("Spider", "minecraft:spider");
|
|
+ ENTITY_ID_UPDATE.put("Squid", "minecraft:squid");
|
|
+ ENTITY_ID_UPDATE.put("Stray", "minecraft:stray");
|
|
+ ENTITY_ID_UPDATE.put("ThrownEgg", "minecraft:egg");
|
|
+ ENTITY_ID_UPDATE.put("ThrownEnderpearl", "minecraft:ender_pearl");
|
|
+ ENTITY_ID_UPDATE.put("ThrownExpBottle", "minecraft:xp_bottle");
|
|
+ ENTITY_ID_UPDATE.put("ThrownPotion", "minecraft:potion");
|
|
+ ENTITY_ID_UPDATE.put("Villager", "minecraft:villager");
|
|
+ ENTITY_ID_UPDATE.put("VillagerGolem", "minecraft:villager_golem");
|
|
+ ENTITY_ID_UPDATE.put("Witch", "minecraft:witch");
|
|
+ ENTITY_ID_UPDATE.put("WitherBoss", "minecraft:wither");
|
|
+ ENTITY_ID_UPDATE.put("WitherSkeleton", "minecraft:wither_skeleton");
|
|
+ ENTITY_ID_UPDATE.put("WitherSkull", "minecraft:wither_skull");
|
|
+ ENTITY_ID_UPDATE.put("Wolf", "minecraft:wolf");
|
|
+ ENTITY_ID_UPDATE.put("XPOrb", "minecraft:xp_orb");
|
|
+ ENTITY_ID_UPDATE.put("Zombie", "minecraft:zombie");
|
|
+ ENTITY_ID_UPDATE.put("ZombieHorse", "minecraft:zombie_horse");
|
|
+ ENTITY_ID_UPDATE.put("ZombieVillager", "minecraft:zombie_villager");
|
|
+ }
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ }
|
|
+
|
|
+ private static void registerThrowableProjectile(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerBlockNames("inTile"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractEntityRename.register(VERSION, ENTITY_ID_UPDATE::get);
|
|
+
|
|
+ registerMob("minecraft:armor_stand");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:arrow", new DataWalkerBlockNames("inTile"));
|
|
+ registerMob("minecraft:bat");
|
|
+ registerMob("minecraft:blaze");
|
|
+ registerMob("minecraft:cave_spider");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:chest_minecart", new DataWalkerBlockNames("DisplayTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:chest_minecart", new DataWalkerItemLists("Items"));
|
|
+ registerMob("minecraft:chicken");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:commandblock_minecart", new DataWalkerBlockNames("DisplayTile"));
|
|
+ registerMob("minecraft:cow");
|
|
+ registerMob("minecraft:creeper");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:donkey", new DataWalkerItemLists("Items", "ArmorItems", "HandItems"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:donkey", new DataWalkerItems("SaddleItem"));
|
|
+ registerThrowableProjectile("minecraft:egg");
|
|
+ registerMob("minecraft:elder_guardian");
|
|
+ registerMob("minecraft:ender_dragon");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:enderman", new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:enderman", new DataWalkerBlockNames("carried"));
|
|
+ registerMob("minecraft:endermite");
|
|
+ registerThrowableProjectile("minecraft:ender_pearl");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:falling_block", new DataWalkerBlockNames("Block"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:falling_block", new DataWalkerTileEntities("TileEntityData"));
|
|
+ registerThrowableProjectile("minecraft:fireball");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:fireworks_rocket", new DataWalkerItems("FireworksItem"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:furnace_minecart", new DataWalkerBlockNames("DisplayTile"));
|
|
+ registerMob("minecraft:ghast");
|
|
+ registerMob("minecraft:giant");
|
|
+ registerMob("minecraft:guardian");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:hopper_minecart", new DataWalkerBlockNames("DisplayTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:hopper_minecart", new DataWalkerItemLists("Items"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:horse", new DataWalkerItems("ArmorItem", "SaddleItem"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:horse", new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ registerMob("minecraft:husk");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:item", new DataWalkerItems("Item"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:item_frame", new DataWalkerItems("Item"));
|
|
+ registerMob("minecraft:magma_cube");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:minecart", new DataWalkerBlockNames("DisplayTile"));
|
|
+ registerMob("minecraft:mooshroom");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:mule", new DataWalkerItemLists("Items", "ArmorItems", "HandItems"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:mule", new DataWalkerItems("SaddleItem"));
|
|
+ registerMob("minecraft:ocelot");
|
|
+ registerMob("minecraft:pig");
|
|
+ registerMob("minecraft:polar_bear");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:potion", new DataWalkerItems("Potion"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:potion", new DataWalkerBlockNames("inTile"));
|
|
+ registerMob("minecraft:rabbit");
|
|
+ registerMob("minecraft:sheep");
|
|
+ registerMob("minecraft:shulker");
|
|
+ registerMob("minecraft:silverfish");
|
|
+ registerMob("minecraft:skeleton");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:skeleton_horse", new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:skeleton_horse", new DataWalkerItems("SaddleItem"));
|
|
+ registerMob("minecraft:slime");
|
|
+ registerThrowableProjectile("minecraft:small_fireball");
|
|
+ registerThrowableProjectile("minecraft:snowball");
|
|
+ registerMob("minecraft:snowman");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:spawner_minecart", new DataWalkerBlockNames("DisplayTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:spawner_minecart", (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ MCTypeRegistry.UNTAGGED_SPAWNER.convert(data, fromVersion, toVersion);
|
|
+ return null;
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:spectral_arrow", new DataWalkerBlockNames("inTile"));
|
|
+ registerMob("minecraft:spider");
|
|
+ registerMob("minecraft:squid");
|
|
+ registerMob("minecraft:stray");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:tnt_minecart", new DataWalkerBlockNames("DisplayTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:villager", (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "Inventory", fromVersion, toVersion);
|
|
+
|
|
+ final MapType<String> offers = data.getMap("Offers");
|
|
+ if (offers != null) {
|
|
+ final ListType recipes = offers.getList("Recipes", ObjectType.MAP);
|
|
+ if (recipes != null) {
|
|
+ for (int i = 0, len = recipes.size(); i < len; ++i) {
|
|
+ final MapType<String> recipe = recipes.getMap(i);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, recipe, "buy", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, recipe, "buyB", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, recipe, "sell", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "ArmorItems", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, data, "HandItems", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ registerMob("minecraft:villager_golem");
|
|
+ registerMob("minecraft:witch");
|
|
+ registerMob("minecraft:wither");
|
|
+ registerMob("minecraft:wither_skeleton");
|
|
+ registerThrowableProjectile("minecraft:wither_skull");
|
|
+ registerMob("minecraft:wolf");
|
|
+ registerThrowableProjectile("minecraft:xp_bottle");
|
|
+ registerMob("minecraft:zombie");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:zombie_horse", new DataWalkerItems("SaddleItem"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:zombie_horse", new DataWalkerItemLists("ArmorItems", "HandItems"));
|
|
+ registerMob("minecraft:zombie_pigman");
|
|
+ registerMob("minecraft:zombie_villager");
|
|
+ registerMob("minecraft:evocation_illager");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:llama", new DataWalkerItemLists("Items", "ArmorItems", "HandItems"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "minecraft:llama", new DataWalkerItems("SaddleItem", "DecorItem"));
|
|
+ registerMob("minecraft:vex");
|
|
+ registerMob("minecraft:vindication_illager");
|
|
+ // Don't need to re-register itemstack walker, the V704 will correctly choose the right id for armorstand based on
|
|
+ // the source version
|
|
+
|
|
+ // Enforce namespace for ids
|
|
+ MCTypeRegistry.ENTITY.addStructureHook(VERSION, new DataHookEnforceNamespacedID());
|
|
+ MCTypeRegistry.ENTITY_NAME.addStructureHook(VERSION, new DataHookValueTypeEnforceNamespaced());
|
|
+ }
|
|
+
|
|
+ private V705() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V804.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V804.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..0070a3d02a87b0f08cd5e74d4f106f3e97f6b4f8
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V804.java
|
|
@@ -0,0 +1,60 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V804 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V16W35A + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ITEM_STACK.addConverterForId("minecraft:banner", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> blockEntity = tag.getMap("BlockEntityTag");
|
|
+ if (blockEntity == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ if (!blockEntity.hasKey("Base", ObjectType.NUMBER)) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ data.setShort("Damage", (short)(blockEntity.getShort("Base") & 15));
|
|
+
|
|
+ final MapType<String> display = tag.getMap("display");
|
|
+ if (display != null) {
|
|
+ final ListType lore = display.getList("Lore", ObjectType.STRING);
|
|
+ if (lore != null) {
|
|
+ if (lore.size() == 1 && "(+NBT)".equals(lore.getString(0))) {
|
|
+ return null;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ blockEntity.remove("Base");
|
|
+ if (blockEntity.isEmpty()) {
|
|
+ tag.remove("BlockEntityTag");
|
|
+ }
|
|
+
|
|
+ if (tag.isEmpty()) {
|
|
+ data.remove("tag");
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V804() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V806.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V806.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..a2717b9d936872ec07141b0f3ae2a6eec81f2dbf
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V806.java
|
|
@@ -0,0 +1,40 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.Types;
|
|
+
|
|
+public final class V806 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V16W36A + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ final DataConverter<MapType<String>, MapType<String>> potionWaterUpdater = new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ tag = Types.NBT.createEmptyMap();
|
|
+ data.setMap("tag", tag);
|
|
+ }
|
|
+
|
|
+ if (!tag.hasKey("Potion", ObjectType.STRING)) {
|
|
+ tag.setString("Potion", "minecraft:water");
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ };
|
|
+
|
|
+ MCTypeRegistry.ITEM_STACK.addConverterForId("minecraft:potion", potionWaterUpdater);
|
|
+ MCTypeRegistry.ITEM_STACK.addConverterForId("minecraft:splash_potion", potionWaterUpdater);
|
|
+ MCTypeRegistry.ITEM_STACK.addConverterForId("minecraft:lingering_potion", potionWaterUpdater);
|
|
+ MCTypeRegistry.ITEM_STACK.addConverterForId("minecraft:tipped_arrow", potionWaterUpdater);
|
|
+ }
|
|
+
|
|
+ private V806() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V808.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V808.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..b058e5e9b34a9dd134ef93e7a397b5f1e4e11fbd
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V808.java
|
|
@@ -0,0 +1,30 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V808 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V16W38A + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ENTITY.addConverterForId("minecraft:shulker", new DataConverter<>(VERSION, 1) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ if (!data.hasKey("Color", ObjectType.NUMBER)) {
|
|
+ data.setByte("Color", (byte)10);
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, "minecraft:shulker_box", new DataWalkerItemLists("Items"));
|
|
+ }
|
|
+
|
|
+ private V808() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V813.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V813.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..b6de7c32acd0adf78812edbbd184117661599c80
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V813.java
|
|
@@ -0,0 +1,64 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class V813 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V16W40A;
|
|
+
|
|
+ public static final String[] SHULKER_ID_BY_COLOUR = new String[] {
|
|
+ "minecraft:white_shulker_box",
|
|
+ "minecraft:orange_shulker_box",
|
|
+ "minecraft:magenta_shulker_box",
|
|
+ "minecraft:light_blue_shulker_box",
|
|
+ "minecraft:yellow_shulker_box",
|
|
+ "minecraft:lime_shulker_box",
|
|
+ "minecraft:pink_shulker_box",
|
|
+ "minecraft:gray_shulker_box",
|
|
+ "minecraft:silver_shulker_box",
|
|
+ "minecraft:cyan_shulker_box",
|
|
+ "minecraft:purple_shulker_box",
|
|
+ "minecraft:blue_shulker_box",
|
|
+ "minecraft:brown_shulker_box",
|
|
+ "minecraft:green_shulker_box",
|
|
+ "minecraft:red_shulker_box",
|
|
+ "minecraft:black_shulker_box"
|
|
+ };
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.ITEM_STACK.addConverterForId("minecraft:shulker_box", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final MapType<String> blockEntity = tag.getMap("BlockEntityTag");
|
|
+ if (blockEntity == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ final int color = blockEntity.getInt("Color");
|
|
+ blockEntity.remove("Color");
|
|
+
|
|
+ data.setString("id", SHULKER_ID_BY_COLOUR[color % SHULKER_ID_BY_COLOUR.length]);
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.TILE_ENTITY.addConverterForId("minecraft:shulker_box", new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ data.remove("Color");
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V813() {}
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V816.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V816.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..4b427c128bd75d2dc8b36f0c377454385c029467
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V816.java
|
|
@@ -0,0 +1,28 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.DataConverter;
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import java.util.Locale;
|
|
+
|
|
+public final class V816 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V16W43A;
|
|
+
|
|
+ public static void register() {
|
|
+ MCTypeRegistry.OPTIONS.addStructureConverter(new DataConverter<>(VERSION) {
|
|
+ @Override
|
|
+ public MapType<String> convert(final MapType<String> data, final long sourceVersion, final long toVersion) {
|
|
+ final String lang = data.getString("lang");
|
|
+ if (lang != null) {
|
|
+ data.setString("lang", lang.toLowerCase(Locale.ROOT));
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+ });
|
|
+ }
|
|
+
|
|
+ private V816() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V820.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V820.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..9e2ef3cea4fd382a75a4d787fe2e2ff509eb49fc
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V820.java
|
|
@@ -0,0 +1,19 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.itemname.ConverterAbstractItemRename;
|
|
+import com.google.common.collect.ImmutableMap;
|
|
+
|
|
+public final class V820 {
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V1_11 + 1;
|
|
+
|
|
+ public static void register() {
|
|
+ ConverterAbstractItemRename.register(VERSION, ImmutableMap.of(
|
|
+ "minecraft:totem", "minecraft:totem_of_undying"
|
|
+ )::get);
|
|
+ }
|
|
+
|
|
+ private V820() {}
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V99.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V99.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..44aff7897f03e0f758e69111b729df6b53ee2ff8
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V99.java
|
|
@@ -0,0 +1,348 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.versions;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.MCVersions;
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.HelperItemNameV102;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.hooks.DataHookEnforceNamespacedID;
|
|
+import ca.spottedleaf.dataconverter.minecraft.hooks.DataHookValueTypeEnforceNamespaced;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.block_name.DataWalkerBlockNames;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItemLists;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.item_name.DataWalkerItemNames;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.itemstack.DataWalkerItems;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.tile_entity.DataWalkerTileEntities;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.WalkerUtils;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import org.apache.logging.log4j.LogManager;
|
|
+import org.apache.logging.log4j.Logger;
|
|
+import java.util.HashMap;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class V99 {
|
|
+
|
|
+ // Structure for all data before data upgrading was added to minecraft (pre 15w32a)
|
|
+
|
|
+ protected static final Logger LOGGER = LogManager.getLogger();
|
|
+
|
|
+ protected static final int VERSION = MCVersions.V15W32A - 1;
|
|
+
|
|
+ protected static final Map<String, String> ITEM_ID_TO_TILE_ENTITY_ID = new HashMap<>();
|
|
+
|
|
+ static {
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:furnace", "Furnace");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:lit_furnace", "Furnace");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:chest", "Chest");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:trapped_chest", "Chest");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:ender_chest", "EnderChest");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:jukebox", "RecordPlayer");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:dispenser", "Trap");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:dropper", "Dropper");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:sign", "Sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:mob_spawner", "MobSpawner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:noteblock", "Music");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:brewing_stand", "Cauldron");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:enhanting_table", "EnchantTable");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:command_block", "CommandBlock");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:beacon", "Beacon");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:skull", "Skull");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:daylight_detector", "DLDetector");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:hopper", "Hopper");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:banner", "Banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:flower_pot", "FlowerPot");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:repeating_command_block", "CommandBlock");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:chain_command_block", "CommandBlock");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:standing_sign", "Sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:wall_sign", "Sign");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:piston_head", "Piston");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:daylight_detector_inverted", "DLDetector");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:unpowered_comparator", "Comparator");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:powered_comparator", "Comparator");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:wall_banner", "Banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:standing_banner", "Banner");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:structure_block", "Structure");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:end_portal", "Airportal");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:end_gateway", "EndGateway");
|
|
+ ITEM_ID_TO_TILE_ENTITY_ID.put("minecraft:shield", "Banner");
|
|
+ }
|
|
+
|
|
+ private static void registerMob(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("Equipment"));
|
|
+ }
|
|
+
|
|
+ private static void registerProjectile(final String id) {
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, id, new DataWalkerBlockNames("inTile"));
|
|
+ }
|
|
+
|
|
+ private static void registerInventory(final String id) {
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, id, new DataWalkerItemLists("Items"));
|
|
+ }
|
|
+
|
|
+ public static void register() {
|
|
+ // entities
|
|
+ MCTypeRegistry.ENTITY.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ WalkerUtils.convert(MCTypeRegistry.ENTITY, data, "Riding", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Item", new DataWalkerItems("Item"));
|
|
+ registerProjectile("ThrownEgg");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Arrow", new DataWalkerBlockNames("inTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "TippedArrow", new DataWalkerBlockNames("inTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "SpectralArrow", new DataWalkerBlockNames("inTile"));
|
|
+ registerProjectile("Snowball");
|
|
+ registerProjectile("Fireball");
|
|
+ registerProjectile("SmallFireball");
|
|
+ registerProjectile("ThrownEnderpearl");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "ThrownPotion", new DataWalkerBlockNames("inTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "ThrownPotion", new DataWalkerItems("Potion"));
|
|
+ registerProjectile("ThrownExpBottle");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "ItemFrame", new DataWalkerItems("Item"));
|
|
+ registerProjectile("WitherSkull");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "FallingSand", new DataWalkerBlockNames("Block"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "FallingSand", new DataWalkerTileEntities("TileEntityData"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "FireworksRocketEntity", new DataWalkerItems("FireworksItem"));
|
|
+ // Note: Minecart is the generic entity. It can be subtyped via an int to become one of the specific minecarts
|
|
+ // (i.e rideable, chest, furnace, tnt, etc)
|
|
+ // Because of this, we add all walkers to the generic type, even though they might not be needed.
|
|
+ // Vanilla does not make the generic minecart convert spawners, but we do.
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Minecart", new DataWalkerBlockNames("DisplayTile")); // for all minecart types
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Minecart", new DataWalkerItemLists("Items")); // for chest types
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Minecart", (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ MCTypeRegistry.UNTAGGED_SPAWNER.convert(data, fromVersion, toVersion);
|
|
+ return null;
|
|
+ }); // for spawner type
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "MinecartRideable", new DataWalkerBlockNames("DisplayTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "MinecartChest", new DataWalkerBlockNames("DisplayTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "MinecartChest", new DataWalkerItemLists("Items"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "MinecartFurnace", new DataWalkerBlockNames("DisplayTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "MinecartTNT", new DataWalkerBlockNames("DisplayTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "MinecartSpawner", new DataWalkerBlockNames("DisplayTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "MinecartSpawner", (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ MCTypeRegistry.UNTAGGED_SPAWNER.convert(data, fromVersion, toVersion);
|
|
+ return null;
|
|
+ });
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "MinecartHopper", new DataWalkerBlockNames("DisplayTile"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "MinecartHopper", new DataWalkerItemLists("Items"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "MinecartCommandBlock", new DataWalkerBlockNames("DisplayTile"));
|
|
+ registerMob("ArmorStand");
|
|
+ registerMob("Creeper");
|
|
+ registerMob("Skeleton");
|
|
+ registerMob("Spider");
|
|
+ registerMob("Giant");
|
|
+ registerMob("Zombie");
|
|
+ registerMob("Slime");
|
|
+ registerMob("Ghast");
|
|
+ registerMob("PigZombie");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Enderman", new DataWalkerBlockNames("carried"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Enderman", new DataWalkerItemLists("Equipment"));
|
|
+ registerMob("CaveSpider");
|
|
+ registerMob("Silverfish");
|
|
+ registerMob("Blaze");
|
|
+ registerMob("LavaSlime");
|
|
+ registerMob("EnderDragon");
|
|
+ registerMob("WitherBoss");
|
|
+ registerMob("Bat");
|
|
+ registerMob("Witch");
|
|
+ registerMob("Endermite");
|
|
+ registerMob("Guardian");
|
|
+ registerMob("Pig");
|
|
+ registerMob("Sheep");
|
|
+ registerMob("Cow");
|
|
+ registerMob("Chicken");
|
|
+ registerMob("Squid");
|
|
+ registerMob("Wolf");
|
|
+ registerMob("MushroomCow");
|
|
+ registerMob("SnowMan");
|
|
+ registerMob("Ozelot");
|
|
+ registerMob("VillagerGolem");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "EntityHorse", new DataWalkerItemLists("Items", "Equipment"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "EntityHorse", new DataWalkerItems("ArmorItem", "SaddleItem"));
|
|
+ registerMob("Rabbit");
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Villager", new DataWalkerItemLists("Inventory", "Equipment"));
|
|
+ MCTypeRegistry.ENTITY.addWalker(VERSION, "Villager", (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final MapType<String> offers = data.getMap("Offers");
|
|
+ if (offers != null) {
|
|
+ final ListType recipes = offers.getList("Recipes", ObjectType.MAP);
|
|
+ if (recipes != null) {
|
|
+ for (int i = 0; i < recipes.size(); ++i) {
|
|
+ final MapType<String> recipe = recipes.getMap(i);
|
|
+
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, recipe, "buy", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, recipe, "buyB", fromVersion, toVersion);
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_STACK, recipe, "sell", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+ registerMob("Shulker");
|
|
+
|
|
+ // tile entities
|
|
+
|
|
+ // Inventory -> new DataWalkerItemLists("Items")
|
|
+ registerInventory("Furnace");
|
|
+ registerInventory("Chest");
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, "RecordPlayer", new DataWalkerItems("RecordItem"));
|
|
+ registerInventory("Trap");
|
|
+ registerInventory("Dropper");
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, "MobSpawner", (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ MCTypeRegistry.UNTAGGED_SPAWNER.convert(data, fromVersion, toVersion);
|
|
+ return null;
|
|
+ });
|
|
+ registerInventory("Cauldron");
|
|
+ registerInventory("Hopper");
|
|
+ // Note: Vanilla does not properly handle this case, it will not convert int ids!
|
|
+ MCTypeRegistry.TILE_ENTITY.addWalker(VERSION, "FlowerPot", new DataWalkerItemNames("Item"));
|
|
+
|
|
+ // rest
|
|
+
|
|
+ MCTypeRegistry.ITEM_STACK.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ WalkerUtils.convert(MCTypeRegistry.ITEM_NAME, data, "id", fromVersion, toVersion);
|
|
+
|
|
+ final MapType<String> tag = data.getMap("tag");
|
|
+ if (tag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ // only things here are in tag, if changed update if above
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ITEM_STACK, tag, "Items", fromVersion, toVersion);
|
|
+
|
|
+ MapType<String> entityTag = tag.getMap("EntityTag");
|
|
+ if (entityTag != null) {
|
|
+ String itemId = getStringId(data.getString("id"));
|
|
+ final String entityId;
|
|
+ if ("minecraft:armor_stand".equals(itemId)) {
|
|
+ // The check for version id is removed here. For whatever reason, the legacy
|
|
+ // data converters used entity id "minecraft:armor_stand" when version was greater-than 514,
|
|
+ // but entity ids were not namespaced until V705! So somebody fucked up the legacy converters.
|
|
+ // DFU agrees with my analysis here, it will only set the entityId here to the namespaced variant
|
|
+ // with the V705 schema.
|
|
+ entityId = "ArmorStand";
|
|
+ } else if ("minecraft:item_frame".equals(itemId)) {
|
|
+ // add missing item_frame entity id
|
|
+ entityId = "ItemFrame";
|
|
+ } else {
|
|
+ entityId = entityTag.getString("id");
|
|
+ }
|
|
+
|
|
+ final boolean removeId;
|
|
+ if (entityId == null) {
|
|
+ if (!"minecraft:air".equals(itemId)) {
|
|
+ LOGGER.warn("Unable to resolve Entity for ItemStack (V99): " + data.getGeneric("id"));
|
|
+ }
|
|
+ removeId = false;
|
|
+ } else {
|
|
+ removeId = !entityTag.hasKey("id", ObjectType.STRING);
|
|
+ if (removeId) {
|
|
+ entityTag.setString("id", entityId);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ final MapType<String> replace = MCTypeRegistry.ENTITY.convert(entityTag, fromVersion, toVersion);
|
|
+
|
|
+ if (replace != null) {
|
|
+ entityTag = replace;
|
|
+ tag.setMap("EntityTag", entityTag);
|
|
+ }
|
|
+ if (removeId) {
|
|
+ entityTag.remove("id");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ MapType<String> blockEntityTag = tag.getMap("BlockEntityTag");
|
|
+ if (blockEntityTag != null) {
|
|
+ final String itemId = getStringId(data.getString("id"));
|
|
+ final String entityId = ITEM_ID_TO_TILE_ENTITY_ID.get(itemId);
|
|
+ final boolean removeId;
|
|
+ if (entityId == null) {
|
|
+ if (!"minecraft:air".equals(itemId)) {
|
|
+ LOGGER.warn("Unable to resolve BlockEntity for ItemStack (V99): " + data.getGeneric("id"));
|
|
+ }
|
|
+ removeId = false;
|
|
+ } else {
|
|
+ removeId = !blockEntityTag.hasKey("id", ObjectType.STRING);
|
|
+ blockEntityTag.setString("id", entityId);
|
|
+ }
|
|
+ final MapType<String> replace = MCTypeRegistry.TILE_ENTITY.convert(blockEntityTag, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ blockEntityTag = replace;
|
|
+ tag.setMap("BlockEntityTag", blockEntityTag);
|
|
+ }
|
|
+ if (removeId) {
|
|
+ blockEntityTag.remove("id");
|
|
+ }
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BLOCK_NAME, tag, "CanDestroy", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.BLOCK_NAME, tag, "CanPlaceOn", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.PLAYER.addStructureWalker(VERSION, new DataWalkerItemLists("Inventory", "EnderItems"));
|
|
+
|
|
+ MCTypeRegistry.CHUNK.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ final MapType<String> level = data.getMap("Level");
|
|
+ if (level == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ENTITY, level, "Entities", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.TILE_ENTITY, level, "TileEntities", fromVersion, toVersion);
|
|
+
|
|
+ final ListType tileTicks = level.getList("TileTicks", ObjectType.MAP);
|
|
+ if (tileTicks != null) {
|
|
+ for (int i = 0, len = tileTicks.size(); i < len; ++i) {
|
|
+ final MapType<String> tileTick = tileTicks.getMap(i);
|
|
+ WalkerUtils.convert(MCTypeRegistry.BLOCK_NAME, tileTick, "i", fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.ENTITY_CHUNK.addStructureWalker(VERSION, (final MapType<String> data, final long fromVersion, final long toVersion) -> {
|
|
+ WalkerUtils.convertList(MCTypeRegistry.ENTITY, data, "Entities", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+ MCTypeRegistry.SAVED_DATA.addStructureWalker(VERSION, (final MapType<String> root, final long fromVersion, final long toVersion) -> {
|
|
+ final MapType<String> data = root.getMap("data");
|
|
+ if (data == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ WalkerUtils.convertValues(MCTypeRegistry.STRUCTURE_FEATURE, data, "Features", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.OBJECTIVE, data, "Objectives", fromVersion, toVersion);
|
|
+ WalkerUtils.convertList(MCTypeRegistry.TEAM, data, "Teams", fromVersion, toVersion);
|
|
+
|
|
+ return null;
|
|
+ });
|
|
+
|
|
+
|
|
+ // Enforce namespacing for ids
|
|
+ MCTypeRegistry.BLOCK_NAME.addStructureHook(VERSION, new DataHookValueTypeEnforceNamespaced());
|
|
+ MCTypeRegistry.ITEM_NAME.addStructureHook(VERSION, new DataHookValueTypeEnforceNamespaced());
|
|
+ MCTypeRegistry.ITEM_STACK.addStructureHook(VERSION, new DataHookEnforceNamespacedID());
|
|
+
|
|
+ // Entity is absent; the String form is not yet namespaced, unlike the above.
|
|
+ }
|
|
+
|
|
+ protected static String getStringId(final Object id) {
|
|
+ if (id instanceof String) {
|
|
+ return (String)id;
|
|
+ } else if (id instanceof Number) {
|
|
+ return HelperItemNameV102.getNameFromId(((Number)id).intValue());
|
|
+ } else {
|
|
+ return null;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ private V99() {
|
|
+ throw new RuntimeException();
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/block_name/DataWalkerBlockNames.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/block_name/DataWalkerBlockNames.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..930e014858ef635ebe25f7f92dc81ba0eaac50a8
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/block_name/DataWalkerBlockNames.java
|
|
@@ -0,0 +1,11 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.walkers.block_name;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.DataWalkerTypePaths;
|
|
+
|
|
+public final class DataWalkerBlockNames extends DataWalkerTypePaths<Object, Object> {
|
|
+
|
|
+ public DataWalkerBlockNames(final String... paths) {
|
|
+ super(MCTypeRegistry.BLOCK_NAME, paths);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/generic/DataWalkerListPaths.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/generic/DataWalkerListPaths.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..7c8f6a5034b48e1ec2c5925211f491115ca735aa
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/generic/DataWalkerListPaths.java
|
|
@@ -0,0 +1,38 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.walkers.generic;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataType;
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataWalker;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public class DataWalkerListPaths<T, R> implements DataWalker<String> {
|
|
+
|
|
+ protected final DataType<T, R> type;
|
|
+ protected final String[] paths;
|
|
+
|
|
+ public DataWalkerListPaths(final DataType<T, R> type, final String... paths) {
|
|
+ this.type = type;
|
|
+ this.paths = paths;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public final MapType<String> walk(final MapType<String> data, final long fromVersion, final long toVersion) {
|
|
+ final DataType<T, R> type = this.type;
|
|
+ for (final String path : this.paths) {
|
|
+ final ListType list = data.getListUnchecked(path);
|
|
+ if (list == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = list.size(); i < len; ++i) {
|
|
+ final Object current = list.getGeneric(i);
|
|
+ final Object converted = type.convert((T)current, fromVersion, toVersion);
|
|
+ if (converted != null) {
|
|
+ list.setGeneric(i, converted);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/generic/DataWalkerTypePaths.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/generic/DataWalkerTypePaths.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..e66b4e0f7cdb032b545ace7ba852ad7979f3c96a
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/generic/DataWalkerTypePaths.java
|
|
@@ -0,0 +1,34 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.walkers.generic;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataType;
|
|
+import ca.spottedleaf.dataconverter.converters.datatypes.DataWalker;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public class DataWalkerTypePaths<T, R> implements DataWalker<String> {
|
|
+
|
|
+ protected final DataType<T, R> type;
|
|
+ protected final String[] paths;
|
|
+
|
|
+ public DataWalkerTypePaths(final DataType<T, R> type, final String... paths) {
|
|
+ this.type = type;
|
|
+ this.paths = paths;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public final MapType<String> walk(final MapType<String> data, final long fromVersion, final long toVersion) {
|
|
+ for (final String path : this.paths) {
|
|
+ final Object current = data.getGeneric(path);
|
|
+ if (current == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ final Object converted = this.type.convert((T)current, fromVersion, toVersion);
|
|
+
|
|
+ if (converted != null) {
|
|
+ data.setGeneric(path, converted);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/generic/WalkerUtils.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/generic/WalkerUtils.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..1e81a1e46a9c0ffceb564a7b1fc4d1b51009f3f7
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/generic/WalkerUtils.java
|
|
@@ -0,0 +1,127 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.walkers.generic;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.converters.helpers.RenameHelper;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCDataType;
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCValueType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import java.util.ArrayList;
|
|
+
|
|
+public final class WalkerUtils {
|
|
+
|
|
+ public static void convert(final MCDataType type, final MapType<String> data, final String path, final long fromVersion, final long toVersion) {
|
|
+ if (data == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final MapType<String> map = data.getMap(path);
|
|
+ if (map != null) {
|
|
+ final MapType<String> replace = type.convert(map, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ data.setMap(path, replace);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void convertList(final MCDataType type, final MapType<String> data, final String path, final long fromVersion, final long toVersion) {
|
|
+ if (data == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final ListType list = data.getList(path, ObjectType.MAP);
|
|
+ if (list != null) {
|
|
+ for (int i = 0, len = list.size(); i < len; ++i) {
|
|
+ final MapType<String> replace = type.convert(list.getMap(i), fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ list.setMap(i, replace);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void convert(final MCValueType type, final MapType<String> data, final String path, final long fromVersion, final long toVersion) {
|
|
+ if (data == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final Object value = data.getGeneric(path);
|
|
+ if (value != null) {
|
|
+ final Object converted = type.convert(value, fromVersion, toVersion);
|
|
+ if (converted != null) {
|
|
+ data.setGeneric(path, converted);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void convert(final MCValueType type, final ListType data, final long fromVersion, final long toVersion) {
|
|
+ if (data == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ for (int i = 0, len = data.size(); i < len; ++i) {
|
|
+ final Object value = data.getGeneric(i);
|
|
+ final Object converted = type.convert(value, fromVersion, toVersion);
|
|
+ if (converted != null) {
|
|
+ data.setGeneric(i, converted);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void convertList(final MCValueType type, final MapType<String> data, final String path, final long fromVersion, final long toVersion) {
|
|
+ if (data == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final ListType list = data.getListUnchecked(path);
|
|
+ if (list != null) {
|
|
+ convert(type, list, fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void convertKeys(final MCValueType type, final MapType<String> data, final String path, final long fromVersion, final long toVersion) {
|
|
+ if (data == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ final MapType<String> map = data.getMap(path);
|
|
+ if (map != null) {
|
|
+ convertKeys(type, map, fromVersion, toVersion);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public static void convertKeys(final MCValueType type, final MapType<String> data, final long fromVersion, final long toVersion) {
|
|
+ if (data == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ RenameHelper.renameKeys(data, (final String input) -> {
|
|
+ return (String)type.convert(input, fromVersion, toVersion);
|
|
+ });
|
|
+ }
|
|
+
|
|
+ public static void convertValues(final MCDataType type, final MapType<String> data, final String path, final long fromVersion, final long toVersion) {
|
|
+ if (data == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ convertValues(type, data.getMap(path), fromVersion, toVersion);
|
|
+ }
|
|
+
|
|
+ public static void convertValues(final MCDataType type, final MapType<String> data, final long fromVersion, final long toVersion) {
|
|
+ if (data == null) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
+ for (final String key : data.keys()) {
|
|
+ final MapType<String> value = data.getMap(key);
|
|
+ if (value != null) {
|
|
+ final MapType<String> replace = type.convert(value, fromVersion, toVersion);
|
|
+ if (replace != null) {
|
|
+ // no CME, key is in map already
|
|
+ data.setMap(key, replace);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/item_name/DataWalkerItemNames.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/item_name/DataWalkerItemNames.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..14e291efd864d97dcf83db01c09b9daaae1949bd
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/item_name/DataWalkerItemNames.java
|
|
@@ -0,0 +1,11 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.walkers.item_name;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.DataWalkerTypePaths;
|
|
+
|
|
+public final class DataWalkerItemNames extends DataWalkerTypePaths<Object, Object> {
|
|
+
|
|
+ public DataWalkerItemNames(final String... paths) {
|
|
+ super(MCTypeRegistry.ITEM_NAME, paths);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/itemstack/DataWalkerItemLists.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/itemstack/DataWalkerItemLists.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5b4402c3cc4e68e9c591e8bbb4a2542d8e2214d4
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/itemstack/DataWalkerItemLists.java
|
|
@@ -0,0 +1,12 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.walkers.itemstack;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.DataWalkerListPaths;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public class DataWalkerItemLists extends DataWalkerListPaths<MapType<String>, MapType<String>> {
|
|
+
|
|
+ public DataWalkerItemLists(final String... paths) {
|
|
+ super(MCTypeRegistry.ITEM_STACK, paths);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/itemstack/DataWalkerItems.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/itemstack/DataWalkerItems.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..04770e8378ac8784895cdfe400a47b0b601c2187
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/itemstack/DataWalkerItems.java
|
|
@@ -0,0 +1,12 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.walkers.itemstack;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.DataWalkerTypePaths;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public class DataWalkerItems extends DataWalkerTypePaths<MapType<String>, MapType<String>> {
|
|
+
|
|
+ public DataWalkerItems(final String... paths) {
|
|
+ super(MCTypeRegistry.ITEM_STACK, paths);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/tile_entity/DataWalkerTileEntities.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/tile_entity/DataWalkerTileEntities.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..d9cc21bf41cb4b377752b684f8e59818cd620103
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/walkers/tile_entity/DataWalkerTileEntities.java
|
|
@@ -0,0 +1,12 @@
|
|
+package ca.spottedleaf.dataconverter.minecraft.walkers.tile_entity;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry;
|
|
+import ca.spottedleaf.dataconverter.minecraft.walkers.generic.DataWalkerTypePaths;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+
|
|
+public final class DataWalkerTileEntities extends DataWalkerTypePaths<MapType<String>, MapType<String>> {
|
|
+
|
|
+ public DataWalkerTileEntities(final String... paths) {
|
|
+ super(MCTypeRegistry.TILE_ENTITY, paths);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/types/ListType.java b/src/main/java/ca/spottedleaf/dataconverter/types/ListType.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..a91834f7eb6d1aa49f42b0f25085ac84b93471bd
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/types/ListType.java
|
|
@@ -0,0 +1,270 @@
|
|
+package ca.spottedleaf.dataconverter.types;
|
|
+
|
|
+public interface ListType {
|
|
+
|
|
+ @Override
|
|
+ public int hashCode();
|
|
+
|
|
+ @Override
|
|
+ public boolean equals(final Object other);
|
|
+
|
|
+ // Provides a deep copy of this list
|
|
+ public ListType copy();
|
|
+
|
|
+ // returns NONE if no type has been assigned. if NONE, then this list is also empty. It is not true on the other hand that an empty list has no type.
|
|
+ public ObjectType getType();
|
|
+
|
|
+ public int size();
|
|
+
|
|
+ public void remove(final int index);
|
|
+
|
|
+ public default Object getGeneric(final int index) {
|
|
+ switch (this.getType()) {
|
|
+ case NONE:
|
|
+ throw new IllegalStateException("List is empty and has no type");
|
|
+ case BYTE:
|
|
+ return Byte.valueOf(this.getByte(index));
|
|
+ case SHORT:
|
|
+ return Short.valueOf(this.getShort(index));
|
|
+ case INT:
|
|
+ return Integer.valueOf(this.getInt(index));
|
|
+ case LONG:
|
|
+ return Long.valueOf(this.getLong(index));
|
|
+ case FLOAT:
|
|
+ return Float.valueOf(this.getFloat(index));
|
|
+ case DOUBLE:
|
|
+ return Double.valueOf(this.getDouble(index));
|
|
+ case NUMBER:
|
|
+ return this.getNumber(index);
|
|
+ case BYTE_ARRAY:
|
|
+ return this.getBytes(index);
|
|
+ case SHORT_ARRAY:
|
|
+ return this.getShorts(index);
|
|
+ case INT_ARRAY:
|
|
+ return this.getInts(index);
|
|
+ case LONG_ARRAY:
|
|
+ return this.getLongs(index);
|
|
+ case LIST:
|
|
+ return this.getList(index);
|
|
+ case MAP:
|
|
+ return this.getMap(index);
|
|
+ case STRING:
|
|
+ return this.getString(index);
|
|
+ default:
|
|
+ throw new UnsupportedOperationException(this.getType().name());
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public default void setGeneric(final int index, final Object to) {
|
|
+ if (to instanceof Number) {
|
|
+ if (to instanceof Byte) {
|
|
+ this.setByte(index, ((Byte)to).byteValue());
|
|
+ return;
|
|
+ } else if (to instanceof Short) {
|
|
+ this.setShort(index, ((Short)to).shortValue());
|
|
+ return;
|
|
+ } else if (to instanceof Integer) {
|
|
+ this.setInt(index, ((Integer)to).intValue());
|
|
+ return;
|
|
+ } else if (to instanceof Long) {
|
|
+ this.setLong(index, ((Long)to).longValue());
|
|
+ return;
|
|
+ } else if (to instanceof Float) {
|
|
+ this.setFloat(index, ((Float)to).floatValue());
|
|
+ return;
|
|
+ } else if (to instanceof Double) {
|
|
+ this.setDouble(index, ((Double)to).doubleValue());
|
|
+ return;
|
|
+ } // else fall through to throw
|
|
+ } else if (to instanceof MapType) {
|
|
+ this.setMap(index, (MapType<?>)to);
|
|
+ return;
|
|
+ } else if (to instanceof ListType) {
|
|
+ this.setList(index, (ListType)to);
|
|
+ return;
|
|
+ } else if (to instanceof String) {
|
|
+ this.setString(index, (String)to);
|
|
+ return;
|
|
+ } else if (to.getClass().isArray()) {
|
|
+ if (to instanceof byte[]) {
|
|
+ this.setBytes(index, (byte[])to);
|
|
+ return;
|
|
+ } else if (to instanceof short[]) {
|
|
+ this.setShorts(index, (short[])to);
|
|
+ return;
|
|
+ } else if (to instanceof int[]) {
|
|
+ this.setInts(index, (int[])to);
|
|
+ return;
|
|
+ } else if (to instanceof long[]) {
|
|
+ this.setLongs(index, (long[])to);
|
|
+ return;
|
|
+ } // else fall through to throw
|
|
+ }
|
|
+
|
|
+ throw new IllegalArgumentException("Object " + to + " is not a valid type!");
|
|
+ }
|
|
+
|
|
+ // types here are strict. if the type on get does not match the underlying type, will throw.
|
|
+
|
|
+ public Number getNumber(final int index);
|
|
+
|
|
+ // if the value at index is a Number but not a byte, then returns the number casted to byte. If the value at the index is not a number, then throws
|
|
+ public byte getByte(final int index);
|
|
+
|
|
+ public void setByte(final int index, final byte to);
|
|
+
|
|
+ // if the value at index is a Number but not a short, then returns the number casted to short. If the value at the index is not a number, then throws
|
|
+ public short getShort(final int index);
|
|
+
|
|
+ public void setShort(final int index, final short to);
|
|
+
|
|
+ // if the value at index is a Number but not a int, then returns the number casted to int. If the value at the index is not a number, then throws
|
|
+ public int getInt(final int index);
|
|
+
|
|
+ public void setInt(final int index, final int to);
|
|
+
|
|
+ // if the value at index is a Number but not a long, then returns the number casted to long. If the value at the index is not a number, then throws
|
|
+ public long getLong(final int index);
|
|
+
|
|
+ public void setLong(final int index, final long to);
|
|
+
|
|
+ // if the value at index is a Number but not a float, then returns the number casted to float. If the value at the index is not a number, then throws
|
|
+ public float getFloat(final int index);
|
|
+
|
|
+ public void setFloat(final int index, final float to);
|
|
+
|
|
+ // if the value at index is a Number but not a double, then returns the number casted to double. If the value at the index is not a number, then throws
|
|
+ public double getDouble(final int index);
|
|
+
|
|
+ public void setDouble(final int index, final double to);
|
|
+
|
|
+ public byte[] getBytes(final int index);
|
|
+
|
|
+ public void setBytes(final int index, final byte[] to);
|
|
+
|
|
+ public short[] getShorts(final int index);
|
|
+
|
|
+ public void setShorts(final int index, final short[] to);
|
|
+
|
|
+ public int[] getInts(final int index);
|
|
+
|
|
+ public void setInts(final int index, final int[] to);
|
|
+
|
|
+ public long[] getLongs(final int index);
|
|
+
|
|
+ public void setLongs(final int index, final long[] to);
|
|
+
|
|
+ public ListType getList(final int index);
|
|
+
|
|
+ public void setList(final int index, final ListType list);
|
|
+
|
|
+ public <T> MapType<T> getMap(final int index);
|
|
+
|
|
+ public void setMap(final int index, final MapType<?> to);
|
|
+
|
|
+ public String getString(final int index);
|
|
+
|
|
+ public void setString(final int index, final String to);
|
|
+
|
|
+ public default void addGeneric(final Object to) {
|
|
+ if (to instanceof Number) {
|
|
+ if (to instanceof Byte) {
|
|
+ this.addByte(((Byte)to).byteValue());
|
|
+ return;
|
|
+ } else if (to instanceof Short) {
|
|
+ this.addShort(((Short)to).shortValue());
|
|
+ return;
|
|
+ } else if (to instanceof Integer) {
|
|
+ this.addInt(((Integer)to).intValue());
|
|
+ return;
|
|
+ } else if (to instanceof Long) {
|
|
+ this.addLong(((Long)to).longValue());
|
|
+ return;
|
|
+ } else if (to instanceof Float) {
|
|
+ this.addFloat(((Float)to).floatValue());
|
|
+ return;
|
|
+ } else if (to instanceof Double) {
|
|
+ this.addDouble(((Double)to).doubleValue());
|
|
+ return;
|
|
+ } // else fall through to throw
|
|
+ } else if (to instanceof MapType) {
|
|
+ this.addMap((MapType<?>)to);
|
|
+ return;
|
|
+ } else if (to instanceof ListType) {
|
|
+ this.addList((ListType)to);
|
|
+ return;
|
|
+ } else if (to instanceof String) {
|
|
+ this.addString((String)to);
|
|
+ return;
|
|
+ } else if (to.getClass().isArray()) {
|
|
+ if (to instanceof byte[]) {
|
|
+ this.addByteArray((byte[])to);
|
|
+ return;
|
|
+ } else if (to instanceof short[]) {
|
|
+ this.addShortArray((short[])to);
|
|
+ return;
|
|
+ } else if (to instanceof int[]) {
|
|
+ this.addIntArray((int[])to);
|
|
+ return;
|
|
+ } else if (to instanceof long[]) {
|
|
+ this.addLongArray((long[])to);
|
|
+ return;
|
|
+ } // else fall through to throw
|
|
+ }
|
|
+
|
|
+ throw new IllegalArgumentException("Object " + to + " is not a valid type!");
|
|
+ }
|
|
+
|
|
+ public void addByte(final byte b);
|
|
+
|
|
+ public void addByte(final int index, final byte b);
|
|
+
|
|
+ public void addShort(final short s);
|
|
+
|
|
+ public void addShort(final int index, final short s);
|
|
+
|
|
+ public void addInt(final int i);
|
|
+
|
|
+ public void addInt(final int index, final int i);
|
|
+
|
|
+ public void addLong(final long l);
|
|
+
|
|
+ public void addLong(final int index, final long l);
|
|
+
|
|
+ public void addFloat(final float f);
|
|
+
|
|
+ public void addFloat(final int index, final float f);
|
|
+
|
|
+ public void addDouble(final double d);
|
|
+
|
|
+ public void addDouble(final int index, final double d);
|
|
+
|
|
+ public void addByteArray(final byte[] arr);
|
|
+
|
|
+ public void addByteArray(final int index, final byte[] arr);
|
|
+
|
|
+ public void addShortArray(final short[] arr);
|
|
+
|
|
+ public void addShortArray(final int index, final short[] arr);
|
|
+
|
|
+ public void addIntArray(final int[] arr);
|
|
+
|
|
+ public void addIntArray(final int index, final int[] arr);
|
|
+
|
|
+ public void addLongArray(final long[] arr);
|
|
+
|
|
+ public void addLongArray(final int index, final long[] arr);
|
|
+
|
|
+ public void addList(final ListType list);
|
|
+
|
|
+ public void addList(final int index, final ListType list);
|
|
+
|
|
+ public void addMap(final MapType<?> map);
|
|
+
|
|
+ public void addMap(final int index, final MapType<?> map);
|
|
+
|
|
+ public void addString(final String string);
|
|
+
|
|
+ public void addString(final int index, final String string);
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/types/MapType.java b/src/main/java/ca/spottedleaf/dataconverter/types/MapType.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..d3ed052fea257ef2f8be54bf5e15f89a454d355f
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/types/MapType.java
|
|
@@ -0,0 +1,199 @@
|
|
+package ca.spottedleaf.dataconverter.types;
|
|
+
|
|
+import java.util.Set;
|
|
+
|
|
+public interface MapType<K> {
|
|
+
|
|
+ @Override
|
|
+ public int hashCode();
|
|
+
|
|
+ @Override
|
|
+ public boolean equals(final Object other);
|
|
+
|
|
+ public int size();
|
|
+
|
|
+ public boolean isEmpty();
|
|
+
|
|
+ public void clear();
|
|
+
|
|
+ public Set<K> keys();
|
|
+
|
|
+ // Provides a deep copy of this map
|
|
+ public MapType<K> copy();
|
|
+
|
|
+ public boolean hasKey(final K key);
|
|
+
|
|
+ public boolean hasKey(final K key, final ObjectType type);
|
|
+
|
|
+ public void remove(final K key);
|
|
+
|
|
+ public Object getGeneric(final K key);
|
|
+
|
|
+ // types here are not strict. if the key maps to a different type, default is always returned
|
|
+ // if default is not a parameter, then default is always null
|
|
+
|
|
+ public Number getNumber(final K key);
|
|
+
|
|
+ public Number getNumber(final K key, final Number dfl);
|
|
+
|
|
+ public boolean getBoolean(final K key);
|
|
+
|
|
+ public boolean getBoolean(final K key, final boolean dfl);
|
|
+
|
|
+ public void setBoolean(final K key, final boolean val);
|
|
+
|
|
+ // if the mapped value is a Number but not a byte, then the number is casted to byte. If the mapped value does not exist or is not a number, returns 0
|
|
+ public byte getByte(final K key);
|
|
+
|
|
+ // if the mapped value is a Number but not a byte, then the number is casted to byte. If the mapped value does not exist or is not a number, returns dfl
|
|
+ public byte getByte(final K key, final byte dfl);
|
|
+
|
|
+ public void setByte(final K key, final byte val);
|
|
+
|
|
+ // if the mapped value is a Number but not a short, then the number is casted to short. If the mapped value does not exist or is not a number, returns 0
|
|
+ public short getShort(final K key);
|
|
+
|
|
+ // if the mapped value is a Number but not a short, then the number is casted to short. If the mapped value does not exist or is not a number, returns dfl
|
|
+ public short getShort(final K key, final short dfl);
|
|
+
|
|
+ public void setShort(final K key, final short val);
|
|
+
|
|
+ // if the mapped value is a Number but not a int, then the number is casted to int. If the mapped value does not exist or is not a number, returns 0
|
|
+ public int getInt(final K key);
|
|
+
|
|
+ // if the mapped value is a Number but not a int, then the number is casted to int. If the mapped value does not exist or is not a number, returns dfl
|
|
+ public int getInt(final K key, final int dfl);
|
|
+
|
|
+ public void setInt(final K key, final int val);
|
|
+
|
|
+ // if the mapped value is a Number but not a long, then the number is casted to long. If the mapped value does not exist or is not a number, returns 0
|
|
+ public long getLong(final K key);
|
|
+
|
|
+ // if the mapped value is a Number but not a long, then the number is casted to long. If the mapped value does not exist or is not a number, returns dfl
|
|
+ public long getLong(final K key, final long dfl);
|
|
+
|
|
+ public void setLong(final K key, final long val);
|
|
+
|
|
+ // if the mapped value is a Number but not a float, then the number is casted to float. If the mapped value does not exist or is not a number, returns 0
|
|
+ public float getFloat(final K key);
|
|
+
|
|
+ // if the mapped value is a Number but not a float, then the number is casted to float. If the mapped value does not exist or is not a number, returns dfl
|
|
+ public float getFloat(final K key, final float dfl);
|
|
+
|
|
+ public void setFloat(final K key, final float val);
|
|
+
|
|
+ // if the mapped value is a Number but not a double, then the number is casted to double. If the mapped value does not exist or is not a number, returns 0
|
|
+ public double getDouble(final K key);
|
|
+
|
|
+ // if the mapped value is a Number but not a double, then the number is casted to double. If the mapped value does not exist or is not a number, returns dfl
|
|
+ public double getDouble(final K key, final double dfl);
|
|
+
|
|
+ public void setDouble(final K key, final double val);
|
|
+
|
|
+ public byte[] getBytes(final K key);
|
|
+
|
|
+ public byte[] getBytes(final K key, final byte[] dfl);
|
|
+
|
|
+ public void setBytes(final K key, final byte[] val);
|
|
+
|
|
+ public short[] getShorts(final K key);
|
|
+
|
|
+ public short[] getShorts(final K key, final short[] dfl);
|
|
+
|
|
+ public void setShorts(final K key, final short[] val);
|
|
+
|
|
+ public int[] getInts(final K key);
|
|
+
|
|
+ public int[] getInts(final K key, final int[] dfl);
|
|
+
|
|
+ public void setInts(final K key, final int[] val);
|
|
+
|
|
+ public long[] getLongs(final K key);
|
|
+
|
|
+ public long[] getLongs(final K key, final long[] dfl);
|
|
+
|
|
+ public void setLongs(final K key, final long[] val);
|
|
+
|
|
+ public ListType getListUnchecked(final K key);
|
|
+
|
|
+ public ListType getListUnchecked(final K key, final ListType dfl);
|
|
+
|
|
+ public default ListType getList(final K key, final ObjectType type) {
|
|
+ return this.getList(key, type, null);
|
|
+ }
|
|
+
|
|
+ public default ListType getList(final K key, final ObjectType type, final ListType dfl) {
|
|
+ final ListType ret = this.getListUnchecked(key, null);
|
|
+ final ObjectType retType;
|
|
+ if (ret != null && ((retType = ret.getType()) == type || retType == ObjectType.UNDEFINED)) {
|
|
+ return ret;
|
|
+ } else {
|
|
+ return dfl;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ public void setList(final K key, final ListType val);
|
|
+
|
|
+ public <T> MapType<T> getMap(final K key);
|
|
+
|
|
+ public <T> MapType<T> getMap(final K key, final MapType<T> dfl);
|
|
+
|
|
+ public void setMap(final K key, final MapType<?> val);
|
|
+
|
|
+ public String getString(final K key);
|
|
+
|
|
+ public String getString(final K key, final String dfl);
|
|
+
|
|
+ public void setString(final K key, final String val);
|
|
+
|
|
+ public default void setGeneric(final K key, final Object value) {
|
|
+ if (value instanceof Boolean) {
|
|
+ this.setBoolean(key, ((Boolean)value).booleanValue());
|
|
+ } else if (value instanceof Number) {
|
|
+ if (value instanceof Byte) {
|
|
+ this.setByte(key, ((Byte)value).byteValue());
|
|
+ return;
|
|
+ } else if (value instanceof Short) {
|
|
+ this.setShort(key, ((Short)value).shortValue());
|
|
+ return;
|
|
+ } else if (value instanceof Integer) {
|
|
+ this.setInt(key, ((Integer)value).intValue());
|
|
+ return;
|
|
+ } else if (value instanceof Long) {
|
|
+ this.setLong(key, ((Long)value).longValue());
|
|
+ return;
|
|
+ } else if (value instanceof Float) {
|
|
+ this.setFloat(key, ((Float)value).floatValue());
|
|
+ return;
|
|
+ } else if (value instanceof Double) {
|
|
+ this.setDouble(key, ((Double)value).doubleValue());
|
|
+ return;
|
|
+ } // else fall through to throw
|
|
+ } else if (value instanceof MapType) {
|
|
+ this.setMap(key, (MapType<?>)value);
|
|
+ return;
|
|
+ } else if (value instanceof ListType) {
|
|
+ this.setList(key, (ListType)value);
|
|
+ return;
|
|
+ } else if (value instanceof String) {
|
|
+ this.setString(key, (String)value);
|
|
+ return;
|
|
+ } else if (value.getClass().isArray()) {
|
|
+ if (value instanceof byte[]) {
|
|
+ this.setBytes(key, (byte[])value);
|
|
+ return;
|
|
+ } else if (value instanceof short[]) {
|
|
+ this.setShorts(key, (short[])value);
|
|
+ return;
|
|
+ } else if (value instanceof int[]) {
|
|
+ this.setInts(key, (int[])value);
|
|
+ return;
|
|
+ } else if (value instanceof long[]) {
|
|
+ this.setLongs(key, (long[])value);
|
|
+ return;
|
|
+ } // else fall through to throw
|
|
+ }
|
|
+
|
|
+ throw new IllegalArgumentException("Object " + value + " is not a valid type!");
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/types/ObjectType.java b/src/main/java/ca/spottedleaf/dataconverter/types/ObjectType.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..1aab91233ddb98c3af5d424bac120891f1ee16c7
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/types/ObjectType.java
|
|
@@ -0,0 +1,72 @@
|
|
+package ca.spottedleaf.dataconverter.types;
|
|
+
|
|
+public enum ObjectType {
|
|
+ NONE(null),
|
|
+ BYTE(Byte.class),
|
|
+ SHORT(Short.class),
|
|
+ INT(Integer.class),
|
|
+ LONG(Long.class),
|
|
+ FLOAT(Float.class),
|
|
+ DOUBLE(Double.class),
|
|
+ NUMBER(Number.class),
|
|
+ BYTE_ARRAY(byte[].class),
|
|
+ SHORT_ARRAY(short[].class),
|
|
+ INT_ARRAY(int[].class),
|
|
+ LONG_ARRAY(long[].class),
|
|
+ LIST(ListType.class),
|
|
+ MAP(MapType.class),
|
|
+ STRING(String.class),
|
|
+ UNDEFINED(null);
|
|
+
|
|
+ private final Class<?> clazz;
|
|
+ private final boolean isNumber;
|
|
+
|
|
+ private ObjectType(final Class<?> clazz) {
|
|
+ this.clazz = clazz;
|
|
+ this.isNumber = clazz != null && Number.class.isAssignableFrom(clazz);
|
|
+ }
|
|
+
|
|
+ public boolean isNumber() {
|
|
+ return this.isNumber;
|
|
+ }
|
|
+
|
|
+ public Class<?> getObjectClass() {
|
|
+ return this.clazz;
|
|
+ }
|
|
+
|
|
+ public static ObjectType getType(final Object object) {
|
|
+ if (object instanceof Number) {
|
|
+ if (object instanceof Byte) {
|
|
+ return BYTE;
|
|
+ } else if (object instanceof Short) {
|
|
+ return SHORT;
|
|
+ } else if (object instanceof Integer) {
|
|
+ return INT;
|
|
+ } else if (object instanceof Long) {
|
|
+ return LONG;
|
|
+ } else if (object instanceof Float) {
|
|
+ return FLOAT;
|
|
+ } else if (object instanceof Double) {
|
|
+ return DOUBLE;
|
|
+ } // else return null
|
|
+ } else if (object instanceof MapType) {
|
|
+ return MAP;
|
|
+ } else if (object instanceof ListType) {
|
|
+ return LIST;
|
|
+ } else if (object instanceof String) {
|
|
+ return STRING;
|
|
+ } else if (object.getClass().isArray()) {
|
|
+ if (object instanceof byte[]) {
|
|
+ return BYTE_ARRAY;
|
|
+ } else if (object instanceof short[]) {
|
|
+ return SHORT_ARRAY;
|
|
+ } else if (object instanceof int[]) {
|
|
+ return INT_ARRAY;
|
|
+ } else if (object instanceof long[]) {
|
|
+ return LONG_ARRAY;
|
|
+ } // else return null
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/types/TypeUtil.java b/src/main/java/ca/spottedleaf/dataconverter/types/TypeUtil.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..156a2ea46f8f88a02e88b50d7bb7be82ecd41919
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/types/TypeUtil.java
|
|
@@ -0,0 +1,9 @@
|
|
+package ca.spottedleaf.dataconverter.types;
|
|
+
|
|
+public interface TypeUtil {
|
|
+
|
|
+ public ListType createEmptyList();
|
|
+
|
|
+ public <K> MapType<K> createEmptyMap();
|
|
+
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/types/Types.java b/src/main/java/ca/spottedleaf/dataconverter/types/Types.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..2ab9e3b579f20c9a189518496c522155630a36c4
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/types/Types.java
|
|
@@ -0,0 +1,15 @@
|
|
+package ca.spottedleaf.dataconverter.types;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.types.json.JsonTypeCompressedUtil;
|
|
+import ca.spottedleaf.dataconverter.types.json.JsonTypeUtil;
|
|
+import ca.spottedleaf.dataconverter.types.nbt.NBTTypeUtil;
|
|
+
|
|
+public interface Types {
|
|
+
|
|
+ public static final TypeUtil NBT = new NBTTypeUtil();
|
|
+
|
|
+ public static final TypeUtil JSON = new JsonTypeUtil();
|
|
+
|
|
+ // why does this exist
|
|
+ public static final TypeUtil JSON_COMPRESSED = new JsonTypeCompressedUtil();
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/types/json/JsonListType.java b/src/main/java/ca/spottedleaf/dataconverter/types/json/JsonListType.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..4c56144f0cba37f3d7788e5c08e41f6874ae92fc
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/types/json/JsonListType.java
|
|
@@ -0,0 +1,408 @@
|
|
+package ca.spottedleaf.dataconverter.types.json;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import com.google.gson.JsonArray;
|
|
+import com.google.gson.JsonElement;
|
|
+import com.google.gson.JsonObject;
|
|
+import com.google.gson.JsonPrimitive;
|
|
+
|
|
+public final class JsonListType implements ListType {
|
|
+
|
|
+ protected final JsonArray array;
|
|
+ protected final boolean compressed;
|
|
+
|
|
+ public JsonListType(final boolean compressed) {
|
|
+ this.array = new JsonArray();
|
|
+ this.compressed = compressed;
|
|
+ }
|
|
+
|
|
+ public JsonListType(final JsonArray array, final boolean compressed) {
|
|
+ this.array = array;
|
|
+ this.compressed = compressed;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean equals(final Object obj) {
|
|
+ if (this == obj) {
|
|
+ return true;
|
|
+ }
|
|
+
|
|
+ if (obj == null || obj.getClass() != JsonListType.class) {
|
|
+ return false;
|
|
+ }
|
|
+
|
|
+ return this.array.equals(((JsonListType)obj).array);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int hashCode() {
|
|
+ return this.array.hashCode();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public String toString() {
|
|
+ return "JsonListType{" +
|
|
+ "array=" + this.array +
|
|
+ ", compressed=" + this.compressed +
|
|
+ '}';
|
|
+ }
|
|
+
|
|
+ public JsonArray getJson() {
|
|
+ return this.array;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public ListType copy() {
|
|
+ return new JsonListType(JsonTypeUtil.copyJson(this.array), this.compressed);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public ObjectType getType() {
|
|
+ return ObjectType.UNDEFINED;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int size() {
|
|
+ return this.array.size();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void remove(final int index) {
|
|
+ this.array.remove(index);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Number getNumber(final int index) {
|
|
+ final JsonElement element = this.array.get(index);
|
|
+ if (element instanceof JsonPrimitive) {
|
|
+ final JsonPrimitive primitive = (JsonPrimitive)element;
|
|
+ if (primitive.isNumber()) {
|
|
+ return primitive.getAsNumber();
|
|
+ } else if (primitive.isBoolean()) {
|
|
+ return primitive.getAsBoolean() ? Byte.valueOf((byte)1) : Byte.valueOf((byte)0);
|
|
+ } else if (this.compressed && primitive.isString()) {
|
|
+ try {
|
|
+ return Integer.valueOf(Integer.parseInt(primitive.getAsString()));
|
|
+ } catch (final NumberFormatException ex) {
|
|
+ return null;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public byte getByte(final int index) {
|
|
+ final Number number = this.getNumber(index);
|
|
+
|
|
+ return number == null ? 0 : number.byteValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setByte(final int index, final byte to) {
|
|
+ this.array.set(index, new JsonPrimitive(Byte.valueOf(to)));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public short getShort(final int index) {
|
|
+ final Number number = this.getNumber(index);
|
|
+
|
|
+ return number == null ? 0 : number.shortValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setShort(final int index, final short to) {
|
|
+ this.array.set(index, new JsonPrimitive(Short.valueOf(to)));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int getInt(final int index) {
|
|
+ final Number number = this.getNumber(index);
|
|
+
|
|
+ return number == null ? 0 : number.intValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setInt(final int index, final int to) {
|
|
+ this.array.set(index, new JsonPrimitive(Integer.valueOf(to)));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long getLong(final int index) {
|
|
+ final Number number = this.getNumber(index);
|
|
+
|
|
+ return number == null ? 0 : number.longValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setLong(final int index, final long to) {
|
|
+ this.array.set(index, new JsonPrimitive(Long.valueOf(to)));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public float getFloat(final int index) {
|
|
+ final Number number = this.getNumber(index);
|
|
+
|
|
+ return number == null ? 0 : number.floatValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setFloat(final int index, final float to) {
|
|
+ this.array.set(index, new JsonPrimitive(Float.valueOf(to)));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public double getDouble(final int index) {
|
|
+ final Number number = this.getNumber(index);
|
|
+
|
|
+ return number == null ? 0 : number.doubleValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setDouble(final int index, final double to) {
|
|
+ this.array.set(index, new JsonPrimitive(Double.valueOf(to)));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public byte[] getBytes(final int index) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setBytes(final int index, final byte[] to) {
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public short[] getShorts(final int index) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setShorts(final int index, final short[] to) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int[] getInts(final int index) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setInts(final int index, final int[] to) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long[] getLongs(final int index) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setLongs(final int index, final long[] to) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public ListType getList(final int index) {
|
|
+ final JsonElement element = this.array.get(index);
|
|
+ if (element instanceof JsonArray) {
|
|
+ return new JsonListType((JsonArray)element, this.compressed);
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setList(final int index, final ListType list) {
|
|
+ this.array.set(index, ((JsonListType)list).array);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> getMap(final int index) {
|
|
+ final JsonElement element = this.array.get(index);
|
|
+ if (element instanceof JsonObject) {
|
|
+ return new JsonMapType((JsonObject)element, this.compressed);
|
|
+ }
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setMap(final int index, final MapType<?> to) {
|
|
+ this.array.set(index, ((JsonMapType)to).map);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public String getString(final int index) {
|
|
+ final JsonElement element = this.array.get(index);
|
|
+ if (element instanceof JsonPrimitive) {
|
|
+ final JsonPrimitive primitive = (JsonPrimitive)element;
|
|
+ if (primitive.isString() || (this.compressed && primitive.isNumber())) {
|
|
+ return primitive.getAsString();
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setString(final int index, final String to) {
|
|
+ this.array.set(index, new JsonPrimitive(to));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addByte(final byte b) {
|
|
+ this.array.add(Byte.valueOf(b));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addByte(final int index, final byte b) {
|
|
+ // doesn't implement any methods for adding at index... yee haw...
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addShort(final short s) {
|
|
+ this.array.add(Short.valueOf(s));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addShort(final int index, final short s) {
|
|
+ // doesn't implement any methods for adding at index... yee haw...
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addInt(final int i) {
|
|
+ this.array.add(Integer.valueOf(i));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addInt(final int index, final int i) {
|
|
+ // doesn't implement any methods for adding at index... yee haw...
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addLong(final long l) {
|
|
+ this.array.add(Long.valueOf(l));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addLong(final int index, final long l) {
|
|
+ // doesn't implement any methods for adding at index... yee haw...
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addFloat(final float f) {
|
|
+ this.array.add(Float.valueOf(f));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addFloat(final int index, final float f) {
|
|
+ // doesn't implement any methods for adding at index... yee haw...
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addDouble(final double d) {
|
|
+ this.array.add(Double.valueOf(d));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addDouble(final int index, final double d) {
|
|
+ // doesn't implement any methods for adding at index... yee haw...
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addByteArray(final byte[] arr) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addByteArray(final int index, final byte[] arr) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addShortArray(final short[] arr) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addShortArray(final int index, final short[] arr) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addIntArray(final int[] arr) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addIntArray(final int index, final int[] arr) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addLongArray(final long[] arr) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addLongArray(final int index, final long[] arr) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addList(final ListType list) {
|
|
+ this.array.add(((JsonListType)list).array);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addList(final int index, final ListType list) {
|
|
+ // doesn't implement any methods for adding at index... yee haw...
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addMap(final MapType<?> map) {
|
|
+ this.array.add(((JsonMapType)map).map);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addMap(final int index, final MapType<?> map) {
|
|
+ // doesn't implement any methods for adding at index... yee haw...
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addString(final String string) {
|
|
+ this.array.add(string);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addString(final int index, final String string) {
|
|
+ // doesn't implement any methods for adding at index... yee haw...
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/types/json/JsonMapType.java b/src/main/java/ca/spottedleaf/dataconverter/types/json/JsonMapType.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..f495c4d65519b3bba6ac371415b7338a726195d8
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/types/json/JsonMapType.java
|
|
@@ -0,0 +1,443 @@
|
|
+package ca.spottedleaf.dataconverter.types.json;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import com.google.gson.JsonArray;
|
|
+import com.google.gson.JsonElement;
|
|
+import com.google.gson.JsonObject;
|
|
+import com.google.gson.JsonPrimitive;
|
|
+import java.util.LinkedHashSet;
|
|
+import java.util.Map;
|
|
+import java.util.Set;
|
|
+
|
|
+public final class JsonMapType implements MapType<String> {
|
|
+
|
|
+ protected final JsonObject map;
|
|
+ protected final boolean compressed;
|
|
+
|
|
+ public JsonMapType(final boolean compressed) {
|
|
+ this.map = new JsonObject();
|
|
+ this.compressed = compressed;
|
|
+ }
|
|
+
|
|
+ public JsonMapType(final JsonObject map, final boolean compressed) {
|
|
+ this.map = map;
|
|
+ this.compressed = compressed;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean equals(final Object obj) {
|
|
+ if (this == obj) {
|
|
+ return true;
|
|
+ }
|
|
+
|
|
+ if (obj == null || obj.getClass() != JsonMapType.class) {
|
|
+ return false;
|
|
+ }
|
|
+
|
|
+ return this.map.equals(((JsonMapType)obj).map);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int hashCode() {
|
|
+ return this.map.hashCode();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public String toString() {
|
|
+ return "JsonMapType{" +
|
|
+ "map=" + this.map +
|
|
+ ", compressed=" + this.compressed +
|
|
+ '}';
|
|
+ }
|
|
+
|
|
+ public JsonObject getJson() {
|
|
+ return this.map;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int size() {
|
|
+ return this.map.entrySet().size();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean isEmpty() {
|
|
+ return this.map.entrySet().isEmpty();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void clear() {
|
|
+ this.map.entrySet().clear();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Set<String> keys() {
|
|
+ // ah shit. no keyset method
|
|
+ final Set<String> keys = new LinkedHashSet<>();
|
|
+
|
|
+ for (final Map.Entry<String, JsonElement> entry : this.map.entrySet()) {
|
|
+ keys.add(entry.getKey());
|
|
+ }
|
|
+
|
|
+ return keys;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> copy() {
|
|
+ return new JsonMapType(JsonTypeUtil.copyJson(this.map), this.compressed);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean hasKey(final String key) {
|
|
+ return this.map.has(key);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean hasKey(final String key, final ObjectType type) {
|
|
+ final JsonElement element = this.map.get(key);
|
|
+ if (element == null) {
|
|
+ return false;
|
|
+ }
|
|
+
|
|
+ if (type == ObjectType.UNDEFINED) {
|
|
+ return true;
|
|
+ }
|
|
+
|
|
+ if (element.isJsonArray()) {
|
|
+ return type == ObjectType.LIST;
|
|
+ } else if (element.isJsonObject()) {
|
|
+ return type == ObjectType.MAP;
|
|
+ } else if (element.isJsonNull()) {
|
|
+ return false;
|
|
+ }
|
|
+
|
|
+ final JsonPrimitive primitive = (JsonPrimitive)element;
|
|
+ if (primitive.isString()) {
|
|
+ return type == ObjectType.STRING || (this.compressed && type == ObjectType.NUMBER);
|
|
+ } else if (primitive.isBoolean()) {
|
|
+ return type.isNumber();
|
|
+ } else {
|
|
+ // is number
|
|
+ final Number number = primitive.getAsNumber();
|
|
+ if (number instanceof Byte) {
|
|
+ return type == ObjectType.BYTE || (this.compressed && type == ObjectType.STRING);
|
|
+ } else if (number instanceof Short) {
|
|
+ return type == ObjectType.SHORT || (this.compressed && type == ObjectType.STRING);
|
|
+ } else if (number instanceof Integer) {
|
|
+ return type == ObjectType.INT || (this.compressed && type == ObjectType.STRING);
|
|
+ } else if (number instanceof Long) {
|
|
+ return type == ObjectType.LONG || (this.compressed && type == ObjectType.STRING);
|
|
+ } else if (number instanceof Float) {
|
|
+ return type == ObjectType.FLOAT || (this.compressed && type == ObjectType.STRING);
|
|
+ } else {
|
|
+ return type == ObjectType.DOUBLE || (this.compressed && type == ObjectType.STRING);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void remove(final String key) {
|
|
+ this.map.remove(key);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Object getGeneric(final String key) {
|
|
+ final JsonElement element = this.map.get(key);
|
|
+ if (element == null || element.isJsonNull()) {
|
|
+ return null;
|
|
+ } else if (element.isJsonObject()) {
|
|
+ return new JsonMapType((JsonObject)element, this.compressed);
|
|
+ } else if (element.isJsonArray()) {
|
|
+ return new JsonListType((JsonArray)element, this.compressed);
|
|
+ } else {
|
|
+ // primitive
|
|
+ final JsonPrimitive primitive = (JsonPrimitive)element;
|
|
+ if (primitive.isNumber()) {
|
|
+ return primitive.getAsNumber();
|
|
+ } else if (primitive.isString()) {
|
|
+ return primitive.getAsString();
|
|
+ } else if (primitive.isBoolean()) {
|
|
+ return Boolean.valueOf(primitive.getAsBoolean());
|
|
+ } else {
|
|
+ throw new IllegalStateException("Unknown json object " + element);
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Number getNumber(final String key) {
|
|
+ return this.getNumber(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Number getNumber(final String key, final Number dfl) {
|
|
+ final JsonElement element = this.map.get(key);
|
|
+ if (element instanceof JsonPrimitive) {
|
|
+ final JsonPrimitive primitive = (JsonPrimitive)element;
|
|
+ if (primitive.isNumber()) {
|
|
+ return primitive.getAsNumber();
|
|
+ } else if (primitive.isBoolean()) {
|
|
+ return primitive.getAsBoolean() ? Byte.valueOf((byte)1) : Byte.valueOf((byte)0);
|
|
+ } else if (this.compressed && primitive.isString()) {
|
|
+ try {
|
|
+ return Integer.valueOf(Integer.parseInt(primitive.getAsString()));
|
|
+ } catch (final NumberFormatException ex) {
|
|
+ return null;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean getBoolean(final String key) {
|
|
+ return this.getBoolean(key, false);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean getBoolean(final String key, final boolean dfl) {
|
|
+ final JsonElement element = this.map.get(key);
|
|
+ if (element instanceof JsonPrimitive) {
|
|
+ final JsonPrimitive primitive = (JsonPrimitive)element;
|
|
+ if (primitive.isNumber()) {
|
|
+ return primitive.getAsNumber().byteValue() != 0;
|
|
+ } else if (primitive.isBoolean()) {
|
|
+ return primitive.getAsBoolean();
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setBoolean(final String key, final boolean val) {
|
|
+ this.map.addProperty(key, Boolean.valueOf(val));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public byte getByte(final String key) {
|
|
+ return this.getByte(key, (byte)0);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public byte getByte(final String key, final byte dfl) {
|
|
+ final Number ret = this.getNumber(key, null);
|
|
+ return ret == null ? dfl : ret.byteValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setByte(final String key, final byte val) {
|
|
+ this.map.addProperty(key, Byte.valueOf(val));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public short getShort(final String key) {
|
|
+ return this.getShort(key, (short)0);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public short getShort(final String key, final short dfl) {
|
|
+ final Number ret = this.getNumber(key, null);
|
|
+ return ret == null ? dfl : ret.shortValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setShort(final String key, final short val) {
|
|
+ this.map.addProperty(key, Short.valueOf(val));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int getInt(final String key) {
|
|
+ return this.getInt(key, 0);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int getInt(final String key, final int dfl) {
|
|
+ final Number ret = this.getNumber(key, null);
|
|
+ return ret == null ? dfl : ret.intValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setInt(final String key, final int val) {
|
|
+ this.map.addProperty(key, Integer.valueOf(val));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long getLong(final String key) {
|
|
+ return this.getLong(key, 0L);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long getLong(final String key, final long dfl) {
|
|
+ final Number ret = this.getNumber(key, null);
|
|
+ return ret == null ? dfl : ret.longValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setLong(final String key, final long val) {
|
|
+ this.map.addProperty(key, Long.valueOf(val));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public float getFloat(final String key) {
|
|
+ return this.getFloat(key, 0.0F);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public float getFloat(final String key, final float dfl) {
|
|
+ final Number ret = this.getNumber(key, null);
|
|
+ return ret == null ? dfl : ret.floatValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setFloat(final String key, final float val) {
|
|
+ this.map.addProperty(key, Float.valueOf(val));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public double getDouble(final String key) {
|
|
+ return this.getDouble(key, 0.0D);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public double getDouble(final String key, final double dfl) {
|
|
+ final Number ret = this.getNumber(key, null);
|
|
+ return ret == null ? dfl : ret.doubleValue();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setDouble(final String key, final double val) {
|
|
+ this.map.addProperty(key, Double.valueOf(val));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public byte[] getBytes(final String key) {
|
|
+ return this.getBytes(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public byte[] getBytes(final String key, final byte[] dfl) {
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setBytes(final String key, final byte[] val) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public short[] getShorts(final String key) {
|
|
+ return this.getShorts(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public short[] getShorts(final String key, final short[] dfl) {
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setShorts(final String key, final short[] val) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int[] getInts(final String key) {
|
|
+ return this.getInts(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int[] getInts(final String key, final int[] dfl) {
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setInts(final String key, final int[] val) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long[] getLongs(final String key) {
|
|
+ return this.getLongs(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long[] getLongs(final String key, final long[] dfl) {
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setLongs(final String key, final long[] val) {
|
|
+ // JSON does not support raw primitive arrays
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public ListType getListUnchecked(final String key) {
|
|
+ return this.getListUnchecked(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public ListType getListUnchecked(final String key, final ListType dfl) {
|
|
+ final JsonElement element = this.map.get(key);
|
|
+ if (element instanceof JsonArray) {
|
|
+ return new JsonListType((JsonArray)element, this.compressed);
|
|
+ }
|
|
+
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setList(final String key, final ListType val) {
|
|
+ this.map.add(key, ((JsonListType)val).getJson());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType getMap(final String key) {
|
|
+ return this.getMap(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType getMap(final String key, final MapType dfl) {
|
|
+ final JsonElement element = this.map.get(key);
|
|
+ if (element instanceof JsonObject) {
|
|
+ return new JsonMapType((JsonObject)element, this.compressed);
|
|
+ }
|
|
+
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setMap(final String key, final MapType<?> val) {
|
|
+ this.map.add(key, ((JsonMapType)val).map);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public String getString(final String key) {
|
|
+ return this.getString(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public String getString(final String key, final String dfl) {
|
|
+ final JsonElement element = this.map.get(key);
|
|
+ if (element instanceof JsonPrimitive) {
|
|
+ final JsonPrimitive primitive = (JsonPrimitive)element;
|
|
+ if (primitive.isString()) {
|
|
+ return primitive.getAsString();
|
|
+ } else if (this.compressed && primitive.isNumber()) {
|
|
+ return primitive.getAsString();
|
|
+ }
|
|
+ }
|
|
+
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setString(final String key, final String val) {
|
|
+ this.map.addProperty(key, val);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/types/json/JsonTypeCompressedUtil.java b/src/main/java/ca/spottedleaf/dataconverter/types/json/JsonTypeCompressedUtil.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..9c3093b66b847b5248bde923243fce78842bf67f
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/types/json/JsonTypeCompressedUtil.java
|
|
@@ -0,0 +1,18 @@
|
|
+package ca.spottedleaf.dataconverter.types.json;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.TypeUtil;
|
|
+
|
|
+public final class JsonTypeCompressedUtil implements TypeUtil {
|
|
+
|
|
+ @Override
|
|
+ public ListType createEmptyList() {
|
|
+ return new JsonListType(true);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> createEmptyMap() {
|
|
+ return new JsonMapType(true);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/types/json/JsonTypeUtil.java b/src/main/java/ca/spottedleaf/dataconverter/types/json/JsonTypeUtil.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..9410ae68395a09c7710bdbb2ccc6acf6633cad23
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/types/json/JsonTypeUtil.java
|
|
@@ -0,0 +1,81 @@
|
|
+package ca.spottedleaf.dataconverter.types.json;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.TypeUtil;
|
|
+import ca.spottedleaf.dataconverter.types.nbt.NBTListType;
|
|
+import ca.spottedleaf.dataconverter.types.nbt.NBTMapType;
|
|
+import com.google.gson.JsonArray;
|
|
+import com.google.gson.JsonElement;
|
|
+import com.google.gson.JsonNull;
|
|
+import com.google.gson.JsonObject;
|
|
+import com.google.gson.JsonPrimitive;
|
|
+import com.google.gson.internal.Streams;
|
|
+import com.google.gson.stream.JsonReader;
|
|
+import java.io.StringReader;
|
|
+import java.util.Map;
|
|
+
|
|
+public final class JsonTypeUtil implements TypeUtil {
|
|
+
|
|
+ @Override
|
|
+ public ListType createEmptyList() {
|
|
+ return new JsonListType(false);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> createEmptyMap() {
|
|
+ return new JsonMapType(false);
|
|
+ }
|
|
+
|
|
+ public static <T extends JsonElement> T copyJson(final T from) {
|
|
+ // This is stupidly inefficient. However, deepCopy() is not exposed in this gson version.
|
|
+ final String out = from.toString();
|
|
+
|
|
+ return (T)Streams.parse(new JsonReader(new StringReader(out)));
|
|
+ }
|
|
+
|
|
+ private static Object convertToGenericNBT(final JsonElement element, final boolean compressed) {
|
|
+ if (element instanceof JsonObject) {
|
|
+ return convertJsonToNBT(new JsonMapType((JsonObject)element, compressed));
|
|
+ } else if (element instanceof JsonArray) {
|
|
+ return convertJsonToNBT(new JsonListType((JsonArray)element, compressed));
|
|
+ } else if (element instanceof JsonNull) {
|
|
+ return null;
|
|
+ } else {
|
|
+ final JsonPrimitive primitive = (JsonPrimitive)element;
|
|
+ if (primitive.isBoolean()) {
|
|
+ return primitive.getAsBoolean() ? Byte.valueOf((byte)1) : Byte.valueOf((byte)0);
|
|
+ } else if (primitive.isNumber()) {
|
|
+ return primitive.getAsNumber();
|
|
+ } else if (primitive.isString()) {
|
|
+ return primitive.getAsString();
|
|
+ }
|
|
+ }
|
|
+
|
|
+ throw new IllegalStateException("Unrecognized type " + element);
|
|
+ }
|
|
+
|
|
+ public static NBTMapType convertJsonToNBT(final JsonMapType json) {
|
|
+ final NBTMapType ret = new NBTMapType();
|
|
+ for (final Map.Entry<String, JsonElement> entry : json.map.entrySet()) {
|
|
+ final Object obj = convertToGenericNBT(entry.getValue(), json.compressed);
|
|
+ if (obj == null) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
+ ret.setGeneric(entry.getKey(), obj);
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+
|
|
+ public static NBTListType convertJsonToNBT(final JsonListType json) {
|
|
+ final NBTListType ret = new NBTListType();
|
|
+
|
|
+ for (int i = 0, len = json.size(); i < len; ++i) {
|
|
+ ret.addGeneric(convertToGenericNBT(json.array.get(i), json.compressed));
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/types/nbt/NBTListType.java b/src/main/java/ca/spottedleaf/dataconverter/types/nbt/NBTListType.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..3a0187de2c7b455cd15419da08026d5d9f72d35b
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/types/nbt/NBTListType.java
|
|
@@ -0,0 +1,433 @@
|
|
+package ca.spottedleaf.dataconverter.types.nbt;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import net.minecraft.nbt.ByteArrayTag;
|
|
+import net.minecraft.nbt.ByteTag;
|
|
+import net.minecraft.nbt.CompoundTag;
|
|
+import net.minecraft.nbt.DoubleTag;
|
|
+import net.minecraft.nbt.FloatTag;
|
|
+import net.minecraft.nbt.IntArrayTag;
|
|
+import net.minecraft.nbt.IntTag;
|
|
+import net.minecraft.nbt.ListTag;
|
|
+import net.minecraft.nbt.LongArrayTag;
|
|
+import net.minecraft.nbt.LongTag;
|
|
+import net.minecraft.nbt.NumericTag;
|
|
+import net.minecraft.nbt.ShortTag;
|
|
+import net.minecraft.nbt.StringTag;
|
|
+import net.minecraft.nbt.Tag;
|
|
+
|
|
+public final class NBTListType implements ListType {
|
|
+
|
|
+ private final ListTag list;
|
|
+
|
|
+ public NBTListType() {
|
|
+ this.list = new ListTag();
|
|
+ }
|
|
+
|
|
+ public NBTListType(final ListTag tag) {
|
|
+ this.list = tag;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean equals(final Object obj) {
|
|
+ if (this == obj) {
|
|
+ return true;
|
|
+ }
|
|
+ if (obj == null || obj.getClass() != NBTListType.class) {
|
|
+ return false;
|
|
+ }
|
|
+
|
|
+ return this.list.equals(((NBTListType)obj).list);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int hashCode() {
|
|
+ return this.list.hashCode();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public String toString() {
|
|
+ return "NBTListType{" +
|
|
+ "list=" + this.list +
|
|
+ '}';
|
|
+ }
|
|
+
|
|
+ public ListTag getTag() {
|
|
+ return this.list;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public ListType copy() {
|
|
+ return new NBTListType(this.list.copy());
|
|
+ }
|
|
+
|
|
+ protected static ObjectType getType(final byte id) {
|
|
+ switch (id) {
|
|
+ case 0: // END
|
|
+ return ObjectType.NONE;
|
|
+ case 1: // BYTE
|
|
+ return ObjectType.BYTE;
|
|
+ case 2: // SHORT
|
|
+ return ObjectType.SHORT;
|
|
+ case 3: // INT
|
|
+ return ObjectType.INT;
|
|
+ case 4: // LONG
|
|
+ return ObjectType.LONG;
|
|
+ case 5: // FLOAT
|
|
+ return ObjectType.FLOAT;
|
|
+ case 6: // DOUBLE
|
|
+ return ObjectType.DOUBLE;
|
|
+ case 7: // BYTE_ARRAY
|
|
+ return ObjectType.BYTE_ARRAY;
|
|
+ case 8: // STRING
|
|
+ return ObjectType.STRING;
|
|
+ case 9: // LIST
|
|
+ return ObjectType.LIST;
|
|
+ case 10: // COMPOUND
|
|
+ return ObjectType.MAP;
|
|
+ case 11: // INT_ARRAY
|
|
+ return ObjectType.INT_ARRAY;
|
|
+ case 12: // LONG_ARRAY
|
|
+ return ObjectType.LONG_ARRAY;
|
|
+ default:
|
|
+ throw new IllegalStateException("Unknown type: " + id);
|
|
+ }
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public ObjectType getType() {
|
|
+ return getType(this.list.getElementType());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int size() {
|
|
+ return this.list.size();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void remove(final int index) {
|
|
+ this.list.remove(index);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Number getNumber(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof NumericTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return ((NumericTag)tag).getAsNumber();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public byte getByte(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof NumericTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return ((NumericTag)tag).getAsByte();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setByte(final int index, final byte to) {
|
|
+ this.list.set(index, ByteTag.valueOf(to));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public short getShort(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof NumericTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return ((NumericTag)tag).getAsShort();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setShort(final int index, final short to) {
|
|
+ this.list.set(index, ShortTag.valueOf(to));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int getInt(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof NumericTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return ((NumericTag)tag).getAsInt();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setInt(final int index, final int to) {
|
|
+ this.list.set(index, IntTag.valueOf(to));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long getLong(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof NumericTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return ((NumericTag)tag).getAsLong();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setLong(final int index, final long to) {
|
|
+ this.list.set(index, LongTag.valueOf(to));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public float getFloat(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof NumericTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return ((NumericTag)tag).getAsFloat();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setFloat(final int index, final float to) {
|
|
+ this.list.set(index, FloatTag.valueOf(to));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public double getDouble(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof NumericTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return ((NumericTag)tag).getAsDouble();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setDouble(final int index, final double to) {
|
|
+ this.list.set(index, DoubleTag.valueOf(to));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public byte[] getBytes(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof ByteArrayTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return ((ByteArrayTag)tag).getAsByteArray();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setBytes(final int index, final byte[] to) {
|
|
+ this.list.set(index, new ByteArrayTag(to));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public short[] getShorts(final int index) {
|
|
+ // NBT does not support shorts
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setShorts(final int index, final short[] to) {
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int[] getInts(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof IntArrayTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return ((IntArrayTag)tag).getAsIntArray();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setInts(final int index, final int[] to) {
|
|
+ this.list.set(index, new IntArrayTag(to));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long[] getLongs(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof LongArrayTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return ((LongArrayTag)tag).getAsLongArray();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setLongs(final int index, final long[] to) {
|
|
+ this.list.set(index, new LongArrayTag(to));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public ListType getList(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof ListTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return new NBTListType((ListTag)tag);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setList(final int index, final ListType list) {
|
|
+ this.list.set(index, ((NBTListType)list).getTag());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> getMap(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof CompoundTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return new NBTMapType((CompoundTag)tag);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setMap(final int index, final MapType<?> to) {
|
|
+ this.list.set(index, ((NBTMapType)to).getTag());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public String getString(final int index) {
|
|
+ final Tag tag = this.list.get(index); // does bound checking for us
|
|
+ if (!(tag instanceof StringTag)) {
|
|
+ throw new IllegalStateException();
|
|
+ }
|
|
+ return ((StringTag)tag).getAsString();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setString(final int index, final String to) {
|
|
+ this.list.set(index, StringTag.valueOf(to));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addByte(final byte b) {
|
|
+ this.list.add(ByteTag.valueOf(b));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addByte(final int index, final byte b) {
|
|
+ this.list.add(index, ByteTag.valueOf(b));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addShort(final short s) {
|
|
+ this.list.add(ShortTag.valueOf(s));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addShort(final int index, final short s) {
|
|
+ this.list.add(index, ShortTag.valueOf(s));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addInt(final int i) {
|
|
+ this.list.add(IntTag.valueOf(i));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addInt(final int index, final int i) {
|
|
+ this.list.add(index, IntTag.valueOf(i));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addLong(final long l) {
|
|
+ this.list.add(LongTag.valueOf(l));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addLong(final int index, final long l) {
|
|
+ this.list.add(index, LongTag.valueOf(l));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addFloat(final float f) {
|
|
+ this.list.add(FloatTag.valueOf(f));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addFloat(final int index, final float f) {
|
|
+ this.list.add(index, FloatTag.valueOf(f));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addDouble(final double d) {
|
|
+ this.list.add(DoubleTag.valueOf(d));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addDouble(final int index, final double d) {
|
|
+ this.list.add(index, DoubleTag.valueOf(d));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addByteArray(final byte[] arr) {
|
|
+ this.list.add(new ByteArrayTag(arr));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addByteArray(final int index, final byte[] arr) {
|
|
+ this.list.add(index, new ByteArrayTag(arr));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addShortArray(final short[] arr) {
|
|
+ // NBT does not support short[]
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addShortArray(final int index, final short[] arr) {
|
|
+ // NBT does not support short[]
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addIntArray(final int[] arr) {
|
|
+ this.list.add(new IntArrayTag(arr));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addIntArray(final int index, final int[] arr) {
|
|
+ this.list.add(index, new IntArrayTag(arr));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addLongArray(final long[] arr) {
|
|
+ this.list.add(new LongArrayTag(arr));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addLongArray(final int index, final long[] arr) {
|
|
+ this.list.add(index, new LongArrayTag(arr));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addList(final ListType list) {
|
|
+ this.list.add(((NBTListType)list).getTag());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addList(final int index, final ListType list) {
|
|
+ this.list.add(index, ((NBTListType)list).getTag());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addMap(final MapType<?> map) {
|
|
+ this.list.add(((NBTMapType)map).getTag());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addMap(final int index, final MapType<?> map) {
|
|
+ this.list.add(index, ((NBTMapType)map).getTag());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addString(final String string) {
|
|
+ this.list.add(StringTag.valueOf(string));
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void addString(final int index, final String string) {
|
|
+ this.list.add(index, StringTag.valueOf(string));
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/types/nbt/NBTMapType.java b/src/main/java/ca/spottedleaf/dataconverter/types/nbt/NBTMapType.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..d31d33ea82bdf86da69c0b7114d0033210567289
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/types/nbt/NBTMapType.java
|
|
@@ -0,0 +1,433 @@
|
|
+package ca.spottedleaf.dataconverter.types.nbt;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.ObjectType;
|
|
+import net.minecraft.nbt.ByteArrayTag;
|
|
+import net.minecraft.nbt.CompoundTag;
|
|
+import net.minecraft.nbt.IntArrayTag;
|
|
+import net.minecraft.nbt.ListTag;
|
|
+import net.minecraft.nbt.LongArrayTag;
|
|
+import net.minecraft.nbt.NumericTag;
|
|
+import net.minecraft.nbt.StringTag;
|
|
+import net.minecraft.nbt.Tag;
|
|
+
|
|
+import java.util.Set;
|
|
+
|
|
+public final class NBTMapType implements MapType<String> {
|
|
+
|
|
+ private final CompoundTag map;
|
|
+
|
|
+ public NBTMapType() {
|
|
+ this.map = new CompoundTag();
|
|
+ }
|
|
+
|
|
+ public NBTMapType(final CompoundTag tag) {
|
|
+ this.map = tag;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean equals(final Object obj) {
|
|
+ if (this == obj) {
|
|
+ return true;
|
|
+ }
|
|
+ if (obj == null || obj.getClass() != NBTMapType.class) {
|
|
+ return false;
|
|
+ }
|
|
+
|
|
+ return this.map.equals(((NBTMapType)obj).map);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int hashCode() {
|
|
+ return this.map.hashCode();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public String toString() {
|
|
+ return "NBTMapType{" +
|
|
+ "map=" + this.map +
|
|
+ '}';
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int size() {
|
|
+ return this.map.size();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean isEmpty() {
|
|
+ return this.map.isEmpty();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void clear() {
|
|
+ this.map.getAllKeys().clear();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Set<String> keys() {
|
|
+ return this.map.getAllKeys();
|
|
+ }
|
|
+
|
|
+ public CompoundTag getTag() {
|
|
+ return this.map;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> copy() {
|
|
+ return new NBTMapType(this.map.copy());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean hasKey(final String key) {
|
|
+ return this.map.get(key) != null;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean hasKey(final String key, final ObjectType type) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag == null) {
|
|
+ return false;
|
|
+ }
|
|
+
|
|
+ final ObjectType valueType = NBTListType.getType(tag.getId());
|
|
+
|
|
+ return valueType == type || (type == ObjectType.NUMBER && valueType.isNumber());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void remove(final String key) {
|
|
+ this.map.remove(key);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Object getGeneric(final String key) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag == null) {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ switch (NBTListType.getType(tag.getId())) {
|
|
+ case BYTE:
|
|
+ case SHORT:
|
|
+ case INT:
|
|
+ case LONG:
|
|
+ case FLOAT:
|
|
+ case DOUBLE:
|
|
+ return ((NumericTag)tag).getAsNumber();
|
|
+ case MAP:
|
|
+ return new NBTMapType((CompoundTag)tag);
|
|
+ case LIST:
|
|
+ return new NBTListType((ListTag)tag);
|
|
+ case STRING:
|
|
+ return ((StringTag)tag).getAsString();
|
|
+ case BYTE_ARRAY:
|
|
+ return ((ByteArrayTag)tag).getAsByteArray();
|
|
+ // Note: No short array tag!
|
|
+ case INT_ARRAY:
|
|
+ return ((IntArrayTag)tag).getAsIntArray();
|
|
+ case LONG_ARRAY:
|
|
+ return ((LongArrayTag)tag).getAsLongArray();
|
|
+ }
|
|
+
|
|
+ throw new IllegalStateException("Unrecognized type " + tag);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Number getNumber(final String key) {
|
|
+ return this.getNumber(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public Number getNumber(final String key, final Number dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsNumber();
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean getBoolean(final String key) {
|
|
+ return this.getByte(key) != 0;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public boolean getBoolean(final String key, final boolean dfl) {
|
|
+ return this.getByte(key, dfl ? (byte)1 : (byte)0) != 0;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setBoolean(final String key, final boolean val) {
|
|
+ this.setByte(key, val ? (byte)1 : (byte)0);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public byte getByte(final String key) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsByte();
|
|
+ }
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public byte getByte(final String key, final byte dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsByte();
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setByte(final String key, final byte val) {
|
|
+ this.map.putByte(key, val);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public short getShort(final String key) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsShort();
|
|
+ }
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public short getShort(final String key, final short dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsShort();
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setShort(final String key, final short val) {
|
|
+ this.map.putShort(key, val);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int getInt(final String key) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsInt();
|
|
+ }
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int getInt(final String key, final int dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsInt();
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setInt(final String key, final int val) {
|
|
+ this.map.putInt(key, val);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long getLong(final String key) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsLong();
|
|
+ }
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long getLong(final String key, final long dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsLong();
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setLong(final String key, final long val) {
|
|
+ this.map.putLong(key, val);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public float getFloat(final String key) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsFloat();
|
|
+ }
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public float getFloat(final String key, final float dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsFloat();
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setFloat(final String key, final float val) {
|
|
+ this.map.putFloat(key, val);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public double getDouble(final String key) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsDouble();
|
|
+ }
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public double getDouble(final String key, final double dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof NumericTag) {
|
|
+ return ((NumericTag)tag).getAsDouble();
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setDouble(final String key, final double val) {
|
|
+ this.map.putDouble(key, val);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public byte[] getBytes(final String key) {
|
|
+ return this.getBytes(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public byte[] getBytes(final String key, final byte[] dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof ByteArrayTag) {
|
|
+ return ((ByteArrayTag)tag).getAsByteArray();
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setBytes(final String key, final byte[] val) {
|
|
+ this.map.putByteArray(key, val);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public short[] getShorts(final String key) {
|
|
+ return this.getShorts(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public short[] getShorts(final String key, final short[] dfl) {
|
|
+ // NBT does not support short array
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setShorts(final String key, final short[] val) {
|
|
+ throw new UnsupportedOperationException();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int[] getInts(final String key) {
|
|
+ return this.getInts(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int[] getInts(final String key, final int[] dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof IntArrayTag) {
|
|
+ return ((IntArrayTag)tag).getAsIntArray();
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setInts(final String key, final int[] val) {
|
|
+ this.map.putIntArray(key, val);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long[] getLongs(final String key) {
|
|
+ return this.getLongs(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public long[] getLongs(final String key, final long[] dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof LongArrayTag) {
|
|
+ return ((LongArrayTag)tag).getAsLongArray();
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setLongs(final String key, final long[] val) {
|
|
+ this.map.putLongArray(key, val);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public ListType getListUnchecked(final String key) {
|
|
+ return this.getListUnchecked(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public ListType getListUnchecked(final String key, final ListType dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof ListTag) {
|
|
+ return new NBTListType((ListTag)tag);
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setList(final String key, final ListType val) {
|
|
+ this.map.put(key, ((NBTListType)val).getTag());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> getMap(final String key) {
|
|
+ return this.getMap(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> getMap(final String key, final MapType dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof CompoundTag) {
|
|
+ return new NBTMapType((CompoundTag)tag);
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setMap(final String key, final MapType<?> val) {
|
|
+ this.map.put(key, ((NBTMapType)val).getTag());
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public String getString(final String key) {
|
|
+ return this.getString(key, null);
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public String getString(final String key, final String dfl) {
|
|
+ final Tag tag = this.map.get(key);
|
|
+ if (tag instanceof StringTag) {
|
|
+ return ((StringTag)tag).getAsString();
|
|
+ }
|
|
+ return dfl;
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public void setString(final String key, final String val) {
|
|
+ this.map.putString(key, val);
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/types/nbt/NBTTypeUtil.java b/src/main/java/ca/spottedleaf/dataconverter/types/nbt/NBTTypeUtil.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..62c0f4073aff301bf5b3187e0d4446fd8d0ac475
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/types/nbt/NBTTypeUtil.java
|
|
@@ -0,0 +1,18 @@
|
|
+package ca.spottedleaf.dataconverter.types.nbt;
|
|
+
|
|
+import ca.spottedleaf.dataconverter.types.ListType;
|
|
+import ca.spottedleaf.dataconverter.types.MapType;
|
|
+import ca.spottedleaf.dataconverter.types.TypeUtil;
|
|
+
|
|
+public final class NBTTypeUtil implements TypeUtil {
|
|
+
|
|
+ @Override
|
|
+ public ListType createEmptyList() {
|
|
+ return new NBTListType();
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public MapType<String> createEmptyMap() {
|
|
+ return new NBTMapType();
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/util/Int2IntArraySortedMap.java b/src/main/java/ca/spottedleaf/dataconverter/util/Int2IntArraySortedMap.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..6596de3d9ebae583c252aa061f0cfdf8778ea1a5
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/util/Int2IntArraySortedMap.java
|
|
@@ -0,0 +1,77 @@
|
|
+package ca.spottedleaf.dataconverter.util;
|
|
+
|
|
+import it.unimi.dsi.fastutil.ints.Int2IntFunction;
|
|
+
|
|
+import java.util.Arrays;
|
|
+
|
|
+public class Int2IntArraySortedMap {
|
|
+
|
|
+ protected int[] key;
|
|
+ protected int[] val;
|
|
+ protected int size;
|
|
+
|
|
+ public Int2IntArraySortedMap() {
|
|
+ this.key = new int[8];
|
|
+ this.val = new int[8];
|
|
+ }
|
|
+
|
|
+ public int put(final int key, final int value) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index >= 0) {
|
|
+ final int current = this.val[index];
|
|
+ this.val[index] = value;
|
|
+ return current;
|
|
+ }
|
|
+ final int insert = -(index + 1);
|
|
+ // shift entries down
|
|
+ if (this.size >= this.val.length) {
|
|
+ this.key = Arrays.copyOf(this.key, this.key.length * 2);
|
|
+ this.val = Arrays.copyOf(this.val, this.val.length * 2);
|
|
+ }
|
|
+ System.arraycopy(this.key, insert, this.key, insert + 1, this.size - insert);
|
|
+ System.arraycopy(this.val, insert, this.val, insert + 1, this.size - insert);
|
|
+ ++this.size;
|
|
+
|
|
+ this.key[insert] = key;
|
|
+ this.val[insert] = value;
|
|
+
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
+ public int computeIfAbsent(final int key, final Int2IntFunction producer) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index >= 0) {
|
|
+ return this.val[index];
|
|
+ }
|
|
+ final int insert = -(index + 1);
|
|
+ // shift entries down
|
|
+ if (this.size >= this.val.length) {
|
|
+ this.key = Arrays.copyOf(this.key, this.key.length * 2);
|
|
+ this.val = Arrays.copyOf(this.val, this.val.length * 2);
|
|
+ }
|
|
+ System.arraycopy(this.key, insert, this.key, insert + 1, this.size - insert);
|
|
+ System.arraycopy(this.val, insert, this.val, insert + 1, this.size - insert);
|
|
+ ++this.size;
|
|
+
|
|
+ this.key[insert] = key;
|
|
+
|
|
+ return this.val[insert] = producer.apply(key);
|
|
+ }
|
|
+
|
|
+ public int get(final int key) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index < 0) {
|
|
+ return 0;
|
|
+ }
|
|
+ return this.val[index];
|
|
+ }
|
|
+
|
|
+ public int getFloor(final int key) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index < 0) {
|
|
+ final int insert = -(index + 1) - 1;
|
|
+ return insert < 0 ? 0 : this.val[insert];
|
|
+ }
|
|
+ return this.val[index];
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/util/Int2ObjectArraySortedMap.java b/src/main/java/ca/spottedleaf/dataconverter/util/Int2ObjectArraySortedMap.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..de9d632489609136c712a9adaee941fd38fad440
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/util/Int2ObjectArraySortedMap.java
|
|
@@ -0,0 +1,74 @@
|
|
+package ca.spottedleaf.dataconverter.util;
|
|
+
|
|
+import java.util.Arrays;
|
|
+import java.util.function.IntFunction;
|
|
+
|
|
+public class Int2ObjectArraySortedMap<V> {
|
|
+
|
|
+ protected int[] key;
|
|
+ protected V[] val;
|
|
+ protected int size;
|
|
+
|
|
+ public Int2ObjectArraySortedMap() {
|
|
+ this.key = new int[8];
|
|
+ this.val = (V[])new Object[8];
|
|
+ }
|
|
+
|
|
+ public V put(final int key, final V value) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index >= 0) {
|
|
+ final V current = this.val[index];
|
|
+ this.val[index] = value;
|
|
+ return current;
|
|
+ }
|
|
+ final int insert = -(index + 1);
|
|
+ // shift entries down
|
|
+ if (this.size >= this.val.length) {
|
|
+ this.key = Arrays.copyOf(this.key, this.key.length * 2);
|
|
+ this.val = Arrays.copyOf(this.val, this.val.length * 2);
|
|
+ }
|
|
+ System.arraycopy(this.key, insert, this.key, insert + 1, this.size - insert);
|
|
+ System.arraycopy(this.val, insert, this.val, insert + 1, this.size - insert);
|
|
+
|
|
+ this.key[insert] = key;
|
|
+ this.val[insert] = value;
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ public V computeIfAbsent(final int key, final IntFunction<V> producer) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index >= 0) {
|
|
+ return this.val[index];
|
|
+ }
|
|
+ final int insert = -(index + 1);
|
|
+ // shift entries down
|
|
+ if (this.size >= this.val.length) {
|
|
+ this.key = Arrays.copyOf(this.key, this.key.length * 2);
|
|
+ this.val = Arrays.copyOf(this.val, this.val.length * 2);
|
|
+ }
|
|
+ System.arraycopy(this.key, insert, this.key, insert + 1, this.size - insert);
|
|
+ System.arraycopy(this.val, insert, this.val, insert + 1, this.size - insert);
|
|
+
|
|
+ this.key[insert] = key;
|
|
+
|
|
+ return this.val[insert] = producer.apply(key);
|
|
+ }
|
|
+
|
|
+ public V get(final int key) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index < 0) {
|
|
+ return null;
|
|
+ }
|
|
+ return this.val[index];
|
|
+ }
|
|
+
|
|
+ public V getFloor(final int key) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index < 0) {
|
|
+ final int insert = -(index + 1);
|
|
+ return this.val[insert];
|
|
+ }
|
|
+ return this.val[index];
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/util/IntegerUtil.java b/src/main/java/ca/spottedleaf/dataconverter/util/IntegerUtil.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..b5ebf6bbe1a3711111cf045ee8b46c934c7e4563
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/util/IntegerUtil.java
|
|
@@ -0,0 +1,223 @@
|
|
+package ca.spottedleaf.dataconverter.util;
|
|
+
|
|
+public final class IntegerUtil {
|
|
+ public static final int HIGH_BIT_U32 = Integer.MIN_VALUE;
|
|
+ public static final long HIGH_BIT_U64 = Long.MIN_VALUE;
|
|
+
|
|
+ public static int ceilLog2(final int value) {
|
|
+ return Integer.SIZE - Integer.numberOfLeadingZeros(value - 1); // see doc of numberOfLeadingZeros
|
|
+ }
|
|
+
|
|
+ public static long ceilLog2(final long value) {
|
|
+ return Long.SIZE - Long.numberOfLeadingZeros(value - 1); // see doc of numberOfLeadingZeros
|
|
+ }
|
|
+
|
|
+ public static int floorLog2(final int value) {
|
|
+ // xor is optimized subtract for 2^n -1
|
|
+ // note that (2^n -1) - k = (2^n -1) ^ k for k <= (2^n - 1)
|
|
+ return (Integer.SIZE - 1) ^ Integer.numberOfLeadingZeros(value); // see doc of numberOfLeadingZeros
|
|
+ }
|
|
+
|
|
+ public static int floorLog2(final long value) {
|
|
+ // xor is optimized subtract for 2^n -1
|
|
+ // note that (2^n -1) - k = (2^n -1) ^ k for k <= (2^n - 1)
|
|
+ return (Long.SIZE - 1) ^ Long.numberOfLeadingZeros(value); // see doc of numberOfLeadingZeros
|
|
+ }
|
|
+
|
|
+ public static int roundCeilLog2(final int value) {
|
|
+ // optimized variant of 1 << (32 - leading(val - 1))
|
|
+ // given
|
|
+ // 1 << n = HIGH_BIT_32 >>> (31 - n) for n [0, 32)
|
|
+ // 1 << (32 - leading(val - 1)) = HIGH_BIT_32 >>> (31 - (32 - leading(val - 1)))
|
|
+ // HIGH_BIT_32 >>> (31 - (32 - leading(val - 1)))
|
|
+ // HIGH_BIT_32 >>> (31 - 32 + leading(val - 1))
|
|
+ // HIGH_BIT_32 >>> (-1 + leading(val - 1))
|
|
+ return HIGH_BIT_U32 >>> (Integer.numberOfLeadingZeros(value - 1) - 1);
|
|
+ }
|
|
+
|
|
+ public static long roundCeilLog2(final long value) {
|
|
+ // see logic documented above
|
|
+ return HIGH_BIT_U64 >>> (Long.numberOfLeadingZeros(value - 1) - 1);
|
|
+ }
|
|
+
|
|
+ public static int roundFloorLog2(final int value) {
|
|
+ // optimized variant of 1 << (31 - leading(val))
|
|
+ // given
|
|
+ // 1 << n = HIGH_BIT_32 >>> (31 - n) for n [0, 32)
|
|
+ // 1 << (31 - leading(val)) = HIGH_BIT_32 >> (31 - (31 - leading(val)))
|
|
+ // HIGH_BIT_32 >> (31 - (31 - leading(val)))
|
|
+ // HIGH_BIT_32 >> (31 - 31 + leading(val))
|
|
+ return HIGH_BIT_U32 >>> Integer.numberOfLeadingZeros(value);
|
|
+ }
|
|
+
|
|
+ public static long roundFloorLog2(final long value) {
|
|
+ // see logic documented above
|
|
+ return HIGH_BIT_U64 >>> Long.numberOfLeadingZeros(value);
|
|
+ }
|
|
+
|
|
+ public static boolean isPowerOfTwo(final int n) {
|
|
+ // 2^n has one bit
|
|
+ // note: this rets true for 0 still
|
|
+ return IntegerUtil.getTrailingBit(n) == n;
|
|
+ }
|
|
+
|
|
+ public static boolean isPowerOfTwo(final long n) {
|
|
+ // 2^n has one bit
|
|
+ // note: this rets true for 0 still
|
|
+ return IntegerUtil.getTrailingBit(n) == n;
|
|
+ }
|
|
+
|
|
+ public static int getTrailingBit(final int n) {
|
|
+ return -n & n;
|
|
+ }
|
|
+
|
|
+ public static long getTrailingBit(final long n) {
|
|
+ return -n & n;
|
|
+ }
|
|
+
|
|
+ public static int trailingZeros(final int n) {
|
|
+ return Integer.numberOfTrailingZeros(n);
|
|
+ }
|
|
+
|
|
+ public static int trailingZeros(final long n) {
|
|
+ return Long.numberOfTrailingZeros(n);
|
|
+ }
|
|
+
|
|
+ // from hacker's delight (signed division magic value)
|
|
+ public static int getDivisorMultiple(final long numbers) {
|
|
+ return (int)(numbers >>> 32);
|
|
+ }
|
|
+
|
|
+ // from hacker's delight (signed division magic value)
|
|
+ public static int getDivisorShift(final long numbers) {
|
|
+ return (int)numbers;
|
|
+ }
|
|
+
|
|
+ public static long getDivisorNumbers(final int d) {
|
|
+ final int ad = Math.abs(d);
|
|
+
|
|
+ if (ad < 2) {
|
|
+ throw new IllegalArgumentException("|number| must be in [2, 2^31 -1], not: " + d);
|
|
+ }
|
|
+
|
|
+ final int two31 = 0x80000000;
|
|
+ final long mask = 0xFFFFFFFFL; // mask for enforcing unsigned behaviour
|
|
+
|
|
+ int p = 31;
|
|
+
|
|
+ // all these variables are UNSIGNED!
|
|
+ int t = two31 + (d >>> 31);
|
|
+ int anc = t - 1 - (int)((t & mask)%ad);
|
|
+ int q1 = (int)((two31 & mask)/(anc & mask));
|
|
+ int r1 = two31 - q1*anc;
|
|
+ int q2 = (int)((two31 & mask)/(ad & mask));
|
|
+ int r2 = two31 - q2*ad;
|
|
+ int delta;
|
|
+
|
|
+ do {
|
|
+ p = p + 1;
|
|
+ q1 = 2*q1; // Update q1 = 2**p/|nc|.
|
|
+ r1 = 2*r1; // Update r1 = rem(2**p, |nc|).
|
|
+ if ((r1 & mask) >= (anc & mask)) {// (Must be an unsigned comparison here)
|
|
+ q1 = q1 + 1;
|
|
+ r1 = r1 - anc;
|
|
+ }
|
|
+ q2 = 2*q2; // Update q2 = 2**p/|d|.
|
|
+ r2 = 2*r2; // Update r2 = rem(2**p, |d|).
|
|
+ if ((r2 & mask) >= (ad & mask)) {// (Must be an unsigned comparison here)
|
|
+ q2 = q2 + 1;
|
|
+ r2 = r2 - ad;
|
|
+ }
|
|
+ delta = ad - r2;
|
|
+ } while ((q1 & mask) < (delta & mask) || (q1 == delta && r1 == 0));
|
|
+
|
|
+ int magicNum = q2 + 1;
|
|
+ if (d < 0) {
|
|
+ magicNum = -magicNum;
|
|
+ }
|
|
+ int shift = p - 32;
|
|
+ return ((long)magicNum << 32) | shift;
|
|
+ }
|
|
+
|
|
+ public static int branchlessAbs(final int val) {
|
|
+ // -n = -1 ^ n + 1
|
|
+ final int mask = val >> (Integer.SIZE - 1); // -1 if < 0, 0 if >= 0
|
|
+ return (mask ^ val) - mask; // if val < 0, then (0 ^ val) - 0 else (-1 ^ val) + 1
|
|
+ }
|
|
+
|
|
+ public static long branchlessAbs(final long val) {
|
|
+ // -n = -1 ^ n + 1
|
|
+ final long mask = val >> (Long.SIZE - 1); // -1 if < 0, 0 if >= 0
|
|
+ return (mask ^ val) - mask; // if val < 0, then (0 ^ val) - 0 else (-1 ^ val) + 1
|
|
+ }
|
|
+
|
|
+ //https://github.com/skeeto/hash-prospector for hash functions
|
|
+
|
|
+ //score = ~590.47984224483832
|
|
+ public static int hash0(int x) {
|
|
+ x *= 0x36935555;
|
|
+ x ^= x >>> 16;
|
|
+ return x;
|
|
+ }
|
|
+
|
|
+ //score = ~310.01596637036749
|
|
+ public static int hash1(int x) {
|
|
+ x ^= x >>> 15;
|
|
+ x *= 0x356aaaad;
|
|
+ x ^= x >>> 17;
|
|
+ return x;
|
|
+ }
|
|
+
|
|
+ public static int hash2(int x) {
|
|
+ x ^= x >>> 16;
|
|
+ x *= 0x7feb352d;
|
|
+ x ^= x >>> 15;
|
|
+ x *= 0x846ca68b;
|
|
+ x ^= x >>> 16;
|
|
+ return x;
|
|
+ }
|
|
+
|
|
+ public static int hash3(int x) {
|
|
+ x ^= x >>> 17;
|
|
+ x *= 0xed5ad4bb;
|
|
+ x ^= x >>> 11;
|
|
+ x *= 0xac4c1b51;
|
|
+ x ^= x >>> 15;
|
|
+ x *= 0x31848bab;
|
|
+ x ^= x >>> 14;
|
|
+ return x;
|
|
+ }
|
|
+
|
|
+ //score = ~365.79959673201887
|
|
+ public static long hash1(long x) {
|
|
+ x ^= x >>> 27;
|
|
+ x *= 0xb24924b71d2d354bL;
|
|
+ x ^= x >>> 28;
|
|
+ return x;
|
|
+ }
|
|
+
|
|
+ //h2 hash
|
|
+ public static long hash2(long x) {
|
|
+ x ^= x >>> 32;
|
|
+ x *= 0xd6e8feb86659fd93L;
|
|
+ x ^= x >>> 32;
|
|
+ x *= 0xd6e8feb86659fd93L;
|
|
+ x ^= x >>> 32;
|
|
+ return x;
|
|
+ }
|
|
+
|
|
+ public static long hash3(long x) {
|
|
+ x ^= x >>> 45;
|
|
+ x *= 0xc161abe5704b6c79L;
|
|
+ x ^= x >>> 41;
|
|
+ x *= 0xe3e5389aedbc90f7L;
|
|
+ x ^= x >>> 56;
|
|
+ x *= 0x1f9aba75a52db073L;
|
|
+ x ^= x >>> 53;
|
|
+ return x;
|
|
+ }
|
|
+
|
|
+ private IntegerUtil() {
|
|
+ throw new RuntimeException();
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/util/Long2IntArraySortedMap.java b/src/main/java/ca/spottedleaf/dataconverter/util/Long2IntArraySortedMap.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..94705bb141b550589faa9a0408402d8636c61907
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/util/Long2IntArraySortedMap.java
|
|
@@ -0,0 +1,76 @@
|
|
+package ca.spottedleaf.dataconverter.util;
|
|
+
|
|
+import it.unimi.dsi.fastutil.longs.Long2IntFunction;
|
|
+import java.util.Arrays;
|
|
+
|
|
+public class Long2IntArraySortedMap {
|
|
+
|
|
+ protected long[] key;
|
|
+ protected int[] val;
|
|
+ protected int size;
|
|
+
|
|
+ public Long2IntArraySortedMap() {
|
|
+ this.key = new long[8];
|
|
+ this.val = new int[8];
|
|
+ }
|
|
+
|
|
+ public int put(final long key, final int value) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index >= 0) {
|
|
+ final int current = this.val[index];
|
|
+ this.val[index] = value;
|
|
+ return current;
|
|
+ }
|
|
+ final int insert = -(index + 1);
|
|
+ // shift entries down
|
|
+ if (this.size >= this.val.length) {
|
|
+ this.key = Arrays.copyOf(this.key, this.key.length * 2);
|
|
+ this.val = Arrays.copyOf(this.val, this.val.length * 2);
|
|
+ }
|
|
+ System.arraycopy(this.key, insert, this.key, insert + 1, this.size - insert);
|
|
+ System.arraycopy(this.val, insert, this.val, insert + 1, this.size - insert);
|
|
+ ++this.size;
|
|
+
|
|
+ this.key[insert] = key;
|
|
+ this.val[insert] = value;
|
|
+
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
+ public int computeIfAbsent(final long key, final Long2IntFunction producer) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index >= 0) {
|
|
+ return this.val[index];
|
|
+ }
|
|
+ final int insert = -(index + 1);
|
|
+ // shift entries down
|
|
+ if (this.size >= this.val.length) {
|
|
+ this.key = Arrays.copyOf(this.key, this.key.length * 2);
|
|
+ this.val = Arrays.copyOf(this.val, this.val.length * 2);
|
|
+ }
|
|
+ System.arraycopy(this.key, insert, this.key, insert + 1, this.size - insert);
|
|
+ System.arraycopy(this.val, insert, this.val, insert + 1, this.size - insert);
|
|
+ ++this.size;
|
|
+
|
|
+ this.key[insert] = key;
|
|
+
|
|
+ return this.val[insert] = producer.apply(key);
|
|
+ }
|
|
+
|
|
+ public int get(final long key) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index < 0) {
|
|
+ return 0;
|
|
+ }
|
|
+ return this.val[index];
|
|
+ }
|
|
+
|
|
+ public int getFloor(final long key) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index < 0) {
|
|
+ final int insert = -(index + 1) - 1;
|
|
+ return insert < 0 ? 0 : this.val[insert];
|
|
+ }
|
|
+ return this.val[index];
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/util/Long2ObjectArraySortedMap.java b/src/main/java/ca/spottedleaf/dataconverter/util/Long2ObjectArraySortedMap.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..6f634c8825589a23f46ad7b54354475c9a95bd1b
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/util/Long2ObjectArraySortedMap.java
|
|
@@ -0,0 +1,76 @@
|
|
+package ca.spottedleaf.dataconverter.util;
|
|
+
|
|
+import java.util.Arrays;
|
|
+import java.util.function.LongFunction;
|
|
+
|
|
+public class Long2ObjectArraySortedMap<V> {
|
|
+
|
|
+ protected long[] key;
|
|
+ protected V[] val;
|
|
+ protected int size;
|
|
+
|
|
+ public Long2ObjectArraySortedMap() {
|
|
+ this.key = new long[8];
|
|
+ this.val = (V[])new Object[8];
|
|
+ }
|
|
+
|
|
+ public V put(final long key, final V value) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index >= 0) {
|
|
+ final V current = this.val[index];
|
|
+ this.val[index] = value;
|
|
+ return current;
|
|
+ }
|
|
+ final int insert = -(index + 1);
|
|
+ // shift entries down
|
|
+ if (this.size >= this.val.length) {
|
|
+ this.key = Arrays.copyOf(this.key, this.key.length * 2);
|
|
+ this.val = Arrays.copyOf(this.val, this.val.length * 2);
|
|
+ }
|
|
+ System.arraycopy(this.key, insert, this.key, insert + 1, this.size - insert);
|
|
+ System.arraycopy(this.val, insert, this.val, insert + 1, this.size - insert);
|
|
+ ++this.size;
|
|
+
|
|
+ this.key[insert] = key;
|
|
+ this.val[insert] = value;
|
|
+
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ public V computeIfAbsent(final long key, final LongFunction<V> producer) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index >= 0) {
|
|
+ return this.val[index];
|
|
+ }
|
|
+ final int insert = -(index + 1);
|
|
+ // shift entries down
|
|
+ if (this.size >= this.val.length) {
|
|
+ this.key = Arrays.copyOf(this.key, this.key.length * 2);
|
|
+ this.val = Arrays.copyOf(this.val, this.val.length * 2);
|
|
+ }
|
|
+ System.arraycopy(this.key, insert, this.key, insert + 1, this.size - insert);
|
|
+ System.arraycopy(this.val, insert, this.val, insert + 1, this.size - insert);
|
|
+ ++this.size;
|
|
+
|
|
+ this.key[insert] = key;
|
|
+
|
|
+ return this.val[insert] = producer.apply(key);
|
|
+ }
|
|
+
|
|
+ public V get(final long key) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index < 0) {
|
|
+ return null;
|
|
+ }
|
|
+ return this.val[index];
|
|
+ }
|
|
+
|
|
+ public V getFloor(final long key) {
|
|
+ final int index = Arrays.binarySearch(this.key, 0, this.size, key);
|
|
+ if (index < 0) {
|
|
+ final int insert = -(index + 1) - 1;
|
|
+ return insert < 0 ? null : this.val[insert];
|
|
+ }
|
|
+ return this.val[index];
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/ca/spottedleaf/dataconverter/util/NamespaceUtil.java b/src/main/java/ca/spottedleaf/dataconverter/util/NamespaceUtil.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..967ad1186cbc81a76a4958ea99d4eff37c15b48f
|
|
--- /dev/null
|
|
+++ b/src/main/java/ca/spottedleaf/dataconverter/util/NamespaceUtil.java
|
|
@@ -0,0 +1,24 @@
|
|
+package ca.spottedleaf.dataconverter.util;
|
|
+
|
|
+import net.minecraft.resources.ResourceLocation;
|
|
+
|
|
+public final class NamespaceUtil {
|
|
+
|
|
+ private NamespaceUtil() {}
|
|
+
|
|
+ public static String correctNamespace(final String value) {
|
|
+ if (value == null) {
|
|
+ return null;
|
|
+ }
|
|
+ final ResourceLocation resourceLocation = ResourceLocation.tryParse(value);
|
|
+ return resourceLocation != null ? resourceLocation.toString() : value;
|
|
+ }
|
|
+
|
|
+ public static String correctNamespaceOrNull(final String value) {
|
|
+ if (value == null) {
|
|
+ return null;
|
|
+ }
|
|
+ final String correct = correctNamespace(value);
|
|
+ return correct.equals(value) ? null : correct;
|
|
+ }
|
|
+}
|
|
diff --git a/src/main/java/net/minecraft/world/level/chunk/storage/ChunkStorage.java b/src/main/java/net/minecraft/world/level/chunk/storage/ChunkStorage.java
|
|
index a5a45118644fc1bc8caeefa59b5f897ed590e7ae..8dfac195e7f03f8fe18ba6ee79e195efade46bea 100644
|
|
--- a/src/main/java/net/minecraft/world/level/chunk/storage/ChunkStorage.java
|
|
+++ b/src/main/java/net/minecraft/world/level/chunk/storage/ChunkStorage.java
|
|
@@ -79,7 +79,7 @@ public class ChunkStorage implements AutoCloseable {
|
|
int i = ChunkStorage.getVersion(nbttagcompound);
|
|
|
|
// CraftBukkit start
|
|
- if (i < 1466) {
|
|
+ if (false && i < 1466) { // Paper - no longer needed, data converter system handles it now
|
|
CompoundTag level = nbttagcompound.getCompound("Level");
|
|
if (level.getBoolean("TerrainPopulated") && !level.getBoolean("LightPopulated")) {
|
|
ServerChunkCache cps = (generatoraccess == null) ? null : ((ServerLevel) generatoraccess).getChunkSource();
|
|
@@ -91,7 +91,7 @@ public class ChunkStorage implements AutoCloseable {
|
|
// CraftBukkit end
|
|
|
|
if (i < 1493) {
|
|
- nbttagcompound = NbtUtils.update(this.fixerUpper, DataFixTypes.CHUNK, nbttagcompound, i, 1493);
|
|
+ ca.spottedleaf.dataconverter.minecraft.MCDataConverter.convertTag(ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry.CHUNK, nbttagcompound, i, 1493); // Paper - replace chunk converter
|
|
if (nbttagcompound.getCompound("Level").getBoolean("hasLegacyStructureData")) {
|
|
synchronized (this.persistentDataLock) { // Paper - Async chunk loading
|
|
if (this.legacyStructureHandler == null) {
|
|
@@ -113,7 +113,7 @@ public class ChunkStorage implements AutoCloseable {
|
|
// Spigot end
|
|
|
|
ChunkStorage.injectDatafixingContext(nbttagcompound, resourcekey, optional);
|
|
- nbttagcompound = NbtUtils.update(this.fixerUpper, DataFixTypes.CHUNK, nbttagcompound, Math.max(1493, i));
|
|
+ nbttagcompound = ca.spottedleaf.dataconverter.minecraft.MCDataConverter.convertTag(ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry.CHUNK, nbttagcompound, Math.max(1493, i), SharedConstants.getCurrentVersion().getWorldVersion()); // Paper - replace chunk converter
|
|
if (i < SharedConstants.getCurrentVersion().getWorldVersion()) {
|
|
nbttagcompound.putInt("DataVersion", SharedConstants.getCurrentVersion().getWorldVersion());
|
|
}
|
|
diff --git a/src/main/java/net/minecraft/world/level/chunk/storage/EntityStorage.java b/src/main/java/net/minecraft/world/level/chunk/storage/EntityStorage.java
|
|
index bc46fdff45b174d9c266d1b6b546061a39b4997d..fec7d5c6a7b7a20ac9aecec1d3187f5c61fc430c 100644
|
|
--- a/src/main/java/net/minecraft/world/level/chunk/storage/EntityStorage.java
|
|
+++ b/src/main/java/net/minecraft/world/level/chunk/storage/EntityStorage.java
|
|
@@ -128,7 +128,7 @@ public class EntityStorage implements EntityPersistentStorage<Entity> {
|
|
|
|
private CompoundTag upgradeChunkTag(CompoundTag chunkTag) {
|
|
int i = getVersion(chunkTag);
|
|
- return NbtUtils.update(this.fixerUpper, DataFixTypes.ENTITY_CHUNK, chunkTag, i);
|
|
+ return ca.spottedleaf.dataconverter.minecraft.MCDataConverter.convertTag(ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry.ENTITY_CHUNK, chunkTag, i, SharedConstants.getCurrentVersion().getWorldVersion()); // Paper - route to new converter system
|
|
}
|
|
|
|
public static int getVersion(CompoundTag chunkTag) {
|
|
diff --git a/src/main/java/net/minecraft/world/level/chunk/storage/SectionStorage.java b/src/main/java/net/minecraft/world/level/chunk/storage/SectionStorage.java
|
|
index d73b99d7fde724da4503b5176c3ad7b013197c6a..ec7aa86514f89042c885c0515f0744318c9bdf99 100644
|
|
--- a/src/main/java/net/minecraft/world/level/chunk/storage/SectionStorage.java
|
|
+++ b/src/main/java/net/minecraft/world/level/chunk/storage/SectionStorage.java
|
|
@@ -135,7 +135,14 @@ public class SectionStorage<R> extends RegionFileStorage implements AutoCloseabl
|
|
int j = getVersion(dynamic);
|
|
int k = SharedConstants.getCurrentVersion().getWorldVersion();
|
|
boolean bl = j != k;
|
|
- Dynamic<T> dynamic2 = this.fixerUpper.update(this.type.getType(), dynamic, j, k);
|
|
+ // Paper start - route to new converter system
|
|
+ Dynamic<T> dynamic2;
|
|
+ if (this.type.getType() == net.minecraft.util.datafix.fixes.References.POI_CHUNK) {
|
|
+ dynamic2 = new Dynamic<>(dynamic.getOps(), (T)ca.spottedleaf.dataconverter.minecraft.MCDataConverter.convertTag(ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry.POI_CHUNK, (CompoundTag)dynamic.getValue(), j, k));
|
|
+ } else {
|
|
+ dynamic2 = this.fixerUpper.update(this.type.getType(), dynamic, j, k);
|
|
+ }
|
|
+ // Paper end - route to new converter system
|
|
OptionalDynamic<T> optionalDynamic = dynamic2.get("Sections");
|
|
|
|
for(int l = this.levelHeightAccessor.getMinSection(); l < this.levelHeightAccessor.getMaxSection(); ++l) {
|
|
diff --git a/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java b/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java
|
|
index 6727468946ea5f60bd80549f827a7c2b9a42b98b..35c39aed9583275ef25d32c783715798b52bdb63 100644
|
|
--- a/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java
|
|
+++ b/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java
|
|
@@ -93,7 +93,7 @@ public class PlayerDataStorage {
|
|
// CraftBukkit end
|
|
int i = nbttagcompound.contains("DataVersion", 3) ? nbttagcompound.getInt("DataVersion") : -1;
|
|
|
|
- player.load(NbtUtils.update(this.fixerUpper, DataFixTypes.PLAYER, nbttagcompound, i));
|
|
+ player.load(ca.spottedleaf.dataconverter.minecraft.MCDataConverter.convertTag(ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry.PLAYER, nbttagcompound, i, net.minecraft.SharedConstants.getCurrentVersion().getWorldVersion())); // Paper - replace player converter
|
|
}
|
|
|
|
return nbttagcompound;
|