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
-
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 final Component[]
private UUID
private static final String[]
private boolean
private FormattedCharSequence[]
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
-
Method Summary
Modifier and TypeMethodDescriptioncreateCommandSourceStack
(ServerPlayer p_59736_) private Component
deserializeTextSafe
(String p_155721_) boolean
executeClickCommands
(ServerPlayer p_155710_) getColor()
getMessage
(int p_155707_, boolean p_155708_) private Component[]
getMessages
(boolean p_155725_) getRenderMessages
(boolean p_155718_, Function<Component, FormattedCharSequence> p_155719_) 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:
-
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
-
-
Method Details
-
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
-
executeClickCommands
-
createCommandSourceStack
-
getColor
-
setColor
-
hasGlowingText
public boolean hasGlowingText() -
setHasGlowingText
public boolean setHasGlowingText(boolean p_155723_) -
markUpdated
private void markUpdated()
-