net.minecraft.world.level.block.entity

public class SignBlockEntity

extends BlockEntity

dqt
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
private static final org.slf4j.Logger
a
LOGGER
field_43294
LOGGER
f_276608_
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 UUID
d
playerWhoMayEdit
field_12046
editor
f_59722_
private SignText
e
frontText
field_43295
frontText
f_276598_
private SignText
f
backText
field_43296
backText
f_276476_
private boolean
g
isWaxed
field_43297
waxed
f_276544_

Constructor summary

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

Method summary

Modifier and TypeMethod
protected SignText
f()
createDefaultSignText()
method_49852()
createText()
m_277006_()
public boolean
a(cmz arg0)
isFacingFrontText(Player arg0)
method_49834(class_1657 arg0)
isPlayerFacingFront(PlayerEntity player)
m_277202_(C_1141_ arg0)
public SignText
a(boolean arg0)
getText(boolean arg0)
method_49843(boolean arg0)
getText(boolean front)
m_277157_(boolean arg0)
public SignText
j()
getFrontText()
method_49853()
getFrontText()
m_277142_()
public SignText
k()
getBackText()
method_49854()
getBackText()
m_277159_()
public int
b()
getTextLineHeight()
method_45469()
getTextLineHeight()
m_245065_()
public int
c()
getMaxTextLineWidth()
method_45470()
getMaxTextWidth()
m_245123_()
protected void
b(us arg0, jk$a arg1)
saveAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11007(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
m_183515_(C_4917_ p_331864_, C_213466_$C_254607_ arg1)
protected void
a(us arg0, jk$a arg1)
loadAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11014(class_2487 arg0, class_7225$class_7874 arg1)
readNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
m_318667_(C_4917_ p_336389_, C_213466_$C_254607_ arg1)
private SignText
a(dqu arg0)
loadLines(SignText arg0)
method_50008(class_8242 arg0)
parseLines(SignText signText)
m_278182_(C_276381_ arg0)
private Component
a(xp arg0)
loadLine(Component arg0)
method_50009(class_2561 arg0)
parseLine(Text text)
m_278165_(C_4996_ arg0)
public void
a(cmz arg0, boolean arg1, List<arx> arg2)
updateSignText(Player arg0, boolean arg1, List<FilteredText> arg2)
method_49836(class_1657 arg0, boolean arg1, List<class_5837> arg2)
tryChangeText(PlayerEntity player, boolean front, List<FilteredMessage> messages)
m_277134_(C_1141_ p_278103_, boolean p_277990_, List<C_212939_> arg2)
public boolean
a(UnaryOperator<dqu> arg0, boolean arg1)
updateText(UnaryOperator<SignText> arg0, boolean arg1)
method_49841(UnaryOperator<class_8242> arg0, boolean arg1)
changeText(UnaryOperator<SignText> textChanger, boolean front)
m_277073_(UnaryOperator<C_276381_> p_277426_, boolean arg1)
private SignText
a(cmz arg0, List<arx> arg1, dqu arg2)
setMessages(Player arg0, List<FilteredText> arg1, SignText arg2)
method_49835(class_1657 arg0, List<class_5837> arg1, class_8242 arg2)
getTextWithMessages(PlayerEntity player, List<FilteredMessage> messages, SignText text)
m_276929_(C_1141_ p_277744_, List<C_212939_> p_277359_, C_276381_ arg2)
public boolean
a(dqu arg0, boolean arg1)
setText(SignText arg0, boolean arg1)
method_49840(class_8242 arg0, boolean arg1)
setText(SignText text, boolean front)
m_276956_(C_276381_ p_277720_, boolean arg1)
private boolean
b(dqu arg0)
setBackText(SignText arg0)
method_49839(class_8242 arg0)
setBackText(SignText backText)
m_277170_(C_276381_ arg0)
private boolean
c(dqu arg0)
setFrontText(SignText arg0)
method_49846(class_8242 arg0)
setFrontText(SignText frontText)
m_276964_(C_276381_ arg0)
public boolean
a(boolean arg0, cmz arg1)
canExecuteClickCommands(boolean arg0, Player arg1)
method_50010(boolean arg0, class_1657 arg1)
canRunCommandClickEvent(boolean front, PlayerEntity player)
m_278157_(boolean p_278240_, C_1141_ arg1)
public boolean
a(cmz arg0, dca arg1, iz arg2, boolean arg3)
executeClickCommandsIfPresent(Player arg0, Level arg1, BlockPos arg2, boolean arg3)
method_50007(class_1657 arg0, class_1937 arg1, class_2338 arg2, boolean arg3)
runCommandClickEvent(PlayerEntity player, World world, BlockPos pos, boolean front)
m_278155_(C_1141_ p_279201_, C_1596_ p_278282_, C_4675_ p_278254_, boolean arg3)
private static CommandSourceStack
a(cmz arg0, dca arg1, iz arg2)
createCommandSourceStack(Player arg0, Level arg1, BlockPos arg2)
method_50006(class_1657 arg0, class_1937 arg1, class_2338 arg2)
createCommandSource(PlayerEntity player, World world, BlockPos pos)
m_278808_(C_1141_ p_279428_, C_1596_ p_279359_, C_4675_ p_279430_)
public ClientboundBlockEntityDataPacket
l()
getUpdatePacket()
method_38249()
toUpdatePacket()
m_58483_()
public CompoundTag
a(jk$a arg0)
getUpdateTag(HolderLookup$Provider arg0)
method_16887(class_7225$class_7874 arg0)
toInitialChunkDataNbt(RegistryWrapper$WrapperLookup arg0)
m_5995_(C_213466_$C_254607_ arg0)
public boolean
q()
onlyOpCanSetNbt()
method_11011()
copyItemDataRequiresOperator()
m_6326_()
public void
a(UUID arg0)
setAllowedPlayerEditor(UUID arg0)
method_11306(UUID arg0)
setEditor(UUID editor)
m_155713_(UUID arg0)
public UUID
u()
getPlayerWhoMayEdit()
method_11305()
getEditor()
m_155726_()
private void
w()
markUpdated()
method_34272()
updateListeners()
m_155728_()
public boolean
v()
isWaxed()
method_49855()
isWaxed()
m_277118_()
public boolean
b(boolean arg0)
setWaxed(boolean arg0)
method_49849(boolean arg0)
setWaxed(boolean waxed)
m_277031_(boolean arg0)
public boolean
b(UUID arg0)
playerIsTooFarAwayToEdit(UUID arg0)
method_49847(UUID arg0)
isPlayerTooFarToEdit(UUID uuid)
m_276813_(UUID arg0)
public static void
a(dca arg0, iz arg1, dse arg2, dqt arg3)
tick(Level arg0, BlockPos arg1, BlockState arg2, SignBlockEntity arg3)
method_49837(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2625 arg3)
tick(World world, BlockPos pos, BlockState state, SignBlockEntity blockEntity)
m_276836_(C_1596_ p_277662_, C_4675_ p_278050_, C_2064_ p_277927_, C_2024_ p_277928_)
private void
a(dqt arg0, dca arg1, UUID arg2)
clearInvalidPlayerWhoMayEdit(SignBlockEntity arg0, Level arg1, UUID arg2)
method_49838(class_2625 arg0, class_1937 arg1, UUID arg2)
tryClearInvalidEditor(SignBlockEntity blockEntity, World world, UUID uuid)
m_276965_(C_2024_ p_277853_, C_1596_ p_277849_, UUID arg2)
public SoundEvent
d()
getSignInteractionFailedSoundEvent()
method_54303()
getInteractionFailSound()
m_307050_()