use of blusunrize.immersiveengineering.api.tool.ConveyorHandler.IConveyorBelt in project ImmersiveEngineering by BluSunrize.
the class ImmersiveModelRegistry method onModelBakeEvent.
@SubscribeEvent
public void onModelBakeEvent(ModelBakeEvent event) {
for (Map.Entry<ModelResourceLocation, ItemModelReplacement> entry : itemModelReplacements.entrySet()) {
IBakedModel object = event.getModelRegistry().getObject(entry.getKey());
if (object != null) {
try {
event.getModelRegistry().putObject(entry.getKey(), entry.getValue().createBakedModel(object));
} catch (Exception e) {
e.printStackTrace();
}
}
}
ModelResourceLocation mLoc = new ModelResourceLocation(new ResourceLocation("immersiveengineering", IEContent.itemCoresample.itemName), "inventory");
event.getModelRegistry().putObject(mLoc, new ModelCoresample());
IConveyorBelt belt = ConveyorHandler.getConveyor(new ResourceLocation(ImmersiveEngineering.MODID, "conveyor"), null);
ModelConveyor modelConveyor = new ModelConveyor(belt);
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);
mLoc = new ModelResourceLocation(new ResourceLocation(ImmersiveEngineering.MODID, "connector"), "inventory,type=feedthrough");
event.getModelRegistry().putObject(mLoc, new FeedthroughModel());
}
Aggregations