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
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
- Direct Known Subclasses:
CustomSignsTest.CustomSignBlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate DyeColor
private static String[]
private Component[]
private boolean
private boolean
static int
private Component[]
private UUID
private static 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
save(CompoundTag p_59745_)
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
clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, 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, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
LINES
public static final int LINES- See Also:
- Constant Field Values
-
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
-
save
- Overrides:
save
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()
-