mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 19:15:32 +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
@@ -106,9 +106,7 @@ public class DeferredRegistryTest {
|
||||
gen.addProvider(event.includeClient(), new BlockStateProvider(gen, MODID, event.getExistingFileHelper()) {
|
||||
@Override
|
||||
protected void registerStatesAndModels() {
|
||||
ModelFile model = models().cubeAll(BLOCK.getId().getPath(), mcLoc("block/furnace_top"));
|
||||
simpleBlock(BLOCK.get(), model);
|
||||
simpleBlockItem(BLOCK.get(), model);
|
||||
simpleBlockWithItem(BLOCK.get(), models().cubeAll(BLOCK.getId().getPath(), mcLoc("block/furnace_top")));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -159,9 +159,7 @@ public class PistonEventTest
|
||||
@Override
|
||||
protected void registerStatesAndModels()
|
||||
{
|
||||
ModelFile model = models().cubeAll(SHIFT_ON_MOVE.getId().getPath(), mcLoc("block/furnace_top"));
|
||||
simpleBlock(SHIFT_ON_MOVE.get(), model);
|
||||
simpleBlockItem(SHIFT_ON_MOVE.get(), model);
|
||||
simpleBlockWithItem(SHIFT_ON_MOVE.get(), models().cubeAll(shiftOnMove.getId().getPath(), mcLoc("block/furnace_top")));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -148,9 +148,7 @@ public class TagBasedToolTypesTest
|
||||
@Override
|
||||
protected void registerStatesAndModels()
|
||||
{
|
||||
ModelFile model = models().cubeAll(STONE.getId().getPath(), mcLoc("block/debug"));
|
||||
simpleBlock(STONE.get(), model);
|
||||
simpleBlockItem(STONE.get(), model);
|
||||
simpleBlockWithItem(STONE.get(), models().cubeAll(STONE.getId().getPath(), mcLoc("block/debug")));
|
||||
}
|
||||
});
|
||||
gen.addProvider(event.includeClient(), new ItemModelProvider(gen, MODID, existing)
|
||||
|
||||
Reference in new issue
Block a user