mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
deprecate TextComponent::formatting
This commit is contained in:
parent
137c52aba6
commit
2bcc7d4fb1
@ -114,8 +114,6 @@ object LegacyComponentReader {
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
// ignore the next char, it is not valid formatting and should be hidden
|
||||
}
|
||||
|
||||
parts.push(sequence, restricted)
|
||||
|
@ -33,6 +33,7 @@ import javafx.util.Duration
|
||||
open class TextComponent(
|
||||
message: Any? = "",
|
||||
override var color: RGBColor? = null,
|
||||
@Deprecated("bitfield")
|
||||
override val formatting: MutableSet<ChatFormattingCode> = mutableSetOf(),
|
||||
var clickEvent: ClickEvent? = null,
|
||||
var hoverEvent: HoverEvent? = null,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Minosoft
|
||||
* Copyright (C) 2020-2022 Moritz Zwerger
|
||||
* Copyright (C) 2020-2023 Moritz Zwerger
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
@ -18,6 +18,7 @@ import de.bixilon.minosoft.data.text.formatting.color.ChatColors
|
||||
import de.bixilon.minosoft.data.text.formatting.color.RGBColor
|
||||
import de.bixilon.minosoft.data.text.formatting.color.RGBColor.Companion.asColor
|
||||
|
||||
@Deprecated("bitfield")
|
||||
interface ChatCode {
|
||||
companion object {
|
||||
val FORMATTING_CODES: Map<String, ChatCode> = ChatColors.NAME_MAP.extend(
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Minosoft
|
||||
* Copyright (C) 2020-2022 Moritz Zwerger
|
||||
* Copyright (C) 2020-2023 Moritz Zwerger
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
@ -12,6 +12,7 @@
|
||||
*/
|
||||
package de.bixilon.minosoft.data.text.formatting
|
||||
|
||||
@Deprecated("bitfield")
|
||||
interface ChatFormattingCode : ChatCode {
|
||||
val char: Char
|
||||
val ansi: String
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Minosoft
|
||||
* Copyright (C) 2020-2022 Moritz Zwerger
|
||||
* Copyright (C) 2020-2023 Moritz Zwerger
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
@ -14,6 +14,7 @@ package de.bixilon.minosoft.data.text.formatting
|
||||
|
||||
import com.google.common.collect.HashBiMap
|
||||
|
||||
@Deprecated("bitfield")
|
||||
object ChatFormattingCodes {
|
||||
private val FORMATTING_CODES = HashBiMap.create<Char, ChatFormattingCode>()
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Minosoft
|
||||
* Copyright (C) 2020-2022 Moritz Zwerger
|
||||
* Copyright (C) 2020-2023 Moritz Zwerger
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
@ -12,6 +12,7 @@
|
||||
*/
|
||||
package de.bixilon.minosoft.data.text.formatting
|
||||
|
||||
@Deprecated("bitfield")
|
||||
enum class PostChatFormattingCodes(
|
||||
override val char: Char,
|
||||
override val ansi: String,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Minosoft
|
||||
* Copyright (C) 2020-2022 Moritz Zwerger
|
||||
* Copyright (C) 2020-2023 Moritz Zwerger
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
@ -12,6 +12,7 @@
|
||||
*/
|
||||
package de.bixilon.minosoft.data.text.formatting
|
||||
|
||||
@Deprecated("bitfield")
|
||||
enum class PreChatFormattingCodes(
|
||||
override val char: Char,
|
||||
override val ansi: String,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Minosoft
|
||||
* Copyright (C) 2020-2022 Moritz Zwerger
|
||||
* Copyright (C) 2020-2023 Moritz Zwerger
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
@ -17,5 +17,7 @@ import de.bixilon.minosoft.data.text.formatting.color.RGBColor
|
||||
|
||||
interface TextStyle {
|
||||
var color: RGBColor?
|
||||
|
||||
@Deprecated("bitfield")
|
||||
val formatting: MutableCollection<ChatFormattingCode>
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user