Skip to content

Commit

Permalink
Removed the @deprecated for newLiteralArgBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
Taskeren committed Dec 20, 2023
1 parent 4cfe662 commit ed0df08
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/kotlin/cn/taskeren/brigadierx/BrigadierX.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import com.mojang.brigadier.context.CommandContext
@Deprecated("Removal", ReplaceWith("LiteralArgumentBuilder.literal<S>(name)"), DeprecationLevel.WARNING)
fun <S> newLiteralArgBuilder(name: String): LiteralArgumentBuilder<S> = LiteralArgumentBuilder.literal(name)

@Deprecated("Removal",level = DeprecationLevel.WARNING)
fun <S> newLiteralArgBuilder(name: String, func: LiteralArgumentBuilder<S>.() -> Unit): LiteralArgumentBuilder<S> =
LiteralArgumentBuilder.literal<S>(name).apply { func.invoke(this) }

Expand Down

0 comments on commit ed0df08

Please sign in to comment.