Apply BCLib (WIP)

This commit is contained in:
Aleksey 2021-05-28 16:42:14 +03:00
parent 746613cbf1
commit 006dc63583
65 changed files with 122 additions and 775 deletions

View file

@ -2,6 +2,7 @@ package ru.betterend.interfaces;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import ru.betterend.BetterEnd;
import ru.betterend.registry.EndItems;
public interface MultiModelItem {
@ -9,7 +10,7 @@ public interface MultiModelItem {
void registerModelPredicate();
static void register() {
EndItems.getModItems().forEach(item -> {
EndItems.getModItems(BetterEnd.MOD_ID).forEach(item -> {
if (item instanceof MultiModelItem) {
((MultiModelItem) item).registerModelPredicate();
}