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
14
src/main/java/ru/bclib/interfaces/ItemModelGetter.java
Normal file
14
src/main/java/ru/bclib/interfaces/ItemModelGetter.java
Normal file
|
@ -0,0 +1,14 @@
|
|||
package ru.bclib.interfaces;
|
||||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.client.renderer.block.model.BlockModel;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import ru.bclib.client.models.ModelsHelper;
|
||||
|
||||
public interface ItemModelGetter {
|
||||
@Environment(EnvType.CLIENT)
|
||||
default BlockModel getItemModel(ResourceLocation resourceLocation) {
|
||||
return ModelsHelper.createItemModel(resourceLocation);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue