Class SignBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.SignBlockEntity
- All Implemented Interfaces:
- ICapabilityProvider,- ICapabilityProviderImpl<BlockEntity>,- ICapabilitySerializable<CompoundTag>,- IForgeBlockEntity,- INBTSerializable<CompoundTag>
- Direct Known Subclasses:
- CustomSignsTest.CustomSignBlockEntity,- HangingSignBlockEntity
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate DyeColorprivate static final String[]private final Component[]private booleanprivate booleanstatic final intprivate static final intprivate final Component[]private UUIDprivate static final String[]private booleanprivate FormattedCharSequence[]private static final intFields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABB
- 
Constructor SummaryConstructorsConstructorDescriptionSignBlockEntity(BlockPos p_155700_, BlockState p_155701_) SignBlockEntity(BlockEntityType p_249609_, BlockPos p_248914_, BlockState p_249550_) 
- 
Method SummaryModifier and TypeMethodDescriptioncreateCommandSourceStack(ServerPlayer p_59736_) private ComponentdeserializeTextSafe(String p_155721_) booleanexecuteClickCommands(ServerPlayer p_155710_) getColor()intgetMessage(int p_155707_, boolean p_155708_) private Component[]getMessages(boolean p_155725_) getRenderMessages(boolean p_155718_, Function<Component, FormattedCharSequence> p_155719_) intbooleanhasAnyClickCommands(Player p_250783_) booleanbooleanvoidload(CompoundTag p_155716_) private Componentprivate voidbooleanprotected voidsaveAdditional(CompoundTag p_187515_) voidsetAllowedPlayerEditor(UUID p_155714_) booleanvoidsetEditable(boolean p_59747_) booleansetHasGlowingText(boolean p_155723_) voidsetMessage(int p_59733_, Component p_59734_) voidsetMessage(int p_155703_, Component p_155704_, Component p_155705_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntitydeserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
- 
Field Details- 
LINESpublic static final int LINES- See Also:
 
- 
MAX_TEXT_LINE_WIDTHprivate static final int MAX_TEXT_LINE_WIDTH- See Also:
 
- 
TEXT_LINE_HEIGHTprivate static final int TEXT_LINE_HEIGHT- See Also:
 
- 
RAW_TEXT_FIELD_NAMES
- 
FILTERED_TEXT_FIELD_NAMES
- 
messages
- 
filteredMessages
- 
isEditableprivate boolean isEditable
- 
playerWhoMayEdit
- 
renderMessages
- 
renderMessagedFilteredprivate boolean renderMessagedFiltered
- 
color
- 
hasGlowingTextprivate boolean hasGlowingText
 
- 
- 
Constructor Details- 
SignBlockEntity
- 
SignBlockEntity
 
- 
- 
Method Details- 
getTextLineHeightpublic int getTextLineHeight()
- 
getMaxTextLineWidthpublic int getMaxTextLineWidth()
- 
saveAdditional- Overrides:
- saveAdditionalin class- BlockEntity
 
- 
load- Overrides:
- loadin class- BlockEntity
 
- 
loadLine
- 
deserializeTextSafe
- 
getMessage
- 
setMessage
- 
setMessage
- 
getRenderMessagespublic FormattedCharSequence[] getRenderMessages(boolean p_155718_, Function<Component, FormattedCharSequence> p_155719_) 
- 
getMessages
- 
getUpdatePacket- Overrides:
- getUpdatePacketin class- BlockEntity
 
- 
getUpdateTag- Overrides:
- getUpdateTagin class- BlockEntity
 
- 
onlyOpCanSetNbtpublic boolean onlyOpCanSetNbt()- Overrides:
- onlyOpCanSetNbtin class- BlockEntity
 
- 
isEditablepublic boolean isEditable()
- 
setEditablepublic void setEditable(boolean p_59747_) 
- 
setAllowedPlayerEditor
- 
getPlayerWhoMayEdit
- 
hasAnyClickCommands
- 
executeClickCommands
- 
createCommandSourceStack
- 
getColor
- 
setColor
- 
hasGlowingTextpublic boolean hasGlowingText()
- 
setHasGlowingTextpublic boolean setHasGlowingText(boolean p_155723_) 
- 
markUpdatedprivate void markUpdated()
 
-