mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-19 04:15:14 -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
|
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.CommandArgumentNode
|
||||||
import de.bixilon.minosoft.data.commands.CommandLiteralNode
|
import de.bixilon.minosoft.data.commands.CommandLiteralNode
|
||||||
import de.bixilon.minosoft.data.commands.CommandNode
|
import de.bixilon.minosoft.data.commands.CommandNode
|
||||||
@ -256,16 +254,6 @@ open class InByteBuffer {
|
|||||||
return readArray(length) { readJson() }
|
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 {
|
open fun readChatComponent(): ChatComponent {
|
||||||
return ChatComponent.of(readString())
|
return ChatComponent.of(readString())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user