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
- Mappings:
Namespace Name official cgr
intermediary net/minecraft/class_2625
named net/minecraft/block/entity/SignBlockEntity
-
Field Summary
Fields Modifier and Type Field Description private boolean
editable
private PlayerEntity
editor
private Text[]
text
private OrderedText[]
textBeingEdited
private DyeColor
textColor
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
Constructors Constructor Description SignBlockEntity(BlockPos pos, BlockState state)
-
Method Summary
Modifier and Type Method Description boolean
copyItemDataRequiresOperator()
void
fromTag(CompoundTag tag)
ServerCommandSource
getCommandSource(ServerPlayerEntity player)
PlayerEntity
getEditor()
OrderedText
getTextBeingEditedOnRow(int row, Function<Text,OrderedText> function)
DyeColor
getTextColor()
Text
getTextOnRow(int row)
boolean
isEditable()
private Text
method_33384(String string)
boolean
onActivate(PlayerEntity player)
void
setEditable(boolean editable)
void
setEditor(PlayerEntity player)
boolean
setTextColor(DyeColor value)
void
setTextOnRow(int row, Text text)
CompoundTag
toInitialChunkDataTag()
CompoundTag
toTag(CompoundTag tag)
BlockEntityUpdateS2CPacket
toUpdatePacket()
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
- Mappings:
Namespace Name Mixin selector official a
Lcgr;a:[Loi;
intermediary field_12050
Lnet/minecraft/class_2625;field_12050:[Lnet/minecraft/class_2561;
named text
Lnet/minecraft/block/entity/SignBlockEntity;text:[Lnet/minecraft/text/Text;
-
editable
private boolean editable- Mappings:
Namespace Name Mixin selector official b
Lcgr;b: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 c
Lcgr;c:Lbhl;
intermediary field_12046
Lnet/minecraft/class_2625;field_12046:Lnet/minecraft/class_1657;
named editor
Lnet/minecraft/block/entity/SignBlockEntity;editor:Lnet/minecraft/entity/player/PlayerEntity;
-
textBeingEdited
- Mappings:
Namespace Name Mixin selector official g
Lcgr;g:[Lafs;
intermediary field_12049
Lnet/minecraft/class_2625;field_12049:[Lnet/minecraft/class_5481;
named textBeingEdited
Lnet/minecraft/block/entity/SignBlockEntity;textBeingEdited:[Lnet/minecraft/text/OrderedText;
-
textColor
- Mappings:
Namespace Name Mixin selector official h
Lcgr;h:Lbms;
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;
-
-
Constructor Details
-
SignBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lcgr;<init>(Lfx;Lcht;)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
-
toTag
- Overrides:
toTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lcfr;b(Lmq;)Lmq;
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named toTag
Lnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
fromTag
- Overrides:
fromTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a(Lmq;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named fromTag
Lnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
method_33384
- Mappings:
Namespace Name Mixin selector official a
Lcgr;a(Ljava/lang/String;)Loi;
intermediary method_33384
Lnet/minecraft/class_2625;method_33384(Ljava/lang/String;)Lnet/minecraft/class_2561;
named method_33384
Lnet/minecraft/block/entity/SignBlockEntity;method_33384(Ljava/lang/String;)Lnet/minecraft/text/Text;
-
getTextOnRow
- Mappings:
Namespace Name Mixin selector official a
Lcgr;a(I)Loi;
intermediary method_30843
Lnet/minecraft/class_2625;method_30843(I)Lnet/minecraft/class_2561;
named getTextOnRow
Lnet/minecraft/block/entity/SignBlockEntity;getTextOnRow(I)Lnet/minecraft/text/Text;
-
setTextOnRow
- Mappings:
Namespace Name Mixin selector official a
Lcgr;a(ILoi;)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
-
getTextBeingEditedOnRow
@Environment(CLIENT) @Nullable public OrderedText getTextBeingEditedOnRow(int row, Function<Text,OrderedText> function)- Mappings:
Namespace Name Mixin selector official a
Lcgr;a(ILjava/util/function/Function;)Lafs;
intermediary method_11300
Lnet/minecraft/class_2625;method_11300(ILjava/util/function/Function;)Lnet/minecraft/class_5481;
named getTextBeingEditedOnRow
Lnet/minecraft/block/entity/SignBlockEntity;getTextBeingEditedOnRow(ILjava/util/function/Function;)Lnet/minecraft/text/OrderedText;
-
toUpdatePacket
- Overrides:
toUpdatePacket
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a()Lpo;
intermediary method_16886
Lnet/minecraft/class_2586;method_16886()Lnet/minecraft/class_2622;
named toUpdatePacket
Lnet/minecraft/block/entity/BlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
toInitialChunkDataTag
- Overrides:
toInitialChunkDataTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lcfr;b()Lmq;
intermediary method_16887
Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;
named toInitialChunkDataTag
Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataTag()Lnet/minecraft/nbt/CompoundTag;
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()- Overrides:
copyItemDataRequiresOperator
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official r
Lcfr;r()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
Lcgr;d()Z
intermediary method_11307
Lnet/minecraft/class_2625;method_11307()Z
named isEditable
Lnet/minecraft/block/entity/SignBlockEntity;isEditable()Z
-
setEditable
- Mappings:
Namespace Name Mixin selector official a
Lcgr;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
Lcgr;a(Lbhl;)V
intermediary method_11306
Lnet/minecraft/class_2625;method_11306(Lnet/minecraft/class_1657;)V
named setEditor
Lnet/minecraft/block/entity/SignBlockEntity;setEditor(Lnet/minecraft/entity/player/PlayerEntity;)V
-
getEditor
- Mappings:
Namespace Name Mixin selector official f
Lcgr;f()Lbhl;
intermediary method_11305
Lnet/minecraft/class_2625;method_11305()Lnet/minecraft/class_1657;
named getEditor
Lnet/minecraft/block/entity/SignBlockEntity;getEditor()Lnet/minecraft/entity/player/PlayerEntity;
-
onActivate
- Mappings:
Namespace Name Mixin selector official b
Lcgr;b(Lbhl;)Z
intermediary method_11301
Lnet/minecraft/class_2625;method_11301(Lnet/minecraft/class_1657;)Z
named onActivate
Lnet/minecraft/block/entity/SignBlockEntity;onActivate(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
getCommandSource
- Mappings:
Namespace Name Mixin selector official a
Lcgr;a(Laaw;)Ldb;
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 h
Lcgr;h()Lbms;
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
Lcgr;a(Lbms;)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
-