Class LegacyStargateComponent
java.lang.Object
org.sgrewritten.stargate.api.network.portal.formatting.LegacyStargateComponent
- All Implemented Interfaces:
StargateComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(StargateComponent value) Append another components content after this componentgetText()static Holder<StargateComponent> voidsendMessage(org.bukkit.entity.Entity receiver) voidsetSignLine(int index, org.bukkit.block.Sign sign) Set a line with the text of this component in the specified sign state
-
Constructor Details
-
LegacyStargateComponent
-
-
Method Details
-
getText
-
of
-
setSignLine
public void setSignLine(int index, org.bukkit.block.Sign sign) Description copied from interface:StargateComponentSet a line with the text of this component in the specified sign state- Specified by:
setSignLinein interfaceStargateComponent- Parameters:
index-The index of the line to change
sign-The sign state to modify
-
sendMessage
public void sendMessage(org.bukkit.entity.Entity receiver) - Specified by:
sendMessagein interfaceStargateComponent- Parameters:
receiver-
-
append
Description copied from interface:StargateComponentAppend another components content after this component- Specified by:
appendin interfaceStargateComponent- Parameters:
value-The other component to append
- Returns:
The resulting component after the merge
-
plainText
- Specified by:
plainTextin interfaceStargateComponent- Returns:
- A plain text serialization (no colors and so on)
-