diff --git a/src/main/java/com/atsuishio/superbwarfare/compat/jade/SbwJadePlugin.java b/src/main/java/com/atsuishio/superbwarfare/compat/jade/SbwJadePlugin.java index ea062a867..966443e82 100644 --- a/src/main/java/com/atsuishio/superbwarfare/compat/jade/SbwJadePlugin.java +++ b/src/main/java/com/atsuishio/superbwarfare/compat/jade/SbwJadePlugin.java @@ -1,7 +1,7 @@ package com.atsuishio.superbwarfare.compat.jade; -import com.atsuishio.superbwarfare.compat.jade.providers.EnergyVehicleProvider; +import com.atsuishio.superbwarfare.compat.jade.providers.VehicleEnergyProvider; import com.atsuishio.superbwarfare.compat.jade.providers.VehicleHealthProvider; import com.atsuishio.superbwarfare.entity.vehicle.EnergyVehicleEntity; import com.atsuishio.superbwarfare.entity.vehicle.VehicleEntity; @@ -15,12 +15,12 @@ import snownee.jade.api.WailaPlugin; public class SbwJadePlugin implements IWailaPlugin { @Override public void register(IWailaCommonRegistration registration) { - registration.registerEntityDataProvider(EnergyVehicleProvider.INSTANCE, EnergyVehicleEntity.class); + registration.registerEntityDataProvider(VehicleEnergyProvider.INSTANCE, EnergyVehicleEntity.class); } @Override public void registerClient(IWailaClientRegistration registration) { registration.registerEntityComponent(VehicleHealthProvider.INSTANCE, VehicleEntity.class); - registration.registerEntityComponent(EnergyVehicleProvider.INSTANCE, EnergyVehicleEntity.class); + registration.registerEntityComponent(VehicleEnergyProvider.INSTANCE, EnergyVehicleEntity.class); } } diff --git a/src/main/java/com/atsuishio/superbwarfare/compat/jade/providers/EnergyVehicleProvider.java b/src/main/java/com/atsuishio/superbwarfare/compat/jade/providers/VehicleEnergyProvider.java similarity index 93% rename from src/main/java/com/atsuishio/superbwarfare/compat/jade/providers/EnergyVehicleProvider.java rename to src/main/java/com/atsuishio/superbwarfare/compat/jade/providers/VehicleEnergyProvider.java index c7c68be06..a1104a240 100644 --- a/src/main/java/com/atsuishio/superbwarfare/compat/jade/providers/EnergyVehicleProvider.java +++ b/src/main/java/com/atsuishio/superbwarfare/compat/jade/providers/VehicleEnergyProvider.java @@ -11,11 +11,11 @@ import snownee.jade.api.IServerDataProvider; import snownee.jade.api.ITooltip; import snownee.jade.api.config.IPluginConfig; -public enum EnergyVehicleProvider implements IEntityComponentProvider, +public enum VehicleEnergyProvider implements IEntityComponentProvider, IServerDataProvider { INSTANCE; - private static final ResourceLocation ID = new ResourceLocation(ModUtils.MODID, "energy_vehicle"); + private static final ResourceLocation ID = new ResourceLocation(ModUtils.MODID, "vehicle_energy"); @Override diff --git a/src/main/java/com/atsuishio/superbwarfare/compat/jade/providers/VehicleHealthProvider.java b/src/main/java/com/atsuishio/superbwarfare/compat/jade/providers/VehicleHealthProvider.java index eb8db8764..78a4499f6 100644 --- a/src/main/java/com/atsuishio/superbwarfare/compat/jade/providers/VehicleHealthProvider.java +++ b/src/main/java/com/atsuishio/superbwarfare/compat/jade/providers/VehicleHealthProvider.java @@ -15,7 +15,7 @@ public enum VehicleHealthProvider implements IEntityComponentProvider { private static final ResourceLocation ID = new ResourceLocation(ModUtils.MODID, "vehicle_health"); public void appendTooltip(ITooltip tooltip, EntityAccessor accessor, IPluginConfig config) { - // 对EntityHealthProvider的拙劣模仿 + // 对EntityHealthProvider的拙劣模仿罢了 var vehicle = (VehicleEntity) accessor.getEntity(); float health = vehicle.getHealth(); diff --git a/src/main/resources/assets/superbwarfare/lang/en_us.json b/src/main/resources/assets/superbwarfare/lang/en_us.json index a12827c6e..b198ccc5b 100644 --- a/src/main/resources/assets/superbwarfare/lang/en_us.json +++ b/src/main/resources/assets/superbwarfare/lang/en_us.json @@ -522,6 +522,6 @@ "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.", - "config.jade.plugin_superbwarfare.energy_vehicle": "Energy Vehicle", + "config.jade.plugin_superbwarfare.vehicle_energy": "Vehicle Energy", "config.jade.plugin_superbwarfare.vehicle_health": "Vehicle Health" } \ No newline at end of file diff --git a/src/main/resources/assets/superbwarfare/lang/zh_cn.json b/src/main/resources/assets/superbwarfare/lang/zh_cn.json index cc4128ff5..8ea8f885b 100644 --- a/src/main/resources/assets/superbwarfare/lang/zh_cn.json +++ b/src/main/resources/assets/superbwarfare/lang/zh_cn.json @@ -522,6 +522,6 @@ "jei.superbwarfare.ancient_cpu": "神秘的古代科技,可以在古城找到。", "jei.superbwarfare.charging_station": "使用燃料或食物进行发电,也可以接收主动输入的FE能量。能够为相邻的方块提供FE能量,为周围一定范围内的可充能载具充能。", - "config.jade.plugin_superbwarfare.energy_vehicle": "能量载具", + "config.jade.plugin_superbwarfare.vehicle_energy": "载具能量", "config.jade.plugin_superbwarfare.vehicle_health": "载具血量" } \ No newline at end of file