Change models loading (WIP)
This commit is contained in:
parent
f5c91c3aad
commit
8b94c91ea5
6 changed files with 78 additions and 15 deletions
|
@ -48,15 +48,4 @@ public class BlockBase extends Block implements BlockModelProvider {
|
|||
public ResourceLocation statePatternId() {
|
||||
return Patterns.STATE_SIMPLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockModel getBlockModel(ResourceLocation blockId, BlockState blockState) {
|
||||
String pattern = Patterns.createBlockSimple(blockId.getPath());
|
||||
return BlockModelProvider.createBlockModel(blockId, pattern);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MultiVariant getModelVariant(ResourceLocation resourceLocation, BlockState blockState) {
|
||||
return BlockModelProvider.createBlockSimple(resourceLocation);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue