carbon mesh and plasma repeater stored energy lang
This commit is contained in:
parent
325d1f5786
commit
56ab86aa3f
src
data/kotlin/ru/dbotthepony/mc/otm/datagen/lang
main/kotlin/ru/dbotthepony/mc/otm/item/weapon
@ -548,6 +548,7 @@ private fun items(provider: MatteryLanguageProvider) {
|
||||
add(MItems.MIRROR, "description", "I can clearly see my own reflection in this mirror")
|
||||
add(MItems.REINFORCED_TRITANIUM_PLATE, "Reinforced Tritanium Plate")
|
||||
add(MItems.REINFORCED_TRITANIUM_PLATE, "description", "An armor plate, reinforced to withstand great kinetic forces")
|
||||
add(MItems.CARBON_MESH, "Carbon Mesh")
|
||||
|
||||
add(MItems.GRAVITATIONAL_DISRUPTOR, "Gravitational Disruptor")
|
||||
|
||||
|
@ -553,6 +553,7 @@ private fun items(provider: MatteryLanguageProvider) {
|
||||
add(MItems.MIRROR, "description", "Я могу очень отчётливо видеть своё отражение в этом зеркале")
|
||||
add(MItems.REINFORCED_TRITANIUM_PLATE, "Укреплённая тритановая пластина")
|
||||
add(MItems.REINFORCED_TRITANIUM_PLATE, "description", "Бронированная пластина, усиленная что бы выдержать большие кинетические силы")
|
||||
add(MItems.CARBON_MESH, "Углеродная сетка")
|
||||
|
||||
add(MItems.GRAVITATIONAL_DISRUPTOR, "Антигравитационный маяк")
|
||||
|
||||
|
@ -18,6 +18,7 @@ import net.minecraftforge.common.util.LazyOptional
|
||||
import ru.dbotthepony.mc.otm.*
|
||||
import ru.dbotthepony.mc.otm.capability.*
|
||||
import ru.dbotthepony.mc.otm.capability.energy.IMatteryEnergyStorage
|
||||
import ru.dbotthepony.mc.otm.capability.energy.ItemEnergyStorageImpl
|
||||
import ru.dbotthepony.mc.otm.capability.energy.getBarColor
|
||||
import ru.dbotthepony.mc.otm.capability.energy.getBarWidth
|
||||
import ru.dbotthepony.mc.otm.core.*
|
||||
@ -181,15 +182,7 @@ abstract class PlasmaWeaponItem<D : PlasmaWeaponDataTable>(tables: KClass<D>, pr
|
||||
) {
|
||||
super.appendHoverText(itemStack, p_41422_, p_41423_, p_41424_)
|
||||
|
||||
itemStack.getCapability(MatteryCapability.ENERGY).ifPresentK {
|
||||
p_41423_.add(
|
||||
TranslatableComponent(
|
||||
"otm.item.power.normal.storage",
|
||||
it.batteryLevel.formatPower(),
|
||||
it.maxBatteryLevel.formatPower()
|
||||
).withStyle(ChatFormatting.GRAY)
|
||||
)
|
||||
}
|
||||
ItemEnergyStorageImpl.appendHoverText(itemStack, p_41423_)
|
||||
}
|
||||
|
||||
fun energyData(itemStack: ItemStack) = itemStack.matteryEnergy as PlasmaWeaponEnergy
|
||||
|
Loading…
Reference in New Issue
Block a user