Class RegionPrintoutBuilder
java.lang.Object
com.sk89q.worldguard.commands.region.RegionPrintoutBuilder
- All Implemented Interfaces:
Callable<com.sk89q.worldedit.util.formatting.text.TextComponent>
public class RegionPrintoutBuilder
extends Object
implements Callable<com.sk89q.worldedit.util.formatting.text.TextComponent>
Create a region printout, as used in /region info to show information about
a region.
-
Constructor Summary
ConstructorsConstructorDescriptionRegionPrintoutBuilder(String world, ProtectedRegion region, com.sk89q.worldguard.util.profile.cache.ProfileCache cache, com.sk89q.worldedit.extension.platform.Actor actor)Create a new instance with a region to report on. -
Method Summary
Modifier and TypeMethodDescriptioncom.sk89q.worldedit.util.formatting.component.TextComponentProducerappend(com.sk89q.worldedit.util.formatting.text.TextComponent component)com.sk89q.worldedit.util.formatting.component.TextComponentProducervoidAdd region name, type, and priority.voidAdd information about coordinates.voidAdd information about members.voidAdd information about flags.voidappendFlagsList(boolean useColors)Append just the list of flags (without "Flags:"), including colors.voidAdd information about parents.voidappendParentTree(boolean useColors)Add information about parents.com.sk89q.worldedit.util.formatting.text.TextComponentcall()voidnewline()Add a new line.voidsend(com.sk89q.worldedit.extension.platform.Actor sender)Send the report to aActor.com.sk89q.worldedit.util.formatting.text.TextComponenttoString()
-
Constructor Details
-
RegionPrintoutBuilder
public RegionPrintoutBuilder(String world, ProtectedRegion region, @Nullable com.sk89q.worldguard.util.profile.cache.ProfileCache cache, @Nullable com.sk89q.worldedit.extension.platform.Actor actor)Create a new instance with a region to report on.- Parameters:
region- the regioncache- a profile cache, ornull
-
-
Method Details
-
newline
public void newline()Add a new line. -
appendBasics
public void appendBasics()Add region name, type, and priority. -
appendFlags
public void appendFlags()Add information about flags. -
appendFlagsList
public void appendFlagsList(boolean useColors)Append just the list of flags (without "Flags:"), including colors.- Parameters:
useColors- true to use colors
-
appendParents
public void appendParents()Add information about parents. -
appendParentTree
public void appendParentTree(boolean useColors)Add information about parents.- Parameters:
useColors- true to use colors
-
appendDomain
public void appendDomain()Add information about members. -
appendBounds
public void appendBounds()Add information about coordinates. -
call
public com.sk89q.worldedit.util.formatting.text.TextComponent call() -
send
public void send(com.sk89q.worldedit.extension.platform.Actor sender)Send the report to aActor.- Parameters:
sender- the recipient
-
append
-
append
public com.sk89q.worldedit.util.formatting.component.TextComponentProducer append(com.sk89q.worldedit.util.formatting.text.TextComponent component) -
toComponent
public com.sk89q.worldedit.util.formatting.text.TextComponent toComponent() -
toString
-