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 Details

    • text

      private final Text[] 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

      private PlayerEntity 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

      private final OrderedText[] 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

      private DyeColor 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

      public SignBlockEntity​(BlockPos pos, BlockState state)
      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

      public CompoundTag toTag​(CompoundTag tag)
      Overrides:
      toTag in class BlockEntity
      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

      public void fromTag​(CompoundTag tag)
      Overrides:
      fromTag in class BlockEntity
      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

      private Text method_33384​(String string)
      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

      @Environment(CLIENT) public Text getTextOnRow​(int row)
      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

      public void setTextOnRow​(int row, Text text)
      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

      @Nullable public BlockEntityUpdateS2CPacket toUpdatePacket()
      Overrides:
      toUpdatePacket in class BlockEntity
      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

      public CompoundTag toInitialChunkDataTag()
      Overrides:
      toInitialChunkDataTag in class BlockEntity
      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 class BlockEntity
      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

      @Environment(CLIENT) public void setEditable​(boolean editable)
      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

      public void setEditor​(PlayerEntity player)
      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

      public PlayerEntity 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

      public boolean onActivate​(PlayerEntity player)
      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

      public ServerCommandSource getCommandSource​(@Nullable ServerPlayerEntity player)
      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

      public DyeColor 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

      public boolean setTextColor​(DyeColor value)
      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