Class SignBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.SignBlockEntity
- All Implemented Interfaces:
- IAttachmentHolder,- IBlockEntityExtension,- INBTSerializable<CompoundTag>
- Direct Known Subclasses:
- CustomSignsTest.CustomSignBlockEntity,- HangingSignBlockEntity
- 
Nested Class SummaryNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolderAttachmentHolder.AsField
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate SignTextprivate SignTextprivate booleanprivate static final org.slf4j.Loggerprivate static final intprivate UUIDprivate static final intFields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolderATTACHMENTS_NBT_KEY
- 
Constructor SummaryConstructorsConstructorDescriptionSignBlockEntity(BlockPos p_155700_, BlockState p_155701_) SignBlockEntity(BlockEntityType p_249609_, BlockPos p_248914_, BlockState p_249550_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanExecuteClickCommands(boolean p_278276_, Player p_278240_) private voidclearInvalidPlayerWhoMayEdit(SignBlockEntity p_277656_, Level p_277853_, UUID p_277849_) private static CommandSourceStackcreateCommandSourceStack(Player p_279428_, Level p_279359_, BlockPos p_279430_) protected SignTextbooleanexecuteClickCommandsIfPresent(Player p_279304_, Level p_279201_, BlockPos p_278282_, boolean p_278254_) intgetText(boolean p_277918_) intbooleanisFacingFrontText(Player p_277382_) booleanisWaxed()voidload(CompoundTag p_155716_) private Componentprivate SignTextprivate voidbooleanbooleanplayerIsTooFarAwayToEdit(UUID p_277978_) protected voidsaveAdditional(CompoundTag p_187515_) voidsetAllowedPlayerEditor(UUID p_155714_) private booleansetBackText(SignText p_277777_) private booleansetFrontText(SignText p_278038_) private SignTextsetMessages(Player p_277396_, List<FilteredText> p_277744_, SignText p_277359_) booleanbooleansetWaxed(boolean p_277344_) static voidtick(Level p_277662_, BlockPos p_278050_, BlockState p_277927_, SignBlockEntity p_277928_) voidupdateSignText(Player p_278048_, boolean p_278103_, List<FilteredText> p_277990_) booleanupdateText(UnaryOperator<SignText> p_277877_, boolean p_277426_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, removeData, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setData, setLevel, setRemoved, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolderareAttachmentsCompatible, deserializeAttachments, getData, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHoldergetData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtensiondeserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
MAX_TEXT_LINE_WIDTHprivate static final int MAX_TEXT_LINE_WIDTH- See Also:
 
- 
TEXT_LINE_HEIGHTprivate static final int TEXT_LINE_HEIGHT- See Also:
 
- 
playerWhoMayEdit
- 
frontText
- 
backText
- 
isWaxedprivate boolean isWaxed
 
- 
- 
Constructor Details- 
SignBlockEntity
- 
SignBlockEntity
 
- 
- 
Method Details- 
createDefaultSignText
- 
isFacingFrontText
- 
getText
- 
getFrontText
- 
getBackText
- 
getTextLineHeightpublic int getTextLineHeight()
- 
getMaxTextLineWidthpublic int getMaxTextLineWidth()
- 
saveAdditional- Overrides:
- saveAdditionalin class- BlockEntity
 
- 
load- Overrides:
- loadin class- BlockEntity
 
- 
loadLines
- 
loadLine
- 
updateSignText
- 
updateText
- 
setMessages
- 
setText
- 
setBackText
- 
setFrontText
- 
canExecuteClickCommands
- 
executeClickCommandsIfPresent
- 
createCommandSourceStackprivate static CommandSourceStack createCommandSourceStack(@Nullable Player p_279428_, Level p_279359_, BlockPos p_279430_) 
- 
getUpdatePacket- Overrides:
- getUpdatePacketin class- BlockEntity
 
- 
getUpdateTag- Overrides:
- getUpdateTagin class- BlockEntity
 
- 
onlyOpCanSetNbtpublic boolean onlyOpCanSetNbt()- Overrides:
- onlyOpCanSetNbtin class- BlockEntity
 
- 
setAllowedPlayerEditor
- 
getPlayerWhoMayEdit
- 
markUpdatedprivate void markUpdated()
- 
isWaxedpublic boolean isWaxed()
- 
setWaxedpublic boolean setWaxed(boolean p_277344_) 
- 
playerIsTooFarAwayToEdit
- 
tickpublic static void tick(Level p_277662_, BlockPos p_278050_, BlockState p_277927_, SignBlockEntity p_277928_) 
- 
clearInvalidPlayerWhoMayEditprivate void clearInvalidPlayerWhoMayEdit(SignBlockEntity p_277656_, Level p_277853_, UUID p_277849_) 
- 
getSignInteractionFailedSoundEvent
 
-