Restore binary backwards compatibility

This commit is contained in:
RainWarrior 2015-02-04 10:05:07 +03:00
parent b8add23d9b
commit 9cb7cc557a

View file

@ -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;
}
}