Package net.minecraft.block.entity
Class SignBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SignBlockEntity
- Mappings:
Namespace Name official ctn
intermediary net/minecraft/class_2625
named net/minecraft/block/entity/SignBlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
static final int
private static final String[]
private final Text[]
private boolean
private boolean
private static final String[]
private DyeColor
private final Text[]
private @Nullable OrderedText[]
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getTextOnRow
(int row, boolean filtered) private Text[]
getTexts
(boolean filtered) boolean
boolean
boolean
onActivate
(ServerPlayerEntity player) private Text
parseTextFromJson
(String json) void
readNbt
(NbtCompound nbt) void
setEditable
(boolean editable) void
boolean
setGlowingText
(boolean glowingText) boolean
setTextColor
(DyeColor value) void
setTextOnRow
(int row, Text text) void
setTextOnRow
(int row, Text text, Text filteredText) Serializes the state of this block entity that is observable by clients.Implement and return a packet that should be sent to players nearby when the observable state of this block entity changes.private Text
unparsedTextFromJson
(String json) private void
updateSign
(boolean filterText, Function<Text, OrderedText> textOrderingFunction) protected void
writeNbt
(NbtCompound nbt) Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, writeIdToNbt
-
Field Details
-
field_31362
public static final int field_31362- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lctn;a:I
intermediary field_31362
Lnet/minecraft/class_2625;field_31362:I
named field_31362
Lnet/minecraft/block/entity/SignBlockEntity;field_31362:I
-
TEXT_KEYS
- Mappings:
Namespace Name Mixin selector official b
Lctn;b:[Ljava/lang/String;
intermediary field_28905
Lnet/minecraft/class_2625;field_28905:[Ljava/lang/String;
named TEXT_KEYS
Lnet/minecraft/block/entity/SignBlockEntity;TEXT_KEYS:[Ljava/lang/String;
-
FILTERED_TEXT_KEYS
- Mappings:
Namespace Name Mixin selector official c
Lctn;c:[Ljava/lang/String;
intermediary field_28906
Lnet/minecraft/class_2625;field_28906:[Ljava/lang/String;
named FILTERED_TEXT_KEYS
Lnet/minecraft/block/entity/SignBlockEntity;FILTERED_TEXT_KEYS:[Ljava/lang/String;
-
texts
- Mappings:
Namespace Name Mixin selector official d
Lctn;d:[Lrm;
intermediary field_12050
Lnet/minecraft/class_2625;field_12050:[Lnet/minecraft/class_2561;
named texts
Lnet/minecraft/block/entity/SignBlockEntity;texts:[Lnet/minecraft/text/Text;
-
filteredTexts
- Mappings:
Namespace Name Mixin selector official e
Lctn;e:[Lrm;
intermediary field_28907
Lnet/minecraft/class_2625;field_28907:[Lnet/minecraft/class_2561;
named filteredTexts
Lnet/minecraft/block/entity/SignBlockEntity;filteredTexts:[Lnet/minecraft/text/Text;
-
editable
private boolean editable- Mappings:
Namespace Name Mixin selector official f
Lctn;f:Z
intermediary field_12048
Lnet/minecraft/class_2625;field_12048:Z
named editable
Lnet/minecraft/block/entity/SignBlockEntity;editable:Z
-
editor
- Mappings:
Namespace Name Mixin selector official g
Lctn;g:Ljava/util/UUID;
intermediary field_12046
Lnet/minecraft/class_2625;field_12046:Ljava/util/UUID;
named editor
Lnet/minecraft/block/entity/SignBlockEntity;editor:Ljava/util/UUID;
-
textsBeingEdited
- Mappings:
Namespace Name Mixin selector official h
Lctn;h:[Lalc;
intermediary field_12049
Lnet/minecraft/class_2625;field_12049:[Lnet/minecraft/class_5481;
named textsBeingEdited
Lnet/minecraft/block/entity/SignBlockEntity;textsBeingEdited:[Lnet/minecraft/text/OrderedText;
-
filterText
private boolean filterText- Mappings:
Namespace Name Mixin selector official i
Lctn;i:Z
intermediary field_28908
Lnet/minecraft/class_2625;field_28908:Z
named filterText
Lnet/minecraft/block/entity/SignBlockEntity;filterText:Z
-
textColor
- Mappings:
Namespace Name Mixin selector official j
Lctn;j:Lbyt;
intermediary field_16419
Lnet/minecraft/class_2625;field_16419:Lnet/minecraft/class_1767;
named textColor
Lnet/minecraft/block/entity/SignBlockEntity;textColor:Lnet/minecraft/util/DyeColor;
-
glowingText
private boolean glowingText- Mappings:
Namespace Name Mixin selector official k
Lctn;k:Z
intermediary field_29225
Lnet/minecraft/class_2625;field_29225:Z
named glowingText
Lnet/minecraft/block/entity/SignBlockEntity;glowingText:Z
-
-
Constructor Details
-
SignBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lctn;<init>(Lgt;Lcur;)V
intermediary <init>
Lnet/minecraft/class_2625;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named <init>
Lnet/minecraft/block/entity/SignBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
writeNbt
- Overrides:
writeNbt
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lcsl;b(Lpj;)V
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V
named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readNbt
- Overrides:
readNbt
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcsl;a(Lpj;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named readNbt
Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
parseTextFromJson
- Mappings:
Namespace Name Mixin selector official a
Lctn;a(Ljava/lang/String;)Lrm;
intermediary method_33828
Lnet/minecraft/class_2625;method_33828(Ljava/lang/String;)Lnet/minecraft/class_2561;
named parseTextFromJson
Lnet/minecraft/block/entity/SignBlockEntity;parseTextFromJson(Ljava/lang/String;)Lnet/minecraft/text/Text;
-
unparsedTextFromJson
- Mappings:
Namespace Name Mixin selector official b
Lctn;b(Ljava/lang/String;)Lrm;
intermediary method_33384
Lnet/minecraft/class_2625;method_33384(Ljava/lang/String;)Lnet/minecraft/class_2561;
named unparsedTextFromJson
Lnet/minecraft/block/entity/SignBlockEntity;unparsedTextFromJson(Ljava/lang/String;)Lnet/minecraft/text/Text;
-
getTextOnRow
- Mappings:
Namespace Name Mixin selector official a
Lctn;a(IZ)Lrm;
intermediary method_30843
Lnet/minecraft/class_2625;method_30843(IZ)Lnet/minecraft/class_2561;
named getTextOnRow
Lnet/minecraft/block/entity/SignBlockEntity;getTextOnRow(IZ)Lnet/minecraft/text/Text;
-
setTextOnRow
- Mappings:
Namespace Name Mixin selector official a
Lctn;a(ILrm;)V
intermediary method_11299
Lnet/minecraft/class_2625;method_11299(ILnet/minecraft/class_2561;)V
named setTextOnRow
Lnet/minecraft/block/entity/SignBlockEntity;setTextOnRow(ILnet/minecraft/text/Text;)V
-
setTextOnRow
- Mappings:
Namespace Name Mixin selector official a
Lctn;a(ILrm;Lrm;)V
intermediary method_33827
Lnet/minecraft/class_2625;method_33827(ILnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
named setTextOnRow
Lnet/minecraft/block/entity/SignBlockEntity;setTextOnRow(ILnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
-
updateSign
public OrderedText[] updateSign(boolean filterText, Function<Text, OrderedText> textOrderingFunction) - Mappings:
Namespace Name Mixin selector official a
Lctn;a(ZLjava/util/function/Function;)[Lalc;
intermediary method_33829
Lnet/minecraft/class_2625;method_33829(ZLjava/util/function/Function;)[Lnet/minecraft/class_5481;
named updateSign
Lnet/minecraft/block/entity/SignBlockEntity;updateSign(ZLjava/util/function/Function;)[Lnet/minecraft/text/OrderedText;
-
getTexts
- Mappings:
Namespace Name Mixin selector official c
Lctn;c(Z)[Lrm;
intermediary method_33830
Lnet/minecraft/class_2625;method_33830(Z)[Lnet/minecraft/class_2561;
named getTexts
Lnet/minecraft/block/entity/SignBlockEntity;getTexts(Z)[Lnet/minecraft/text/Text;
-
toUpdatePacket
Description copied from class:BlockEntity
Implement and return a packet that should be sent to players nearby when the observable state of this block entity changes. Return null to not send an update packet.If the data returned by
initial chunk data
is suitable for updates, the following shortcut can be used to create an update packet:BlockEntityUpdateS2CPacket.create(this)
.The NBT will be passed to
BlockEntity.readNbt(net.minecraft.nbt.NbtCompound)
on the client.- Overrides:
toUpdatePacket
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official c
Lctn;c()Lsz;
intermediary method_38249
Lnet/minecraft/class_2625;method_38249()Lnet/minecraft/class_2622;
named toUpdatePacket
Lnet/minecraft/block/entity/SignBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
toInitialChunkDataNbt
Serializes the state of this block entity that is observable by clients. It is sent alongside the initial chunk data, as well as when the block entity implementsBlockEntity.toUpdatePacket()
and decides to use the defaultBlockEntityUpdateS2CPacket
.- Overrides:
toInitialChunkDataNbt
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official ab_
Lcsl;ab_()Lpj;
intermediary method_16887
Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;
named toInitialChunkDataNbt
Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt()Lnet/minecraft/nbt/NbtCompound;
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()- Overrides:
copyItemDataRequiresOperator
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official u
Lcsl;u()Z
intermediary method_11011
Lnet/minecraft/class_2586;method_11011()Z
named copyItemDataRequiresOperator
Lnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
-
isEditable
public boolean isEditable()- Mappings:
Namespace Name Mixin selector official d
Lctn;d()Z
intermediary method_11307
Lnet/minecraft/class_2625;method_11307()Z
named isEditable
Lnet/minecraft/block/entity/SignBlockEntity;isEditable()Z
-
setEditable
public void setEditable(boolean editable) - Mappings:
Namespace Name Mixin selector official a
Lctn;a(Z)V
intermediary method_11303
Lnet/minecraft/class_2625;method_11303(Z)V
named setEditable
Lnet/minecraft/block/entity/SignBlockEntity;setEditable(Z)V
-
setEditor
- Mappings:
Namespace Name Mixin selector official a
Lctn;a(Ljava/util/UUID;)V
intermediary method_11306
Lnet/minecraft/class_2625;method_11306(Ljava/util/UUID;)V
named setEditor
Lnet/minecraft/block/entity/SignBlockEntity;setEditor(Ljava/util/UUID;)V
-
getEditor
- Mappings:
Namespace Name Mixin selector official f
Lctn;f()Ljava/util/UUID;
intermediary method_11305
Lnet/minecraft/class_2625;method_11305()Ljava/util/UUID;
named getEditor
Lnet/minecraft/block/entity/SignBlockEntity;getEditor()Ljava/util/UUID;
-
onActivate
- Mappings:
Namespace Name Mixin selector official a
Lctn;a(Lafp;)Z
intermediary method_11301
Lnet/minecraft/class_2625;method_11301(Lnet/minecraft/class_3222;)Z
named onActivate
Lnet/minecraft/block/entity/SignBlockEntity;onActivate(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
-
getCommandSource
- Mappings:
Namespace Name Mixin selector official b
Lctn;b(Lafp;)Ldr;
intermediary method_11304
Lnet/minecraft/class_2625;method_11304(Lnet/minecraft/class_3222;)Lnet/minecraft/class_2168;
named getCommandSource
Lnet/minecraft/block/entity/SignBlockEntity;getCommandSource(Lnet/minecraft/server/network/ServerPlayerEntity;)Lnet/minecraft/server/command/ServerCommandSource;
-
getTextColor
- Mappings:
Namespace Name Mixin selector official g
Lctn;g()Lbyt;
intermediary method_16126
Lnet/minecraft/class_2625;method_16126()Lnet/minecraft/class_1767;
named getTextColor
Lnet/minecraft/block/entity/SignBlockEntity;getTextColor()Lnet/minecraft/util/DyeColor;
-
setTextColor
- Mappings:
Namespace Name Mixin selector official a
Lctn;a(Lbyt;)Z
intermediary method_16127
Lnet/minecraft/class_2625;method_16127(Lnet/minecraft/class_1767;)Z
named setTextColor
Lnet/minecraft/block/entity/SignBlockEntity;setTextColor(Lnet/minecraft/util/DyeColor;)Z
-
isGlowingText
public boolean isGlowingText()- Mappings:
Namespace Name Mixin selector official i
Lctn;i()Z
intermediary method_34271
Lnet/minecraft/class_2625;method_34271()Z
named isGlowingText
Lnet/minecraft/block/entity/SignBlockEntity;isGlowingText()Z
-
setGlowingText
public boolean setGlowingText(boolean glowingText) - Mappings:
Namespace Name Mixin selector official b
Lctn;b(Z)Z
intermediary method_34270
Lnet/minecraft/class_2625;method_34270(Z)Z
named setGlowingText
Lnet/minecraft/block/entity/SignBlockEntity;setGlowingText(Z)Z
-
updateListeners
private void updateListeners()- Mappings:
Namespace Name Mixin selector official j
Lctn;j()V
intermediary method_34272
Lnet/minecraft/class_2625;method_34272()V
named updateListeners
Lnet/minecraft/block/entity/SignBlockEntity;updateListeners()V
-