From 0a463da72470f25c1b32f5409ec8d4df5626c758 Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Sat, 10 Jul 2021 18:42:15 -0700 Subject: [PATCH] Actually backwards compat is important - Reintroduce InstancedRenderRegistry#register methods - Deprecate the methods --- .../instancing/InstancedRenderRegistry.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/main/java/com/jozufozu/flywheel/backend/instancing/InstancedRenderRegistry.java b/src/main/java/com/jozufozu/flywheel/backend/instancing/InstancedRenderRegistry.java index 2be5996ac..78f8f2c4b 100644 --- a/src/main/java/com/jozufozu/flywheel/backend/instancing/InstancedRenderRegistry.java +++ b/src/main/java/com/jozufozu/flywheel/backend/instancing/InstancedRenderRegistry.java @@ -56,6 +56,26 @@ public class InstancedRenderRegistry { return new EntityConfig<>(type); } + /** + * @deprecated will be removed in 0.2.0, use {@link #tile} + */ + @Deprecated + public void register(TileEntityType type, ITileInstanceFactory rendererFactory) { + this.tile(type) + .factory(rendererFactory) + .register(); + } + + /** + * @deprecated will be removed in 0.2.0, use {@link #entity} + */ + @Deprecated + public void register(EntityType type, IEntityInstanceFactory rendererFactory) { + this.entity(type) + .factory(rendererFactory) + .register(); + } + @SuppressWarnings("unchecked") @Nullable public TileEntityInstance create(MaterialManager manager, T tile) {