Class SignText
java.lang.Object
net.minecraft.world.level.block.entity.SignText
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DyeColor
static final com.mojang.serialization.Codec
<SignText> private final Component[]
private final boolean
static final int
private static final com.mojang.serialization.Codec
<Component[]> private final Component[]
private boolean
private FormattedCharSequence[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static Component[]
getColor()
getMessage
(int p_277404_, boolean p_278108_) getMessages
(boolean p_277992_) getRenderMessages
(boolean p_277336_, Function<Component, FormattedCharSequence> p_277538_) boolean
hasAnyClickCommands
(Player p_277865_) boolean
boolean
hasMessage
(Player p_277764_) private static SignText
setHasGlowingText
(boolean p_277953_) setMessage
(int p_277878_, Component p_277360_) setMessage
(int p_277690_, Component p_277852_, Component p_277564_)
-
Field Details
-
LINES_CODEC
-
DIRECT_CODEC
-
LINES
public static final int LINES- See Also:
-
messages
-
filteredMessages
-
color
-
hasGlowingText
private final boolean hasGlowingText -
renderMessages
-
renderMessagedFiltered
private boolean renderMessagedFiltered
-
-
Constructor Details
-
SignText
public SignText() -
SignText
-
-
Method Details
-
emptyMessages
-
load
-
hasGlowingText
public boolean hasGlowingText() -
setHasGlowingText
-
getColor
-
setColor
-
getMessage
-
setMessage
-
setMessage
-
hasMessage
-
getMessages
-
getRenderMessages
public FormattedCharSequence[] getRenderMessages(boolean p_277336_, Function<Component, FormattedCharSequence> p_277538_) -
filteredMessages
-
hasAnyClickCommands
-