Search in sources :

Example 1 with Builder

use of net.minecraft.client.renderer.block.statemap.StateMap.Builder in project Totemic by TeamTotemic.

the class ModBlocks method setStateMappers.

@SubscribeEvent
@SideOnly(Side.CLIENT)
public static void setStateMappers(ModelRegistryEvent event) {
    ModelLoader.setCustomStateMapper(cedar_sapling, new Builder().ignore(BlockCedarSapling.TYPE, BlockCedarSapling.STAGE).build());
    ModelLoader.setCustomStateMapper(cedar_leaves, new Builder().ignore(BlockCedarLeaves.CHECK_DECAY, BlockCedarLeaves.DECAYABLE).build());
}
Also used : Builder(net.minecraft.client.renderer.block.statemap.StateMap.Builder) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

Builder (net.minecraft.client.renderer.block.statemap.StateMap.Builder)1 SubscribeEvent (net.minecraftforge.fml.common.eventhandler.SubscribeEvent)1 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)1