Package de.z0rdak.yawp.util
Class ChatLinkBuilder
java.lang.Object
de.z0rdak.yawp.util.ChatLinkBuilder
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.network.chat.MutableComponentbuildAddFlagLink(IProtectedRegion region, String flag) static net.minecraft.network.chat.MutableComponentbuildAddFlagLink(IProtectedRegion region, String flag, net.minecraft.network.chat.ClickEvent.Action action) static net.minecraft.network.chat.MutableComponentbuildAddToGroupLink(IProtectedRegion region, String group, GroupType groupType) static net.minecraft.network.chat.MutableComponent[X,Y,Z], ..., [X,Y,Z]static net.minecraft.network.chat.MutableComponentbuildAreaUpdateLink(IMarkableRegion region) [set area]static net.minecraft.network.chat.MutableComponentstatic net.minecraft.network.chat.MutableComponentbuildDimensionalBlockTpLink(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.core.BlockPos target) [X,Y,Z]static net.minecraft.network.chat.MutableComponentbuildDimensionalBlockTpLink(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.core.BlockPos target, net.minecraft.network.chat.MutableComponent text) static net.minecraft.network.chat.MutableComponentbuildDimensionalBlockTpLink(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) static net.minecraft.network.chat.MutableComponentbuildDimRegionsLink(LevelRegionData levelRegionData) static net.minecraft.network.chat.MutableComponentstatic net.minecraft.network.chat.MutableComponentstatic net.minecraft.network.chat.MutableComponentbuildDisplaySettingsLink(IMarkableRegion region, net.minecraft.network.chat.MutableComponent text) static net.minecraft.network.chat.MutableComponentbuildFlagInfoLink(IProtectedRegion region, IFlag flag) static net.minecraft.network.chat.MutableComponentbuildFlagInfoLink(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 infostatic net.minecraft.network.chat.MutableComponentbuildFlagInfoLink(IProtectedRegion region, IFlag flag, net.minecraft.network.chat.MutableComponent text, net.minecraft.network.chat.MutableComponent hoverText, net.minecraft.ChatFormatting linkColor) static net.minecraft.network.chat.MutableComponentbuildFlagMessageClearLink(IProtectedRegion region, IFlag flag) static net.minecraft.network.chat.MutableComponentbuildFlagMessageEditLink(IProtectedRegion region, IFlag flag) static net.minecraft.network.chat.MutableComponentbuildFlagMuteToggleLink(IProtectedRegion region, IFlag flag, boolean shortLink) static net.minecraft.network.chat.MutableComponentbuildFlagOverrideToggleLink(IProtectedRegion region, IFlag flag, boolean shortLink) static net.minecraft.network.chat.MutableComponentbuildFlagStateSuggestionLink(IProtectedRegion region, IFlag flag) static net.minecraft.network.chat.MutableComponentbuildGroupLink(IProtectedRegion region, String group, int groupSize) static net.minecraft.network.chat.MutableComponentbuildGroupPlayerListLink(IProtectedRegion region, String group) static net.minecraft.network.chat.MutableComponentbuildGroupTeamListLink(IProtectedRegion region, String group) static net.minecraft.network.chat.MutableComponentbuildParentClearLink(IMarkableRegion region) static net.minecraft.network.chat.MutableComponentbuildPlayerListLink(IProtectedRegion region, PlayerContainer players, String group) Players: [n player(s)] [+]static net.minecraft.network.chat.MutableComponentbuildRegionActionUndoLink(String cmd, CommandConstants toReplace, CommandConstants replacement) static net.minecraft.network.chat.MutableComponentbuildRegionActionUndoLink(String cmd, String toReplace, String replacement) static net.minecraft.network.chat.MutableComponentstatic net.minecraft.network.chat.MutableComponentstatic net.minecraft.network.chat.MutableComponentstatic net.minecraft.network.chat.MutableComponentbuildRegionAreaLink(IMarkableRegion region) static net.minecraft.network.chat.MutableComponentstatic net.minecraft.network.chat.MutableComponentbuildRegionInfoLink(IProtectedRegion region) static net.minecraft.network.chat.MutableComponentbuildRegionInfoLink(IProtectedRegion region, net.minecraft.network.chat.MutableComponent hoverText) static net.minecraft.network.chat.MutableComponentbuildRegionInfoLink(IProtectedRegion region, net.minecraft.network.chat.MutableComponent linkText, net.minecraft.network.chat.MutableComponent hoverText) static net.minecraft.network.chat.MutableComponentstatic net.minecraft.network.chat.MutableComponentbuildRegionRemoveChildLink(IProtectedRegion region, IProtectedRegion child) static net.minecraft.network.chat.MutableComponentbuildRegionShowVisualizationLink(IMarkableRegion region, net.minecraft.network.chat.MutableComponent text) static net.minecraft.network.chat.MutableComponentstatic net.minecraft.network.chat.MutableComponentbuildRemoveAllRegionsAttemptLink(LevelRegionData levelRegionData) Builds a TextComponent for the given flag and region.static net.minecraft.network.chat.MutableComponentbuildRemoveAllRegionsLink(LevelRegionData levelRegionData) static net.minecraft.network.chat.MutableComponentbuildRemoveGroupMemberLink(IProtectedRegion region, String name, GroupType groupType, String group, net.minecraft.network.chat.MutableComponent linkText, net.minecraft.network.chat.MutableComponent hoverText) static net.minecraft.network.chat.MutableComponentbuildRemoveLinkForOfflinePlayer(IProtectedRegion region, String name, GroupType groupType, String group, net.minecraft.network.chat.MutableComponent linkText, net.minecraft.network.chat.MutableComponent hoverText) static net.minecraft.network.chat.MutableComponentstatic net.minecraft.network.chat.MutableComponent[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 notstatic net.minecraft.network.chat.MutableComponentstatic net.minecraft.network.chat.MutableComponentbuildTeamListLink(IProtectedRegion region, PlayerContainer teams, String group) Teams: [n team(s)] [+]static net.minecraft.network.chat.MutableComponent
-
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 forflag- 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
-
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)
-