Kotlin? Hello?

This commit is contained in:
DBotThePony 2023-04-14 22:45:39 +07:00
parent addd088cc4
commit 20bbaec62a
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -1117,6 +1117,11 @@ class FieldSynchronizer(private val callback: Runnable, private val alwaysCallCa
isClientValue = true
observer.accept(newValue)
}
@Deprecated("Use type specific property", replaceWith = ReplaceWith("this.property"))
override fun getValue(thisRef: Any?, property: KProperty<*>): Float {
return super<IFloatField>.getValue(thisRef, property)
}
}
/**
@ -1184,6 +1189,11 @@ class FieldSynchronizer(private val callback: Runnable, private val alwaysCallCa
isClientValue = true
observer.accept(newValue)
}
@Deprecated("Use type specific property", replaceWith = ReplaceWith("this.property"))
override fun getValue(thisRef: Any?, property: KProperty<*>): Double {
return super<IDoubleField>.getValue(thisRef, property)
}
}
/**
@ -1237,6 +1247,11 @@ class FieldSynchronizer(private val callback: Runnable, private val alwaysCallCa
return getter.asInt
}
}
@Deprecated("Use type specific property", replaceWith = ReplaceWith("this.property"))
override fun getValue(thisRef: Any?, property: KProperty<*>): Int {
return super<IIntField>.getValue(thisRef, property)
}
}
/**
@ -1332,6 +1347,11 @@ class FieldSynchronizer(private val callback: Runnable, private val alwaysCallCa
return getter.asLong
}
}
@Deprecated("Use type specific property", replaceWith = ReplaceWith("this.property"))
override fun getValue(thisRef: Any?, property: KProperty<*>): Long {
return super<ILongField>.getValue(thisRef, property)
}
}
/**
@ -1441,6 +1461,11 @@ class FieldSynchronizer(private val callback: Runnable, private val alwaysCallCa
isClientValue = true
observer.accept(newValue)
}
@Deprecated("Use type specific property", replaceWith = ReplaceWith("this.property"))
override fun getValue(thisRef: Any?, property: KProperty<*>): Boolean {
return super<IBooleanField>.getValue(thisRef, property)
}
}
/**