Builder

public interface Builder

Builder for creating FakeText instances with custom styling. Styling options only affect TextDisplay (Java Edition players).

Functions

Link copied to clipboard
Sets the text alignment (TextDisplay only).
Link copied to clipboard
public abstract FakeText.Builder backgroundColor(int argb)
Sets the background color with alpha (TextDisplay only).
public abstract FakeText.Builder backgroundColor(Color color)
Sets the background color (TextDisplay only).
Link copied to clipboard
public abstract FakeText.Builder billboard(Display.Billboard billboard)
Sets the billboard mode (TextDisplay only).
Link copied to clipboard
public abstract FakeText build(Location location)
Builds the FakeText at the specified location.
Link copied to clipboard
public abstract FakeText.Builder lineWidth(int width)
Sets the line width before wrapping (TextDisplay only).
Link copied to clipboard
public abstract FakeText.Builder scale(float scale)
Sets the scale of the text (TextDisplay only).
Link copied to clipboard
public abstract FakeText.Builder seeThrough(boolean seeThrough)
Sets whether the text is see-through (TextDisplay only).
Link copied to clipboard
public abstract FakeText.Builder shadow(boolean shadow)
Sets whether the text has shadow (TextDisplay only).
Link copied to clipboard
public abstract FakeText.Builder text(String text)
Sets the initial text.
Link copied to clipboard
public abstract FakeText.Builder textOpacity(byte opacity)
Sets the text opacity (TextDisplay only).
Link copied to clipboard
public abstract FakeText.Builder translation(float x, float y, float z)
Sets the translation offset of the text (TextDisplay only).
Link copied to clipboard
public abstract FakeText.Builder viewerFilter(Predicate<Player> viewerFilter)
Restricts which players may see this text while it is automatically tracked.
Link copied to clipboard
public abstract FakeText.Builder viewRange(float range)
Sets the view range multiplier (TextDisplay only).