mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-28 16:06:28 +01:00
Actually backwards compat is important
- Reintroduce InstancedRenderRegistry#register methods - Deprecate the methods
This commit is contained in:
parent
ebcd3941dd
commit
0a463da724
1 changed files with 20 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue