net.minecraft.client.renderer.block.statemap.StateMap Java Examples

The following examples show how to use net.minecraft.client.renderer.block.statemap.StateMap. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PLModelRegistry.java    From Production-Line with MIT License 6 votes vote down vote up
public static void loadBlockModels() {
    registerBlockModel(PLBlocks.oreIridium);
    registerBlockModel(PLBlocks.airBrakeCasing);
    registerBlockModel(PLBlocks.compressedWaterHyacinth);
    registerBlockModel(PLBlocks.dehydratedWaterHyacinthblock);

    ModelLoader.setCustomStateMapper(PLBlocks.machine, new StateMap.Builder().withName(BlockMachine.PROPERTY_TYPE).build());
    registerBlockModel(PLBlocks.carbonizeFurnace);
    registerBlockModel(PLBlocks.heatDryer);
    registerBlockModel(PLBlocks.evsu);
    registerBlockModel(PLBlocks.cseu);
    registerBlockModel(PLBlocks.parallelSpaceSU);
    registerBlockModel(PLBlocks.advSolar);
    registerBlockModel(PLBlocks.fluidKineticGenerator);
    registerBlockModel(PLBlocks.packager);
}
 
Example #2
Source File: ClientProxy.java    From enderutilities with GNU Lesser General Public License v3.0 5 votes vote down vote up
private static void registerBlockModels()
{
    ModelLoader.setCustomStateMapper(EnderUtilitiesBlocks.BARREL, new BakedModelBarrel.StateMapper());
    ModelLoaderRegistry.registerLoader(new BakedModelBarrel.ModelLoaderBarrel());

    ModelLoader.setCustomStateMapper(EnderUtilitiesBlocks.INSERTER, new BakedModelInserter.StateMapper());
    ModelLoaderRegistry.registerLoader(new BakedModelInserter.ModelLoaderInserter());

    ModelLoaderRegistry.registerLoader(new ModelCamouflageBlock.ModelLoaderCamouflageBlocks());

    ModelLoader.setCustomStateMapper(EnderUtilitiesBlocks.ELEVATOR,       (new StateMap.Builder()).ignore(BlockElevator.COLOR).build());
    ModelLoader.setCustomStateMapper(EnderUtilitiesBlocks.ELEVATOR_SLAB,  (new StateMap.Builder()).ignore(BlockElevator.COLOR).build());
    ModelLoader.setCustomStateMapper(EnderUtilitiesBlocks.ELEVATOR_LAYER, (new StateMap.Builder()).ignore(BlockElevator.COLOR).build());
}
 
Example #3
Source File: ContentBlockFenceGate.java    From customstuff4 with GNU General Public License v3.0 4 votes vote down vote up
@Override
protected Optional<IStateMapper> createStateMapper()
{
    return Optional.of(new StateMap.Builder().ignore(BlockFenceGate.POWERED).build());
}