Adds the ability to force a block to use a custom item model.

This commit is contained in:
Sebastian Hartte
2016-08-26 01:20:41 +02:00
parent dbaa0a9310
commit 0df62abebd
2 changed files with 24 additions and 1 deletions
@@ -27,8 +27,13 @@ public interface IBlockBuilder
IBlockBuilder rendering( BlockRenderingCustomizer callback );
/**
* Forces this block's item to uses a custom model, instead of using the default block state as the item model.
* The model has the same name as the registry name.
*/
IBlockBuilder useCustomItemModel();
IBlockBuilder item( Function<Block, ItemBlock> factory );
<T extends IBlockDefinition> T build();
}