Changing model loading (WIP)

This commit is contained in:
Aleksey 2021-05-21 23:45:13 +03:00
parent d9c5f8e89c
commit 4d2e3d7be6
8 changed files with 120 additions and 98 deletions

View file

@ -59,9 +59,7 @@ public class EndSlabBlock extends SlabBlock implements BlockModelProvider {
"block/" + resourceLocation.getPath() + "_" + type);
registerBlockModel(resourceLocation, modelId, blockState, modelCache);
if (type == SlabType.TOP) {
BlockModelRotation rotation = BlockModelRotation.by(180, 0);
Variant variant = new Variant(modelId, rotation.getRotation(), true, 1);
return new MultiVariant(Lists.newArrayList(variant));
return ModelsHelper.createMultiVariant(modelId, BlockModelRotation.X180_Y0.getRotation(), true);
}
return ModelsHelper.createBlockSimple(modelId);
}