Clarify energy capability of sword
This commit is contained in:
parent
f5d17f6bdb
commit
ea8adbf62d
@ -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
|
get() = itemStack.tag?.get("energy")?.let { ImpreciseFraction.deserializeNBT(it) } ?: ImpreciseFraction.ZERO
|
||||||
override val maxBatteryLevel: ImpreciseFraction
|
override val maxBatteryLevel: ImpreciseFraction
|
||||||
get() = MAX_ENERGY
|
get() = MAX_ENERGY
|
||||||
|
|
||||||
|
override fun canExtract(): Boolean {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun canReceive(): Boolean {
|
||||||
|
return true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val chargedAttributes: Multimap<Attribute, AttributeModifier>
|
val chargedAttributes: Multimap<Attribute, AttributeModifier>
|
||||||
|
Loading…
Reference in New Issue
Block a user