We are not nullable INBTSerializable
This commit is contained in:
parent
bbb2649afe
commit
901d1944ce
@ -43,7 +43,7 @@ import java.util.*
|
||||
|
||||
@MethodsReturnNonnullByDefault
|
||||
@ParametersAreNonnullByDefault
|
||||
open class AndroidCapability(@JvmField protected val ent: LivingEntity) : ICapabilityProvider, IAndroidCapability, INBTSerializable<CompoundTag?> {
|
||||
open class AndroidCapability(@JvmField protected val ent: LivingEntity) : ICapabilityProvider, IAndroidCapability, INBTSerializable<CompoundTag> {
|
||||
@JvmField protected var battery = ImpreciseFraction.ZERO
|
||||
@JvmField protected var maxBattery = ImpreciseFraction(60000)
|
||||
|
||||
|
@ -11,7 +11,7 @@ import ru.dbotthepony.mc.otm.capability.IMatteryEnergyStorage
|
||||
import ru.dbotthepony.mc.otm.core.ImpreciseFraction
|
||||
import java.util.*
|
||||
|
||||
interface IAndroidCapability : IMatteryEnergyStorage, INBTSerializable<CompoundTag?> {
|
||||
interface IAndroidCapability : IMatteryEnergyStorage, INBTSerializable<CompoundTag> {
|
||||
fun tick()
|
||||
fun tickClient()
|
||||
fun getEntity(): LivingEntity
|
||||
|
Loading…
Reference in New Issue
Block a user