Restore binary backwards compatibility
This commit is contained in:
parent
b8add23d9b
commit
9cb7cc557a
1 changed files with 10 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
package net.minecraftforge.client.event;
|
||||
|
||||
import net.minecraft.client.resources.model.ModelBakery;
|
||||
import net.minecraft.client.resources.model.ModelManager;
|
||||
import net.minecraft.util.IRegistry;
|
||||
import net.minecraftforge.client.model.ModelLoader;
|
||||
|
@ -13,12 +14,21 @@ public class ModelBakeEvent extends Event
|
|||
{
|
||||
public final ModelManager modelManager;
|
||||
public final IRegistry modelRegistry;
|
||||
@Deprecated
|
||||
public final ModelBakery modelBakery;
|
||||
public final ModelLoader modelLoader;
|
||||
|
||||
@Deprecated
|
||||
public ModelBakeEvent(ModelManager modelManager, IRegistry modelRegistry, ModelBakery modelBakery)
|
||||
{
|
||||
this(modelManager, modelRegistry, (ModelLoader)modelBakery);
|
||||
}
|
||||
|
||||
public ModelBakeEvent(ModelManager modelManager, IRegistry modelRegistry, ModelLoader modelLoader)
|
||||
{
|
||||
this.modelManager = modelManager;
|
||||
this.modelRegistry = modelRegistry;
|
||||
this.modelBakery = modelLoader;
|
||||
this.modelLoader = modelLoader;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue