添加JEI适配
This commit is contained in:
parent
39f7d5b921
commit
565aef410c
3 changed files with 33 additions and 2 deletions
|
@ -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"));
|
||||||
|
}
|
||||||
|
}
|
|
@ -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."
|
||||||
}
|
}
|
|
@ -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能量,为周围一定范围内的可充能载具充能。"
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue