Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void registerRender(Block block) {
- Item item = Item.getItemFromBlock(block);
- Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0,
- new ModelResourceLocation(Ref.MOD_ID + ":" + item.getRegistryName().getResourcePath(), "inventory"));
- }
- public static void registerStateMappings() {
- addIgnoreStateForBlock(tungsten_fence_gate, new IProperty[] { BlockDoorFence.IN_WALL, BlockDoorFence.POWERED });
- addIgnoreStateForBlock(structure_dummy, new IProperty[] { HORIZONTAL });
- addIgnoreStateForBlock(tape, new IProperty[] {BlockConstructionTape.NORTH, BlockConstructionTape.SOUTH, BlockConstructionTape.WEST, BlockConstructionTape.EAST});
- }
- public static void addIgnoreStateForBlock(Block block, IProperty[] properties) {
- ModelLoader.setCustomStateMapper(block, (new StateMap.Builder()).ignore(properties).build());
- }
Advertisement
Add Comment
Please, Sign In to add comment