mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Add simpleBlockWithItem for data gens (#9170)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user