use of logictechcorp.libraryex.block.MimicBlock in project NetherEx by LogicTechCorp.
the class MimicModelHandler method onModelBake.
@SubscribeEvent
public static void onModelBake(ModelBakeEvent event) {
MimicBlock quartzOreBlock = (MimicBlock) NetherExBlocks.QUARTZ_ORE.get();
if (quartzOreBlock != null) {
ModelResourceLocation modelLocation = quartzOreBlock.getModelLocation();
IBakedModel model = event.getModelRegistry().get(modelLocation);
if (model != null) {
event.getModelRegistry().put(modelLocation, new MimicBakedModel(model, quartzOreBlock.getMimicType()));
}
}
}
Aggregations