Class SignText
java.lang.Object
net.minecraft.world.level.block.entity.SignText
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TooltipProvider.Getter<SignText> static final com.mojang.serialization.Codec<SignText> private final DyeColorstatic final SignTextstatic final TooltipProvider.Getter<SignText> private final booleanstatic final intprivate booleanprivate FormattedCharSequence @Nullable []static final StreamCodec<RegistryFriendlyByteBuf, SignText> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TooltipProvider.Getter<SignText> createTooltip(Component title) booleangetColor()getMessages(boolean shouldFilter) getRenderMessages(boolean shouldFilter, Function<Component, FormattedCharSequence> prepare) booleanhasAnyClickCommands(boolean shouldFilter) booleanhasEditableText(boolean shouldFilter) booleaninthashCode()booleanhasMessage(boolean shouldFilter) private static SignTextload(List<Component> messages, Optional<List<Component>> filteredMessages, DyeColor color, boolean hasGlowingText) private static com.mojang.serialization.DataResult<SignText> validateLineCounts(SignText signText) withGlowingText(boolean hasGlowingText)
-
Field Details
-
LINES
public static final int LINES- See Also:
-
CODEC
-
STREAM_CODEC
-
FRONT_TEXT
-
BACK_TEXT
-
EMPTY_MESSAGES
-
EMPTY
-
messages
-
filteredMessages
-
color
-
hasGlowingText
private final boolean hasGlowingText -
renderMessages
-
renderMessagedFiltered
private boolean renderMessagedFiltered
-
-
Constructor Details
-
SignText
-
-
Method Details
-
load
-
validateLineCounts
-
hasGlowingText
public boolean hasGlowingText() -
withGlowingText
-
getColor
-
withColor
-
hasMessage
public boolean hasMessage(boolean shouldFilter) -
getMessages
-
getRenderMessages
public FormattedCharSequence[] getRenderMessages(boolean shouldFilter, Function<Component, FormattedCharSequence> prepare) -
filteredMessagesForSerialization
-
hasAnyClickCommands
public boolean hasAnyClickCommands(boolean shouldFilter) -
hasEditableText
public boolean hasEditableText(boolean shouldFilter) -
equals
-
hashCode
-
asMutable
-
createTooltip
-