From 4547d5c7028d416f8e3fdc467a8aaf14e35e1bb1 Mon Sep 17 00:00:00 2001 From: EnZaXD <60033407+FlorianMichael@users.noreply.github.com> Date: Wed, 27 Mar 2024 20:15:57 +0100 Subject: [PATCH] Move methods in LegacyBlockItemRewriter and expose handleChunk method (#707) --- .../rewriters/LegacyBlockItemRewriter.java | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java index 05da22f4..ac18cc8b 100644 --- a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java +++ b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java @@ -66,10 +66,6 @@ public abstract class LegacyBlockItemRewriter mappings) { int id = object.getAsJsonPrimitive("id").getAsInt(); JsonPrimitive jsonData = object.getAsJsonPrimitive("data"); @@ -206,16 +202,6 @@ public abstract class LegacyBlockItemRewriter { final Optional type = EntityTypes1_12.ObjectType.findById(wrapper.get(Type.BYTE, 0)); @@ -242,17 +228,17 @@ public abstract class LegacyBlockItemRewriter tags = new HashMap<>(); for (CompoundTag tag : chunk.getBlockEntities()) { @@ -349,6 +335,20 @@ public abstract class LegacyBlockItemRewriter