Actually backwards compat is important

- Reintroduce InstancedRenderRegistry#register methods
 - Deprecate the methods
This commit is contained in:
Jozufozu 2021-07-10 18:42:15 -07:00
parent b47a14566d
commit 3fb60b06d1

View file

@ -56,6 +56,26 @@ public class InstancedRenderRegistry {
return new EntityConfig<>(type);
}
/**
* @deprecated will be removed in 0.2.0, use {@link #tile}
*/
@Deprecated
public <T extends TileEntity> void register(TileEntityType<? extends T> type, ITileInstanceFactory<? super T> rendererFactory) {
this.tile(type)
.factory(rendererFactory)
.register();
}
/**
* @deprecated will be removed in 0.2.0, use {@link #entity}
*/
@Deprecated
public <T extends Entity> void register(EntityType<? extends T> type, IEntityInstanceFactory<? super T> rendererFactory) {
this.entity(type)
.factory(rendererFactory)
.register();
}
@SuppressWarnings("unchecked")
@Nullable
public <T extends TileEntity> TileEntityInstance<? super T> create(MaterialManager<?> manager, T tile) {