Add simpleBlockWithItem for data gens (#9170)

This commit is contained in:
J.T. McQuigg authored and GitHub committed 2022-12-12 10:22:32 -08:00
1 parent 09aac3a4d3
commit e541201129
4 files changed
+8 -9

No files matched your search

@@ -188,6 +188,11 @@ public abstract class BlockStateProvider implements DataProvider {
itemModels().getBuilder(key(block).getPath()).parent(model);
}
public void simpleBlockWithItem(Block block, ModelFile model) {
simpleBlock(block, model);
simpleBlockItem(block, model);
}
public void simpleBlock(Block block, ConfiguredModel... models) {
getVariantBuilder(block)
.partialState().setModels(models);