Package net.minecraft.block.entity
Class SignBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SignBlockEntity
public class SignBlockEntity extends BlockEntity
-
Field Summary
Fields Modifier and Type Field Description private booleaneditableprivate PlayerEntityeditorprivate Text[]textprivate OrderedText[]textBeingEditedprivate DyeColortextColorFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors Constructor Description SignBlockEntity(BlockPos blockPos, BlockState blockState) -
Method Summary
Modifier and Type Method Description booleancopyItemDataRequiresOperator()voidfromTag(CompoundTag tag)ServerCommandSourcegetCommandSource(ServerPlayerEntity player)PlayerEntitygetEditor()OrderedTextgetTextBeingEditedOnRow(int row, Function<Text,OrderedText> function)DyeColorgetTextColor()TextgetTextOnRow(int row)booleanisEditable()booleanonActivate(PlayerEntity player)voidsetEditable(boolean bool)voidsetEditor(PlayerEntity player)booleansetTextColor(DyeColor value)voidsetTextOnRow(int row, Text text)CompoundTagtoInitialChunkDataTag()CompoundTagtoTag(CompoundTag tag)BlockEntityUpdateS2CPackettoUpdatePacket()Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld
-
Field Details
-
text
-
editable
private boolean editable -
editor
-
textBeingEdited
-
textColor
-
-
Constructor Details
-
SignBlockEntity
-
-
Method Details
-
toTag
- Overrides:
toTagin classBlockEntity
-
fromTag
- Overrides:
fromTagin classBlockEntity
-
getTextOnRow
-
setTextOnRow
-
getTextBeingEditedOnRow
@Environment(CLIENT) @Nullable public OrderedText getTextBeingEditedOnRow(int row, Function<Text,OrderedText> function) -
toUpdatePacket
- Overrides:
toUpdatePacketin classBlockEntity
-
toInitialChunkDataTag
- Overrides:
toInitialChunkDataTagin classBlockEntity
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()- Overrides:
copyItemDataRequiresOperatorin classBlockEntity
-
isEditable
public boolean isEditable() -
setEditable
@Environment(CLIENT) public void setEditable(boolean bool) -
setEditor
-
getEditor
-
onActivate
-
getCommandSource
-
getTextColor
-
setTextColor
-