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 DyeColortextColorprivate Text[]textsprivate OrderedText[]textsBeingEditedFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors Constructor Description SignBlockEntity() -
Method Summary
Modifier and Type Method Description booleancopyItemDataRequiresOperator()voidfromTag(BlockState state, NbtCompound tag)ServerCommandSourcegetCommandSource(ServerPlayerEntity player)PlayerEntitygetEditor()OrderedTextgetTextBeingEditedOnRow(int row, Function<Text,OrderedText> function)DyeColorgetTextColor()TextgetTextOnRow(int row)booleanisEditable()booleanonActivate(PlayerEntity player)voidsetEditable(boolean editable)voidsetEditor(PlayerEntity player)booleansetTextColor(DyeColor value)voidsetTextOnRow(int row, Text text)NbtCompoundtoInitialChunkDataNbt()BlockEntityUpdateS2CPackettoUpdatePacket()NbtCompoundwriteNbt(NbtCompound nbt)Methods inherited from class net.minecraft.block.entity.BlockEntity
applyMirror, applyRotation, cancelRemoval, createFromTag, getCachedState, getPos, getRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, onSyncedBlockEvent, populateCrashReport, resetBlock, setLocation, setPos
-
Field Details
-
texts
-
editable
private boolean editable -
editor
-
textsBeingEdited
-
textColor
-
-
Constructor Details
-
SignBlockEntity
public SignBlockEntity()
-
-
Method Details
-
writeNbt
- Overrides:
writeNbtin classBlockEntity
-
fromTag
- Overrides:
fromTagin classBlockEntity
-
getTextOnRow
-
setTextOnRow
-
getTextBeingEditedOnRow
@Environment(CLIENT) @Nullable public OrderedText getTextBeingEditedOnRow(int row, Function<Text,OrderedText> function) -
toUpdatePacket
- Overrides:
toUpdatePacketin classBlockEntity
-
toInitialChunkDataNbt
- Overrides:
toInitialChunkDataNbtin classBlockEntity
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()- Overrides:
copyItemDataRequiresOperatorin classBlockEntity
-
isEditable
public boolean isEditable() -
setEditable
@Environment(CLIENT) public void setEditable(boolean editable) -
setEditor
-
getEditor
-
onActivate
-
getCommandSource
-
getTextColor
-
setTextColor
-