use of gregtech.client.model.IModelSupplier in project GregTech by GregTechCEu.
the class MetaBlocks method registerItemModels.
@SideOnly(Side.CLIENT)
public static void registerItemModels() {
ModelLoader.setCustomMeshDefinition(Item.getItemFromBlock(MACHINE), stack -> MetaTileEntityRenderer.MODEL_LOCATION);
for (BlockCable cable : CABLES) ModelLoader.setCustomMeshDefinition(Item.getItemFromBlock(cable), stack -> CableRenderer.INSTANCE.getModelLocation());
for (BlockFluidPipe pipe : FLUID_PIPES) ModelLoader.setCustomMeshDefinition(Item.getItemFromBlock(pipe), stack -> FluidPipeRenderer.INSTANCE.getModelLocation());
for (BlockItemPipe pipe : ITEM_PIPES) ModelLoader.setCustomMeshDefinition(Item.getItemFromBlock(pipe), stack -> ItemPipeRenderer.INSTANCE.getModelLocation());
registerItemModel(BOILER_CASING);
registerItemModel(BOILER_FIREBOX_CASING);
registerItemModel(METAL_CASING);
registerItemModel(TURBINE_CASING);
registerItemModel(MACHINE_CASING);
registerItemModel(STEAM_CASING);
registerItemModel(MULTIBLOCK_CASING);
registerItemModel(TRANSPARENT_CASING);
registerItemModel(WIRE_COIL);
registerItemModel(FUSION_CASING);
registerItemModel(WARNING_SIGN);
registerItemModel(HERMETIC_CASING);
registerItemModel(ASPHALT);
registerItemModel(STONE_SMOOTH);
registerItemModel(STONE_COBBLE);
registerItemModel(STONE_COBBLE_MOSSY);
registerItemModel(STONE_POLISHED);
registerItemModel(STONE_BRICKS);
registerItemModel(STONE_BRICKS_CRACKED);
registerItemModel(STONE_BRICKS_MOSSY);
registerItemModel(STONE_CHISELED);
registerItemModel(STONE_TILED);
registerItemModel(STONE_TILED_SMALL);
registerItemModel(STONE_BRICKS_SMALL);
registerItemModel(STONE_WINDMILL_A);
registerItemModel(STONE_WINDMILL_B);
registerItemModel(STONE_BRICKS_SQUARE);
registerItemModelWithOverride(RUBBER_LOG, ImmutableMap.of(BlockRubberLog.LOG_AXIS, EnumAxis.Y));
registerItemModel(RUBBER_LEAVES);
registerItemModel(RUBBER_SAPLING);
ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(RUBBER_SAPLING), 0, new ModelResourceLocation(RUBBER_SAPLING.getRegistryName(), "inventory"));
registerItemModel(PLANKS);
COMPRESSED.values().stream().distinct().forEach(IModelSupplier::onModelRegister);
FRAMES.values().stream().distinct().forEach(IModelSupplier::onModelRegister);
ORES.forEach(IModelSupplier::onModelRegister);
}
Aggregations