添加JEI适配

This commit is contained in:
Light_Quanta 2025-01-08 11:43:54 +08:00
parent 39f7d5b921
commit 565aef410c
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
3 changed files with 33 additions and 2 deletions

View file

@ -0,0 +1,25 @@
package com.atsuishio.superbwarfare.compat.jei;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.init.ModItems;
import mezz.jei.api.IModPlugin;
import mezz.jei.api.JeiPlugin;
import mezz.jei.api.registration.IRecipeRegistration;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.ItemStack;
import org.jetbrains.annotations.NotNull;
@JeiPlugin
public class SbwJEIPlugin implements IModPlugin {
@Override
public @NotNull ResourceLocation getPluginUid() {
return new ResourceLocation(ModUtils.MODID, "jei_plugin");
}
@Override
public void registerRecipes(@NotNull IRecipeRegistration registration) {
registration.addItemStackInfo(new ItemStack(ModItems.ANCIENT_CPU.get()), Component.translatable("jei.superbwarfare.ancient_cpu"));
registration.addItemStackInfo(new ItemStack(ModItems.CHARGING_STATION.get()), Component.translatable("jei.superbwarfare.charging_station"));
}
}

View file

@ -483,5 +483,8 @@
"des.superbwarfare.tips.ammo_type.he": "HE SHELL", "des.superbwarfare.tips.ammo_type.he": "HE SHELL",
"des.superbwarfare.tips.ammo_type.cal50": ".50 BMG", "des.superbwarfare.tips.ammo_type.cal50": ".50 BMG",
"des.superbwarfare.tips.ammo_type.20mm_cannon": "20MM HE", "des.superbwarfare.tips.ammo_type.20mm_cannon": "20MM HE",
"des.superbwarfare.tips.ammo_type.rocket": "ROCKET" "des.superbwarfare.tips.ammo_type.rocket": "ROCKET",
"jei.superbwarfare.ancient_cpu": "Mysterious ancient technology, can be found at ancient cities.",
"jei.superbwarfare.charging_station": "Generates power by consuming fuel or food, and can also accept FE energy input. This block supplies FE energy to adjacent blocks, and can also charge rechargeable vehicles within range."
} }

View file

@ -483,5 +483,8 @@
"des.superbwarfare.tips.ammo_type.he": "HE SHELL", "des.superbwarfare.tips.ammo_type.he": "HE SHELL",
"des.superbwarfare.tips.ammo_type.cal50": ".50 BMG", "des.superbwarfare.tips.ammo_type.cal50": ".50 BMG",
"des.superbwarfare.tips.ammo_type.20mm_cannon": "20MM HE", "des.superbwarfare.tips.ammo_type.20mm_cannon": "20MM HE",
"des.superbwarfare.tips.ammo_type.rocket": "ROCKET" "des.superbwarfare.tips.ammo_type.rocket": "ROCKET",
"jei.superbwarfare.ancient_cpu": "神秘的古代科技,可以在古城找到。",
"jei.superbwarfare.charging_station": "使用燃料或食物进行发电也可以接收主动输入的FE能量。能够为相邻的方块提供FE能量为周围一定范围内的可充能载具充能。"
} }