Skip to content

Commit 0714a32

Browse files
committed
Update DataGenUtil.java
1 parent 55b54b5 commit 0714a32

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

src/main/java/com/devdyna/modname_id/utils/DataGenUtil.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,18 @@ public static ItemModelBuilder itemBlock(Block block, ItemModelProvider b) {
5858
return b.withExistingParent(getPath(block), parent + getPath(block));
5959
}
6060

61-
public static BlockModelBuilder BlockwithParent(Block block, BlockStateProvider b) {
62-
return b.models().withExistingParent(getPath(block), MODID + ":block/pebbles/_base")
63-
.texture("block", "minecraft:block/cobblestone");
61+
/**
62+
* @param block
63+
* @param b this
64+
* @param parent Main.ID + ":block/..."
65+
* @param keyname "all"
66+
* @param texture "minecraft:block/cobblestone"
67+
* @return
68+
*/
69+
public static BlockModelBuilder BlockwithParent(Block block, BlockStateProvider b,
70+
String parent, String keyname, String texture) {
71+
return b.models().withExistingParent(getPath(block), parent)
72+
.texture(keyname, texture);
6473
}
6574

6675
}

0 commit comments

Comments
 (0)