Change models loading (WIP)
This commit is contained in:
parent
2910df3078
commit
60568cea18
12 changed files with 144 additions and 59 deletions
|
@ -106,8 +106,8 @@ public class EndBarrelBlock extends BarrelBlock implements BlockModelProvider {
|
|||
}
|
||||
|
||||
@Override
|
||||
public BlockModel getModel() {
|
||||
return getBlockModel(defaultBlockState());
|
||||
public BlockModel getModel(ResourceLocation blockId) {
|
||||
return getBlockModel(blockId, defaultBlockState());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -116,8 +116,7 @@ public class EndBarrelBlock extends BarrelBlock implements BlockModelProvider {
|
|||
}
|
||||
|
||||
@Override
|
||||
public BlockModel getBlockModel(BlockState blockState) {
|
||||
ResourceLocation blockId = Registry.BLOCK.getKey(this);
|
||||
public BlockModel getBlockModel(ResourceLocation blockId, BlockState blockState) {
|
||||
String texture = blockId.getPath();
|
||||
String pattern;
|
||||
if (blockState.getValue(OPEN)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue