修复VehicleEnergyProvider命名错误
This commit is contained in:
parent
9e924a0602
commit
8f3051d2e7
5 changed files with 8 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
package com.atsuishio.superbwarfare.compat.jade;
|
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.compat.jade.providers.VehicleHealthProvider;
|
||||||
import com.atsuishio.superbwarfare.entity.vehicle.EnergyVehicleEntity;
|
import com.atsuishio.superbwarfare.entity.vehicle.EnergyVehicleEntity;
|
||||||
import com.atsuishio.superbwarfare.entity.vehicle.VehicleEntity;
|
import com.atsuishio.superbwarfare.entity.vehicle.VehicleEntity;
|
||||||
|
@ -15,12 +15,12 @@ import snownee.jade.api.WailaPlugin;
|
||||||
public class SbwJadePlugin implements IWailaPlugin {
|
public class SbwJadePlugin implements IWailaPlugin {
|
||||||
@Override
|
@Override
|
||||||
public void register(IWailaCommonRegistration registration) {
|
public void register(IWailaCommonRegistration registration) {
|
||||||
registration.registerEntityDataProvider(EnergyVehicleProvider.INSTANCE, EnergyVehicleEntity.class);
|
registration.registerEntityDataProvider(VehicleEnergyProvider.INSTANCE, EnergyVehicleEntity.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registerClient(IWailaClientRegistration registration) {
|
public void registerClient(IWailaClientRegistration registration) {
|
||||||
registration.registerEntityComponent(VehicleHealthProvider.INSTANCE, VehicleEntity.class);
|
registration.registerEntityComponent(VehicleHealthProvider.INSTANCE, VehicleEntity.class);
|
||||||
registration.registerEntityComponent(EnergyVehicleProvider.INSTANCE, EnergyVehicleEntity.class);
|
registration.registerEntityComponent(VehicleEnergyProvider.INSTANCE, EnergyVehicleEntity.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,11 +11,11 @@ import snownee.jade.api.IServerDataProvider;
|
||||||
import snownee.jade.api.ITooltip;
|
import snownee.jade.api.ITooltip;
|
||||||
import snownee.jade.api.config.IPluginConfig;
|
import snownee.jade.api.config.IPluginConfig;
|
||||||
|
|
||||||
public enum EnergyVehicleProvider implements IEntityComponentProvider,
|
public enum VehicleEnergyProvider implements IEntityComponentProvider,
|
||||||
IServerDataProvider<EntityAccessor> {
|
IServerDataProvider<EntityAccessor> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final ResourceLocation ID = new ResourceLocation(ModUtils.MODID, "energy_vehicle");
|
private static final ResourceLocation ID = new ResourceLocation(ModUtils.MODID, "vehicle_energy");
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
|
@ -15,7 +15,7 @@ public enum VehicleHealthProvider implements IEntityComponentProvider {
|
||||||
private static final ResourceLocation ID = new ResourceLocation(ModUtils.MODID, "vehicle_health");
|
private static final ResourceLocation ID = new ResourceLocation(ModUtils.MODID, "vehicle_health");
|
||||||
|
|
||||||
public void appendTooltip(ITooltip tooltip, EntityAccessor accessor, IPluginConfig config) {
|
public void appendTooltip(ITooltip tooltip, EntityAccessor accessor, IPluginConfig config) {
|
||||||
// 对EntityHealthProvider的拙劣模仿
|
// 对EntityHealthProvider的拙劣模仿罢了
|
||||||
|
|
||||||
var vehicle = (VehicleEntity) accessor.getEntity();
|
var vehicle = (VehicleEntity) accessor.getEntity();
|
||||||
float health = vehicle.getHealth();
|
float health = vehicle.getHealth();
|
||||||
|
|
|
@ -522,6 +522,6 @@
|
||||||
"jei.superbwarfare.ancient_cpu": "Mysterious ancient technology, can be found at ancient cities.",
|
"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.",
|
"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"
|
"config.jade.plugin_superbwarfare.vehicle_health": "Vehicle Health"
|
||||||
}
|
}
|
|
@ -522,6 +522,6 @@
|
||||||
"jei.superbwarfare.ancient_cpu": "神秘的古代科技,可以在古城找到。",
|
"jei.superbwarfare.ancient_cpu": "神秘的古代科技,可以在古城找到。",
|
||||||
"jei.superbwarfare.charging_station": "使用燃料或食物进行发电,也可以接收主动输入的FE能量。能够为相邻的方块提供FE能量,为周围一定范围内的可充能载具充能。",
|
"jei.superbwarfare.charging_station": "使用燃料或食物进行发电,也可以接收主动输入的FE能量。能够为相邻的方块提供FE能量,为周围一定范围内的可充能载具充能。",
|
||||||
|
|
||||||
"config.jade.plugin_superbwarfare.energy_vehicle": "能量载具",
|
"config.jade.plugin_superbwarfare.vehicle_energy": "载具能量",
|
||||||
"config.jade.plugin_superbwarfare.vehicle_health": "载具血量"
|
"config.jade.plugin_superbwarfare.vehicle_health": "载具血量"
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue