mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Remove JEI
This commit is contained in:
parent
3673e75363
commit
940041e52c
3 changed files with 6 additions and 8 deletions
|
@ -43,7 +43,6 @@ repositories {
|
||||||
maven { name 'minelp-snapshot'; url 'https://repo.minelittlepony-mod.com/maven/snapshot' }
|
maven { name 'minelp-snapshot'; url 'https://repo.minelittlepony-mod.com/maven/snapshot' }
|
||||||
maven { name 'minelp-releases'; url 'https://repo.minelittlepony-mod.com/maven/release' }
|
maven { name 'minelp-releases'; url 'https://repo.minelittlepony-mod.com/maven/release' }
|
||||||
maven { name 'TerraformersMC'; url 'https://maven.terraformersmc.com/' }
|
maven { name 'TerraformersMC'; url 'https://maven.terraformersmc.com/' }
|
||||||
maven { name 'JEI'; url 'https://maven.blamejared.com/' }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -73,12 +72,13 @@ dependencies {
|
||||||
include "com.terraformersmc.terraform-api:terraform-wood-api-v1:${project.terraformer_api_version}"
|
include "com.terraformersmc.terraform-api:terraform-wood-api-v1:${project.terraformer_api_version}"
|
||||||
|
|
||||||
if (project.tmi_type == 'jei') {
|
if (project.tmi_type == 'jei') {
|
||||||
|
// We don't use that garbage
|
||||||
|
} else if (project.tmi_type == 'emi') {
|
||||||
|
// Use EMI at runtime
|
||||||
modCompileOnly "dev.emi:emi-fabric:${project.emi_version}"
|
modCompileOnly "dev.emi:emi-fabric:${project.emi_version}"
|
||||||
modRuntimeOnly "mezz.jei:jei-${project.minecraft_version}-fabric:${project.jei_version}"
|
|
||||||
} else {
|
} else {
|
||||||
|
// Use neither
|
||||||
modCompileOnly "dev.emi:emi-fabric:${project.emi_version}"
|
modCompileOnly "dev.emi:emi-fabric:${project.emi_version}"
|
||||||
modCompileOnly "mezz.jei:jei-${project.minecraft_version}-common-api:${project.jei_version}"
|
|
||||||
modCompileOnly "mezz.jei:jei-${project.minecraft_version}-fabric-api:${project.jei_version}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ org.gradle.daemon=false
|
||||||
minecraft_version=1.19.3
|
minecraft_version=1.19.3
|
||||||
yarn_mappings=1.19.3+build.2
|
yarn_mappings=1.19.3+build.2
|
||||||
loader_version=0.14.11
|
loader_version=0.14.11
|
||||||
fabric_version=0.68.1+1.19.3
|
fabric_version=0.69.1+1.19.3
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
group=com.minelittlepony
|
group=com.minelittlepony
|
||||||
|
@ -31,4 +31,3 @@ org.gradle.daemon=false
|
||||||
# TMI Testing
|
# TMI Testing
|
||||||
tmi_type=jei
|
tmi_type=jei
|
||||||
emi_version=1.0.0+1.19.3
|
emi_version=1.0.0+1.19.3
|
||||||
jei_version=12.4.0.22
|
|
|
@ -34,7 +34,6 @@ import net.minecraft.client.item.ModelPredicateProviderRegistry;
|
||||||
import net.minecraft.client.particle.Particle;
|
import net.minecraft.client.particle.Particle;
|
||||||
import net.minecraft.client.particle.SpriteProvider;
|
import net.minecraft.client.particle.SpriteProvider;
|
||||||
import net.minecraft.client.render.*;
|
import net.minecraft.client.render.*;
|
||||||
import net.minecraft.client.render.block.entity.BlockEntityRendererFactories;
|
|
||||||
import net.minecraft.client.render.entity.FlyingItemEntityRenderer;
|
import net.minecraft.client.render.entity.FlyingItemEntityRenderer;
|
||||||
import net.minecraft.client.render.item.ItemRenderer;
|
import net.minecraft.client.render.item.ItemRenderer;
|
||||||
import net.minecraft.client.render.model.json.ModelTransformation;
|
import net.minecraft.client.render.model.json.ModelTransformation;
|
||||||
|
@ -78,7 +77,7 @@ public interface URenderers {
|
||||||
EntityRendererRegistry.register(UEntities.SPELLBOOK, SpellbookEntityRenderer::new);
|
EntityRendererRegistry.register(UEntities.SPELLBOOK, SpellbookEntityRenderer::new);
|
||||||
EntityRendererRegistry.register(UEntities.AIR_BALLOON, AirBalloonEntityRenderer::new);
|
EntityRendererRegistry.register(UEntities.AIR_BALLOON, AirBalloonEntityRenderer::new);
|
||||||
|
|
||||||
BlockEntityRendererFactories.register(UBlockEntities.WEATHER_VANE, WeatherVaneBlockEntityRenderer::new);
|
BlockEntityRendererRegistry.register(UBlockEntities.WEATHER_VANE, WeatherVaneBlockEntityRenderer::new);
|
||||||
|
|
||||||
ColorProviderRegistry.ITEM.register((stack, i) -> i > 0 ? -1 : ((DyeableItem)stack.getItem()).getColor(stack), UItems.FRIENDSHIP_BRACELET);
|
ColorProviderRegistry.ITEM.register((stack, i) -> i > 0 ? -1 : ((DyeableItem)stack.getItem()).getColor(stack), UItems.FRIENDSHIP_BRACELET);
|
||||||
BuiltinItemRendererRegistry.INSTANCE.register(UItems.FILLED_JAR, (stack, mode, matrices, vertexConsumers, light, overlay) -> {
|
BuiltinItemRendererRegistry.INSTANCE.register(UItems.FILLED_JAR, (stack, mode, matrices, vertexConsumers, light, overlay) -> {
|
||||||
|
|
Loading…
Reference in a new issue