Clarify energy capability of sword

This commit is contained in:
DBotThePony 2022-02-23 15:23:13 +07:00
parent f5d17f6bdb
commit ea8adbf62d
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -103,6 +103,14 @@ class EnergySwordItem : Item(Properties().stacksTo(1).rarity(Rarity.RARE).tab(Ov
get() = itemStack.tag?.get("energy")?.let { ImpreciseFraction.deserializeNBT(it) } ?: ImpreciseFraction.ZERO
override val maxBatteryLevel: ImpreciseFraction
get() = MAX_ENERGY
override fun canExtract(): Boolean {
return false
}
override fun canReceive(): Boolean {
return true
}
}
val chargedAttributes: Multimap<Attribute, AttributeModifier>