net.minecraft.client.renderer.block.statemap.IStateMapper Java Examples
The following examples show how to use
net.minecraft.client.renderer.block.statemap.IStateMapper.
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: ModelMethods.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
public static void setCustomStateMapper(Block block, IStateMapper mapper) { ModelLoader.setCustomStateMapper(block, mapper); }
Example #2
Source File: ContentBlockBase.java From customstuff4 with GNU General Public License v3.0 | 4 votes |
protected Optional<IStateMapper> createStateMapper() { return Optional.empty(); }
Example #3
Source File: ContentBlockFenceGate.java From customstuff4 with GNU General Public License v3.0 | 4 votes |
@Override protected Optional<IStateMapper> createStateMapper() { return Optional.of(new StateMap.Builder().ignore(BlockFenceGate.POWERED).build()); }
Example #4
Source File: PLModelRegistry.java From Production-Line with MIT License | 4 votes |
private static void registerBlockStateMapper(Block block, IStateMapper mapper) { ModelLoader.setCustomStateMapper(block, mapper); }