net.minecraft.world.level.block.entity

public class SignBlockEntity

extends BlockEntity

cxp
net.minecraft.world.level.block.entity.SignBlockEntity
net.minecraft.class_2625
net.minecraft.block.entity.SignBlockEntity
net.minecraft.src.C_2024_
net.minecraft.world.level.block.entity.TileEntitySign

Field summary

Modifier and TypeField
public static final int
a
LINES
field_31362
TEXT_COUNT
f_155692_
private static final int
b
MAX_TEXT_LINE_WIDTH
field_40335
MAX_TEXT_WIDTH
f_243840_
private static final int
c
TEXT_LINE_HEIGHT
field_40336
TEXT_LINE_HEIGHT
f_243968_
private static final String[]
d
RAW_TEXT_FIELD_NAMES
field_28905
TEXT_KEYS
f_155693_
private static final String[]
e
FILTERED_TEXT_FIELD_NAMES
field_28906
FILTERED_TEXT_KEYS
f_155694_
private final Component[]
f
messages
field_12050
texts
f_59720_
private final Component[]
g
filteredMessages
field_28907
filteredTexts
f_155695_
private boolean
h
isEditable
field_12048
editable
f_59721_
private UUID
i
playerWhoMayEdit
field_12046
editor
f_59722_
private FormattedCharSequence[]
j
renderMessages
field_12049
textsBeingEdited
f_59723_
private boolean
k
renderMessagedFiltered
field_28908
filterText
f_155696_
private DyeColor
l
color
field_16419
textColor
f_59724_
private boolean
m
hasGlowingText
field_29225
glowingText
f_155697_

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)
public (BlockEntityType p_248914_, BlockPos p_249550_, BlockState arg2)

Method summary

Modifier and TypeMethod
public int
c()
getTextLineHeight()
method_45469()
getTextLineHeight()
m_245065_()
public int
d()
getMaxTextLineWidth()
method_45470()
getMaxTextWidth()
m_245123_()
protected void
b(qp arg0)
saveAdditional(CompoundTag arg0)
method_11007(class_2487 arg0)
writeNbt(NbtCompound arg0)
m_183515_(C_4917_ arg0)
public void
a(qp arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
readNbt(NbtCompound arg0)
m_142466_(C_4917_ arg0)
private Component
a(String arg0)
loadLine(String arg0)
method_33828(String arg0)
parseTextFromJson(String json)
m_155711_(String arg0)
private Component
b(String arg0)
deserializeTextSafe(String arg0)
method_33384(String arg0)
unparsedTextFromJson(String json)
m_155720_(String arg0)
public Component
a(int arg0, boolean arg1)
getMessage(int arg0, boolean arg1)
method_30843(int arg0, boolean arg1)
getTextOnRow(int row, boolean filtered)
m_155706_(int p_155708_, boolean arg1)
public void
a(int arg0, ss arg1)
setMessage(int arg0, Component arg1)
method_11299(int arg0, class_2561 arg1)
setTextOnRow(int row, Text text)
m_59732_(int p_59734_, C_4996_ arg1)
public void
a(int arg0, ss arg1, ss arg2)
setMessage(int arg0, Component arg1, Component arg2)
method_33827(int arg0, class_2561 arg1, class_2561 arg2)
setTextOnRow(int row, Text text, Text filteredText)
m_155702_(int p_155704_, C_4996_ p_155705_, C_4996_ arg2)
public FormattedCharSequence[]
a(boolean arg0, Function<ss, ano> arg1)
getRenderMessages(boolean arg0, Function<Component, FormattedCharSequence> arg1)
method_33829(boolean arg0, Function<class_2561, class_5481> arg1)
updateSign(boolean filterText, Function<Text, OrderedText> textOrderingFunction)
m_155717_(boolean p_155719_, Function<C_4996_, C_178_> arg1)
private Component[]
c(boolean arg0)
getMessages(boolean arg0)
method_33830(boolean arg0)
getTexts(boolean filtered)
m_155724_(boolean arg0)
public ClientboundBlockEntityDataPacket
f()
getUpdatePacket()
method_38249()
toUpdatePacket()
m_58483_()
public CompoundTag
ad_()
getUpdateTag()
method_16887()
toInitialChunkDataNbt()
m_5995_()
public boolean
u()
onlyOpCanSetNbt()
method_11011()
copyItemDataRequiresOperator()
m_6326_()
public boolean
g()
isEditable()
method_11307()
isEditable()
m_59751_()
public void
a(boolean arg0)
setEditable(boolean arg0)
method_11303(boolean arg0)
setEditable(boolean editable)
m_59746_(boolean arg0)
public void
a(UUID arg0)
setAllowedPlayerEditor(UUID arg0)
method_11306(UUID arg0)
setEditor(UUID editor)
m_155713_(UUID arg0)
public UUID
i()
getPlayerWhoMayEdit()
method_11305()
getEditor()
m_155726_()
public boolean
a(bwp arg0)
hasAnyClickCommands(Player arg0)
method_45473(class_1657 arg0)
shouldRunCommand(PlayerEntity player)
m_245422_(C_1141_ arg0)
public boolean
a(ahn arg0)
executeClickCommands(ServerPlayer arg0)
method_11301(class_3222 arg0)
onActivate(ServerPlayerEntity player)
m_155709_(C_13_ arg0)
public CommandSourceStack
b(ahn arg0)
createCommandSourceStack(ServerPlayer arg0)
method_11304(class_3222 arg0)
getCommandSource(ServerPlayerEntity player)
m_59735_(C_13_ arg0)
public DyeColor
j()
getColor()
method_16126()
getTextColor()
m_59753_()
public boolean
a(ccl arg0)
setColor(DyeColor arg0)
method_16127(class_1767 arg0)
setTextColor(DyeColor value)
m_59739_(C_1353_ arg0)
public boolean
t()
hasGlowingText()
method_34271()
isGlowingText()
m_155727_()
public boolean
b(boolean arg0)
setHasGlowingText(boolean arg0)
method_34270(boolean arg0)
setGlowingText(boolean glowingText)
m_155722_(boolean arg0)
private void
w()
markUpdated()
method_34272()
updateListeners()
m_155728_()