Class AdventureStargateComponent
java.lang.Object
org.sgrewritten.stargate.api.network.portal.formatting.AdventureStargateComponent
- All Implemented Interfaces:
StargateComponent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappend
(StargateComponent value) Append another components content after this componentnet.kyori.adventure.text.Component
getText()
static Holder
<StargateComponent> of
(net.kyori.adventure.text.Component text) 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
-
AdventureStargateComponent
public AdventureStargateComponent(net.kyori.adventure.text.Component text)
-
-
Method Details
-
getText
public net.kyori.adventure.text.Component 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)
-