mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 11:54:59 -04:00
byte buffer: remove deprecated legacy json read functions
This commit is contained in:
parent
0f93956c5e
commit
25191ecb9d
@ -12,8 +12,6 @@
|
||||
*/
|
||||
package de.bixilon.minosoft.protocol.protocol
|
||||
|
||||
import com.google.gson.JsonObject
|
||||
import com.google.gson.JsonParser
|
||||
import de.bixilon.minosoft.data.commands.CommandArgumentNode
|
||||
import de.bixilon.minosoft.data.commands.CommandLiteralNode
|
||||
import de.bixilon.minosoft.data.commands.CommandNode
|
||||
@ -256,16 +254,6 @@ open class InByteBuffer {
|
||||
return readArray(length) { readJson() }
|
||||
}
|
||||
|
||||
@Deprecated(message = "GSON is deprecated")
|
||||
fun readLegacyJson(): JsonObject {
|
||||
return JsonParser.parseString(readString()).asJsonObject
|
||||
}
|
||||
|
||||
@Deprecated(message = "GSON is deprecated")
|
||||
fun readLegacyJsonArray(length: Int = readVarInt()): Array<JsonObject> {
|
||||
return readArray(length) { readLegacyJson() }
|
||||
}
|
||||
|
||||
open fun readChatComponent(): ChatComponent {
|
||||
return ChatComponent.of(readString())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user