package Ġnet . gre em dev . mod . command . api Ċ Ċ import Ġcom . moj ang . b rig ad ier . Command Ċ import Ġcom . moj ang . b rig ad ier . arguments . Argument Type Ċ import Ġcom . moj ang . b rig ad ier . builder . Argument Builder Ċ import Ġcom . moj ang . b rig ad ier . builder . Literal Argument Builder Ċ import Ġcom . moj ang . b rig ad ier . builder . Required Argument Builder Ċ import Ġnet . minecraft . commands . Commands Ċ import Ġcom . moj ang . b rig ad ier . context . Command Context Ċ import Ġnet . gre em dev . mod . util . text Component Ċ import Ġnet . minecraft . Chat Formatting .* Ċ import Ġnet . minecraft . commands . Command Source Stack Ċ import Ġnet . minecraft . network . chat . Text Component Ċ Ċ type alias ĠMinecraft Command Context Ġ= ĠCommand Context < Command Source Stack > Ċ type alias ĠMinecraft Literal Builder Ġ= ĠLiteral Argument Builder < Command Source Stack > Ċ type alias ĠMinecraft Argument Builder < T > Ġ= ĠRequired Argument Builder < Command Source Stack , ĠT > Ċ Ċ fun Ġcommand ( name : ĠString , Ġbuilder : ĠCommand Builder . () Ġ-> ĠUnit Ġ= Ġ{} ): ĠMinecraft Literal Builder Ġ{ ĊĠĠĠ Ġreturn ĠCommand Builder ( Commands . literal ( name )). apply ( builder ). builder Ċ } Ċ Ċ fun ĠText Component . with Error Style () Ġ{ ĊĠĠĠ Ġwith Style ( DARK _ RED ) Ċ } Ċ Ċ val ĠMinecraft Command Context . player ĊĠĠĠ Ġget () Ġ= Ġsource . player Or Exception Ċ Ċ val ĠMinecraft Command Context . entity ĊĠĠĠ Ġget () Ġ= Ġsource . entity Or Exception Ċ Ċ fun ĠMinecraft Command Context . success ( content : ĠString , Ġbuilder : ĠText Component . () Ġ-> ĠUnit , Ġsend To Ops : ĠBoolean Ġ= Ġfalse ): ĠBoolean Ġ{ ĊĠĠĠ Ġsource . send Success ( text Component ( content , Ġbuilder ), Ġsend To Ops ) ĊĠĠĠ Ġreturn Ġtrue Ċ } Ċ fun ĠMinecraft Command Context . success ( component : ĠText Component , Ġsend To Ops : ĠBoolean Ġ= Ġfalse ): ĠBoolean Ġ{ ĊĠĠĠ Ġsource . send Success ( component , Ġsend To Ops ) ĊĠĠĠ Ġreturn Ġtrue Ċ } Ċ fun ĠMinecraft Command Context . failure ( content : ĠString , Ġbuilder : ĠText Component . () Ġ-> ĠUnit ): ĠBoolean Ġ{ ĊĠĠĠ Ġsource . send Failure ( text Component ( content , Ġbuilder )) ĊĠĠĠ Ġreturn Ġfalse Ċ } Ċ fun ĠMinecraft Command Context . failure ( component : ĠText Component ): ĠBoolean Ġ{ ĊĠĠĠ Ġsource . send Failure ( component ) ĊĠĠĠ Ġreturn Ġtrue Ċ } Ċ fun ĠMinecraft Command Context . styled Failure ( content : ĠString , Ġbuilder : ĠText Component . () Ġ-> ĠUnit Ġ= Ġ{} ): ĠBoolean Ġ{ ĊĠĠĠ Ġsource . send Failure ( text Component ( content , Ġbuilder ). apply Ġ{ Ġwith Error Style () Ġ}) ĊĠĠĠ Ġreturn Ġfalse Ċ } Ċ