Code style fix, interface rename, custom item getter
This commit is contained in:
parent
179ada3296
commit
c6afa74529
134 changed files with 3404 additions and 1244 deletions
|
@ -3,15 +3,15 @@ package ru.bclib.server;
|
|||
import net.fabricmc.api.DedicatedServerModInitializer;
|
||||
import net.minecraft.core.Registry;
|
||||
import ru.bclib.api.ModIntegrationAPI;
|
||||
import ru.bclib.interfaces.IPostInit;
|
||||
import ru.bclib.interfaces.PostInitable;
|
||||
|
||||
public class BCLibServer implements DedicatedServerModInitializer {
|
||||
@Override
|
||||
public void onInitializeServer() {
|
||||
ModIntegrationAPI.registerAll();
|
||||
Registry.BLOCK.forEach(block -> {
|
||||
if (block instanceof IPostInit) {
|
||||
((IPostInit) block).postInit();
|
||||
if (block instanceof PostInitable) {
|
||||
((PostInitable) block).postInit();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue