From 12abeb0cc521469ccf4e4736096dedbab2bc38d6 Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Sat, 10 Jul 2021 11:36:30 -0700 Subject: [PATCH] Rename builders - *Registrater -> *Config - build -> register --- .../instancing/InstancedRenderRegistry.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) 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 d6d107dfa..2be5996ac 100644 --- a/src/main/java/com/jozufozu/flywheel/backend/instancing/InstancedRenderRegistry.java +++ b/src/main/java/com/jozufozu/flywheel/backend/instancing/InstancedRenderRegistry.java @@ -48,12 +48,12 @@ public class InstancedRenderRegistry { return entities.containsKey(type); } - public TileRegistrater tile(TileEntityType type) { - return new TileRegistrater<>(type); + public TileConfig tile(TileEntityType type) { + return new TileConfig<>(type); } - public EntityRegistrater entity(EntityType type) { - return new EntityRegistrater<>(type); + public EntityConfig entity(EntityType type) { + return new EntityConfig<>(type); } @SuppressWarnings("unchecked") @@ -81,22 +81,22 @@ public class InstancedRenderRegistry { return skipRender.getBoolean(o); } - public class TileRegistrater { + public class TileConfig { private final TileEntityType type; private ITileInstanceFactory factory; private boolean skipRender = false; - public TileRegistrater(TileEntityType type) { + public TileConfig(TileEntityType type) { this.type = type; } - public TileRegistrater factory(ITileInstanceFactory rendererFactory) { + public TileConfig factory(ITileInstanceFactory rendererFactory) { factory = rendererFactory; return this; } - public TileRegistrater setSkipRender(boolean skipRender) { + public TileConfig setSkipRender(boolean skipRender) { this.skipRender = skipRender; return this; } @@ -109,27 +109,27 @@ public class InstancedRenderRegistry { } } - public class EntityRegistrater { + public class EntityConfig { private final EntityType type; private IEntityInstanceFactory factory; private boolean skipRender = false; - public EntityRegistrater(EntityType type) { + public EntityConfig(EntityType type) { this.type = type; } - public EntityRegistrater factory(IEntityInstanceFactory rendererFactory) { + public EntityConfig factory(IEntityInstanceFactory rendererFactory) { factory = rendererFactory; return this; } - public EntityRegistrater setSkipRender(boolean skipRender) { + public EntityConfig setSkipRender(boolean skipRender) { this.skipRender = skipRender; return this; } - public InstancedRenderRegistry build() { + public InstancedRenderRegistry register() { entities.put(type, factory); InstancedRenderRegistry.this.skipRender.put(type, skipRender);