Class ChatLinkBuilder

java.lang.Object
de.z0rdak.yawp.util.ChatLinkBuilder

public class ChatLinkBuilder extends Object
  • Method Details

    • buildAreaMarkedBlocksTpLinks

      public static net.minecraft.network.chat.MutableComponent buildAreaMarkedBlocksTpLinks(IMarkableRegion region)
      [X,Y,Z], ..., [X,Y,Z]
    • buildRegionAreaExpandLink

      public static net.minecraft.network.chat.MutableComponent buildRegionAreaExpandLink(IMarkableRegion region)
    • buildAreaUpdateLink

      public static net.minecraft.network.chat.MutableComponent buildAreaUpdateLink(IMarkableRegion region)
      [set area]
    • buildRegionAreaActionLinks

      public static net.minecraft.network.chat.MutableComponent buildRegionAreaActionLinks(IMarkableRegion region)
    • buildWikiLink

      public static net.minecraft.network.chat.MutableComponent buildWikiLink()
    • buildRegionInfoLink

      public static net.minecraft.network.chat.MutableComponent buildRegionInfoLink(IProtectedRegion region)
    • buildRegionInfoLink

      public static net.minecraft.network.chat.MutableComponent buildRegionInfoLink(IProtectedRegion region, net.minecraft.network.chat.MutableComponent linkText, net.minecraft.network.chat.MutableComponent hoverText)
    • buildRegionInfoLink

      public static net.minecraft.network.chat.MutableComponent buildRegionInfoLink(IProtectedRegion region, net.minecraft.network.chat.MutableComponent hoverText)
    • buildRegionAreaLink

      public static net.minecraft.network.chat.MutableComponent buildRegionAreaLink(IMarkableRegion region)
    • buildDisplaySettingsLink

      public static net.minecraft.network.chat.MutableComponent buildDisplaySettingsLink(IMarkableRegion region)
    • buildRegionShowVisualizationLink

      public static net.minecraft.network.chat.MutableComponent buildRegionShowVisualizationLink(IMarkableRegion region, net.minecraft.network.chat.MutableComponent text)
    • buildRegionVisualizationLink

      public static net.minecraft.network.chat.MutableComponent buildRegionVisualizationLink(IMarkableRegion region)
    • buildDisplaySettingsLink

      public static net.minecraft.network.chat.MutableComponent buildDisplaySettingsLink(IMarkableRegion region, net.minecraft.network.chat.MutableComponent text)
    • buildGroupLink

      public static net.minecraft.network.chat.MutableComponent buildGroupLink(IProtectedRegion region, String group, int groupSize)
    • buildPlayerListLink

      public static net.minecraft.network.chat.MutableComponent buildPlayerListLink(IProtectedRegion region, PlayerContainer players, String group)
      Players: [n player(s)] [+]
    • buildTeamListLink

      public static net.minecraft.network.chat.MutableComponent buildTeamListLink(IProtectedRegion region, PlayerContainer teams, String group)
      Teams: [n team(s)] [+]
    • buildAddToGroupLink

      public static net.minecraft.network.chat.MutableComponent buildAddToGroupLink(IProtectedRegion region, String group, GroupType groupType)
    • buildGroupTeamListLink

      public static net.minecraft.network.chat.MutableComponent buildGroupTeamListLink(IProtectedRegion region, String group)
    • buildGroupPlayerListLink

      public static net.minecraft.network.chat.MutableComponent buildGroupPlayerListLink(IProtectedRegion region, String group)
    • buildFlagInfoLink

      public static net.minecraft.network.chat.MutableComponent buildFlagInfoLink(IProtectedRegion region, IFlag flag, net.minecraft.ChatFormatting linkColor)
      Creates a TextComponent for displaying the flag info
      Text: [$flag-name]
      Link: /wp flag dim $dim $flag-name info
      Parameters:
      region - involved in creating command link for
      flag - involved in creating command link for
      Returns:
      TextComponent [$flag-name] with a link for the flag info
    • buildFlagInfoLink

      public static net.minecraft.network.chat.MutableComponent buildFlagInfoLink(IProtectedRegion region, IFlag flag, net.minecraft.network.chat.MutableComponent text, net.minecraft.network.chat.MutableComponent hoverText, net.minecraft.ChatFormatting linkColor)
    • buildFlagInfoLink

      public static net.minecraft.network.chat.MutableComponent buildFlagInfoLink(IProtectedRegion region, IFlag flag)
    • buildFlagStateSuggestionLink

      public static net.minecraft.network.chat.MutableComponent buildFlagStateSuggestionLink(IProtectedRegion region, IFlag flag)
    • buildFlagOverrideToggleLink

      public static net.minecraft.network.chat.MutableComponent buildFlagOverrideToggleLink(IProtectedRegion region, IFlag flag, boolean shortLink)
    • buildFlagMessageEditLink

      public static net.minecraft.network.chat.MutableComponent buildFlagMessageEditLink(IProtectedRegion region, IFlag flag)
    • buildFlagMessageClearLink

      public static net.minecraft.network.chat.MutableComponent buildFlagMessageClearLink(IProtectedRegion region, IFlag flag)
    • buildFlagMuteToggleLink

      public static net.minecraft.network.chat.MutableComponent buildFlagMuteToggleLink(IProtectedRegion region, IFlag flag, boolean shortLink)
    • buildRemoveAllRegionsAttemptLink

      public static net.minecraft.network.chat.MutableComponent buildRemoveAllRegionsAttemptLink(LevelRegionData levelRegionData)
      Builds a TextComponent for the given flag and region.
      Currently not used in the CLI for obvious reasons.
    • buildRemoveAllRegionsLink

      public static net.minecraft.network.chat.MutableComponent buildRemoveAllRegionsLink(LevelRegionData levelRegionData)
    • buildRemoveRegionLink

      public static net.minecraft.network.chat.MutableComponent buildRemoveRegionLink(IProtectedRegion region)
    • buildParentClearLink

      public static net.minecraft.network.chat.MutableComponent buildParentClearLink(IMarkableRegion region)
    • buildDimRegionsLink

      public static net.minecraft.network.chat.MutableComponent buildDimRegionsLink(LevelRegionData levelRegionData)
    • buildRegionListChildrenLink

      public static net.minecraft.network.chat.MutableComponent buildRegionListChildrenLink(IProtectedRegion region)
    • buildRegionAddChildrenLink

      public static net.minecraft.network.chat.MutableComponent buildRegionAddChildrenLink(IProtectedRegion region)
    • buildDimCreateRegionLink

      public static net.minecraft.network.chat.MutableComponent buildDimCreateRegionLink(IProtectedRegion region)
    • buildResponsibleFlagListLink

      public static net.minecraft.network.chat.MutableComponent buildResponsibleFlagListLink(IProtectedRegion region)
      [n] responsible flag(s) | [m] flag(s) [+] With the responsible flags being the applied flags for this region, including the parent flags and the later are only the flags defined in this region, whether they are applied, active or not
      Parameters:
      region - the to build the flag list link component for
      Returns:
      [n] responsible flag(s) | [m] flag(s) [+]
    • buildRegionFlagListLink

      public static net.minecraft.network.chat.MutableComponent buildRegionFlagListLink(IProtectedRegion region)
    • buildSuggestAddFlagLink

      public static net.minecraft.network.chat.MutableComponent buildSuggestAddFlagLink(IProtectedRegion region)
    • buildAddFlagLink

      public static net.minecraft.network.chat.MutableComponent buildAddFlagLink(IProtectedRegion region, String flag)
    • buildAddFlagLink

      public static net.minecraft.network.chat.MutableComponent buildAddFlagLink(IProtectedRegion region, String flag, net.minecraft.network.chat.ClickEvent.Action action)
    • buildDimensionalBlockTpLink

      public static net.minecraft.network.chat.MutableComponent buildDimensionalBlockTpLink(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.core.BlockPos target)
      [X,Y,Z]
    • buildDimensionalBlockTpLink

      public static net.minecraft.network.chat.MutableComponent buildDimensionalBlockTpLink(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.core.BlockPos target, net.minecraft.network.chat.MutableComponent text)
    • buildDimensionalBlockTpLink

      public static net.minecraft.network.chat.MutableComponent buildDimensionalBlockTpLink(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.core.BlockPos target, net.minecraft.network.chat.MutableComponent text, net.minecraft.network.chat.MutableComponent hover)
    • buildDimSuggestRegionRemovalLink

      public static net.minecraft.network.chat.MutableComponent buildDimSuggestRegionRemovalLink(IMarkableRegion region)
    • buildRegionRemoveChildLink

      public static net.minecraft.network.chat.MutableComponent buildRegionRemoveChildLink(IProtectedRegion region, IProtectedRegion child)
    • buildRegionActionUndoLink

      public static net.minecraft.network.chat.MutableComponent buildRegionActionUndoLink(String cmd, CommandConstants toReplace, CommandConstants replacement)
    • buildRegionActionUndoLink

      public static net.minecraft.network.chat.MutableComponent buildRegionActionUndoLink(String cmd, String toReplace, String replacement)
    • buildRemoveGroupMemberLink

      public static net.minecraft.network.chat.MutableComponent buildRemoveGroupMemberLink(IProtectedRegion region, String name, GroupType groupType, String group, net.minecraft.network.chat.MutableComponent linkText, net.minecraft.network.chat.MutableComponent hoverText)
    • buildRemoveLinkForOfflinePlayer

      public static net.minecraft.network.chat.MutableComponent buildRemoveLinkForOfflinePlayer(IProtectedRegion region, String name, GroupType groupType, String group, net.minecraft.network.chat.MutableComponent linkText, net.minecraft.network.chat.MutableComponent hoverText)