use of blusunrize.immersiveengineering.client.models.ModelConveyor in project ImmersiveEngineering by BluSunrize.
the class ImmersiveModelRegistry method onModelBakeEvent.
@SubscribeEvent
public void onModelBakeEvent(ModelBakeEvent event) {
for (Map.Entry<ModelResourceLocation, ItemModelReplacement> entry : itemModelReplacements.entrySet()) {
Object object = event.getModelRegistry().getObject(entry.getKey());
if (object instanceof IBakedModel) {
try {
IBakedModel existingModel = (IBakedModel) object;
event.getModelRegistry().putObject(entry.getKey(), entry.getValue().createBakedModel(existingModel));
} catch (Exception e) {
e.printStackTrace();
}
}
}
ModelResourceLocation mLoc = new ModelResourceLocation(new ResourceLocation("immersiveengineering", IEContent.itemCoresample.itemName), "inventory");
event.getModelRegistry().putObject(mLoc, new ModelCoresample());
ModelConveyor modelConveyor = new ModelConveyor();
mLoc = new ModelResourceLocation(new ResourceLocation("immersiveengineering", "conveyor"), "normal");
event.getModelRegistry().putObject(mLoc, modelConveyor);
mLoc = new ModelResourceLocation(new ResourceLocation("immersiveengineering", "conveyor"), "inventory");
event.getModelRegistry().putObject(mLoc, modelConveyor);
}
Aggregations