Class LegacyStargateComponent
java.lang.Object
org.sgrewritten.stargate.api.network.portal.formatting.LegacyStargateComponent
- All Implemented Interfaces:
StargateComponent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappend
(StargateComponent value) Append another components content after this componentgetText()
static Holder
<StargateComponent> void
sendMessage
(org.bukkit.entity.Entity receiver) void
setSignLine
(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:StargateComponent
Set a line with the text of this component in the specified sign state- Specified by:
setSignLine
in 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:
sendMessage
in interfaceStargateComponent
- Parameters:
receiver
-
-
append
Description copied from interface:StargateComponent
Append another components content after this component- Specified by:
append
in interfaceStargateComponent
- Parameters:
value
-The other component to append
- Returns:
The resulting component after the merge
-
plainText
- Specified by:
plainText
in interfaceStargateComponent
- Returns:
- A plain text serialization (no colors and so on)
-