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:
HangingSignBlockEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate DyeColor
private static final String[]
private final Component[]
private boolean
private boolean
static final int
private static final int
private final Component[]
private UUID
private static final String[]
private boolean
private FormattedCharSequence[]
private static final int
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
ConstructorDescriptionSignBlockEntity
(BlockPos p_155700_, BlockState p_155701_) SignBlockEntity
(BlockEntityType p_249609_, BlockPos p_248914_, BlockState p_249550_) -
Method Summary
Modifier and TypeMethodDescriptioncreateCommandSourceStack
(ServerPlayer p_59736_) private Component
deserializeTextSafe
(String p_155721_) boolean
executeClickCommands
(ServerPlayer p_155710_) getColor()
int
getMessage
(int p_155707_, boolean p_155708_) private Component[]
getMessages
(boolean p_155725_) getRenderMessages
(boolean p_155718_, Function<Component, FormattedCharSequence> p_155719_) int
boolean
hasAnyClickCommands
(Player p_250783_) boolean
boolean
void
load
(CompoundTag p_155716_) private Component
private void
boolean
protected void
saveAdditional
(CompoundTag p_187515_) void
setAllowedPlayerEditor
(UUID p_155714_) boolean
void
setEditable
(boolean p_59747_) boolean
setHasGlowingText
(boolean p_155723_) void
setMessage
(int p_59733_, Component p_59734_) void
setMessage
(int p_155703_, Component p_155704_, Component p_155705_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
LINES
public static final int LINES- See Also:
-
MAX_TEXT_LINE_WIDTH
private static final int MAX_TEXT_LINE_WIDTH- See Also:
-
TEXT_LINE_HEIGHT
private static final int TEXT_LINE_HEIGHT- See Also:
-
RAW_TEXT_FIELD_NAMES
-
FILTERED_TEXT_FIELD_NAMES
-
messages
-
filteredMessages
-
isEditable
private boolean isEditable -
playerWhoMayEdit
-
renderMessages
-
renderMessagedFiltered
private boolean renderMessagedFiltered -
color
-
hasGlowingText
private boolean hasGlowingText
-
-
Constructor Details
-
SignBlockEntity
-
SignBlockEntity
-
-
Method Details
-
getTextLineHeight
public int getTextLineHeight() -
getMaxTextLineWidth
public int getMaxTextLineWidth() -
saveAdditional
- Overrides:
saveAdditional
in classBlockEntity
-
load
- Overrides:
load
in classBlockEntity
-
loadLine
-
deserializeTextSafe
-
getMessage
-
setMessage
-
setMessage
-
getRenderMessages
public FormattedCharSequence[] getRenderMessages(boolean p_155718_, Function<Component, FormattedCharSequence> p_155719_) -
getMessages
-
getUpdatePacket
- Overrides:
getUpdatePacket
in classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTag
in classBlockEntity
-
onlyOpCanSetNbt
public boolean onlyOpCanSetNbt()- Overrides:
onlyOpCanSetNbt
in classBlockEntity
-
isEditable
public boolean isEditable() -
setEditable
public void setEditable(boolean p_59747_) -
setAllowedPlayerEditor
-
getPlayerWhoMayEdit
-
hasAnyClickCommands
-
executeClickCommands
-
createCommandSourceStack
-
getColor
-
setColor
-
hasGlowingText
public boolean hasGlowingText() -
setHasGlowingText
public boolean setHasGlowingText(boolean p_155723_) -
markUpdated
private void markUpdated()
-