Class SignBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SignBlockEntity
Direct Known Subclasses:
HangingSignBlockEntity

public class SignBlockEntity extends BlockEntity
Mappings:
Namespace Name
official dag
intermediary net/minecraft/class_2625
named net/minecraft/block/entity/SignBlockEntity
  • Field Details

    • field_43294

      private static final Logger field_43294
      Mappings:
      Namespace Name Mixin selector
      official a Ldag;a:Lorg/slf4j/Logger;
      intermediary field_43294 Lnet/minecraft/class_2625;field_43294:Lorg/slf4j/Logger;
      named field_43294 Lnet/minecraft/block/entity/SignBlockEntity;field_43294:Lorg/slf4j/Logger;
    • MAX_TEXT_WIDTH

      private static final int MAX_TEXT_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Ldag;b:I
      intermediary field_40335 Lnet/minecraft/class_2625;field_40335:I
      named MAX_TEXT_WIDTH Lnet/minecraft/block/entity/SignBlockEntity;MAX_TEXT_WIDTH:I
    • TEXT_LINE_HEIGHT

      private static final int TEXT_LINE_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Ldag;c:I
      intermediary field_40336 Lnet/minecraft/class_2625;field_40336:I
      named TEXT_LINE_HEIGHT Lnet/minecraft/block/entity/SignBlockEntity;TEXT_LINE_HEIGHT:I
    • editor

      @Nullable private @Nullable UUID editor
      Mappings:
      Namespace Name Mixin selector
      official d Ldag;d: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;
    • field_43295

      private class_8242 field_43295
      Mappings:
      Namespace Name Mixin selector
      official e Ldag;e:Ldah;
      intermediary field_43295 Lnet/minecraft/class_2625;field_43295:Lnet/minecraft/class_8242;
      named field_43295 Lnet/minecraft/block/entity/SignBlockEntity;field_43295:Lnet/minecraft/class_8242;
    • field_43296

      private class_8242 field_43296
      Mappings:
      Namespace Name Mixin selector
      official f Ldag;f:Ldah;
      intermediary field_43296 Lnet/minecraft/class_2625;field_43296:Lnet/minecraft/class_8242;
      named field_43296 Lnet/minecraft/block/entity/SignBlockEntity;field_43296:Lnet/minecraft/class_8242;
    • field_43297

      private boolean field_43297
      Mappings:
      Namespace Name Mixin selector
      official g Ldag;g:Z
      intermediary field_43297 Lnet/minecraft/class_2625;field_43297:Z
      named field_43297 Lnet/minecraft/block/entity/SignBlockEntity;field_43297:Z
  • Constructor Details

    • SignBlockEntity

      public SignBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldag;<init>(Lgt;Ldbm;)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
    • SignBlockEntity

      public SignBlockEntity(BlockEntityType type, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcyy;<init>(Lcza;Lgt;Ldbm;)V
      intermediary <init> Lnet/minecraft/class_2586;<init>(Lnet/minecraft/class_2591;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named <init> Lnet/minecraft/block/entity/BlockEntity;<init>(Lnet/minecraft/block/entity/BlockEntityType;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
  • Method Details

    • method_49852

      protected class_8242 method_49852()
      Mappings:
      Namespace Name Mixin selector
      official f Ldag;f()Ldah;
      intermediary method_49852 Lnet/minecraft/class_2625;method_49852()Lnet/minecraft/class_8242;
      named method_49852 Lnet/minecraft/block/entity/SignBlockEntity;method_49852()Lnet/minecraft/class_8242;
    • method_49834

      public boolean method_49834(PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Ldag;a(Lbyb;)Z
      intermediary method_49834 Lnet/minecraft/class_2625;method_49834(Lnet/minecraft/class_1657;)Z
      named method_49834 Lnet/minecraft/block/entity/SignBlockEntity;method_49834(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • method_49844

      public class_8242 method_49844(PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      official b Ldag;b(Lbyb;)Ldah;
      intermediary method_49844 Lnet/minecraft/class_2625;method_49844(Lnet/minecraft/class_1657;)Lnet/minecraft/class_8242;
      named method_49844 Lnet/minecraft/block/entity/SignBlockEntity;method_49844(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/class_8242;
    • method_49843

      public class_8242 method_49843(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Ldag;a(Z)Ldah;
      intermediary method_49843 Lnet/minecraft/class_2625;method_49843(Z)Lnet/minecraft/class_8242;
      named method_49843 Lnet/minecraft/block/entity/SignBlockEntity;method_49843(Z)Lnet/minecraft/class_8242;
    • method_49853

      public class_8242 method_49853()
      Mappings:
      Namespace Name Mixin selector
      official g Ldag;g()Ldah;
      intermediary method_49853 Lnet/minecraft/class_2625;method_49853()Lnet/minecraft/class_8242;
      named method_49853 Lnet/minecraft/block/entity/SignBlockEntity;method_49853()Lnet/minecraft/class_8242;
    • method_49854

      public class_8242 method_49854()
      Mappings:
      Namespace Name Mixin selector
      official i Ldag;i()Ldah;
      intermediary method_49854 Lnet/minecraft/class_2625;method_49854()Lnet/minecraft/class_8242;
      named method_49854 Lnet/minecraft/block/entity/SignBlockEntity;method_49854()Lnet/minecraft/class_8242;
    • getTextLineHeight

      public int getTextLineHeight()
      Mappings:
      Namespace Name Mixin selector
      official c Ldag;c()I
      intermediary method_45469 Lnet/minecraft/class_2625;method_45469()I
      named getTextLineHeight Lnet/minecraft/block/entity/SignBlockEntity;getTextLineHeight()I
    • getMaxTextWidth

      public int getMaxTextWidth()
      Mappings:
      Namespace Name Mixin selector
      official d Ldag;d()I
      intermediary method_45470 Lnet/minecraft/class_2625;method_45470()I
      named getMaxTextWidth Lnet/minecraft/block/entity/SignBlockEntity;getMaxTextWidth()I
    • writeNbt

      protected void writeNbt(NbtCompound nbt)
      Writes data to nbt. Subclasses should override this if they store a persistent data.

      NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.

      Overrides:
      writeNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lcyy;b(Lqq;)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

      public void readNbt(NbtCompound nbt)
      Reads data from nbt. Subclasses should override this if they store a persistent data.

      NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lcyy;a(Lqq;)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
    • method_49836

      public void method_49836(PlayerEntity playerEntity, boolean bool, List<FilteredMessage> list)
      Mappings:
      Namespace Name Mixin selector
      official a Ldag;a(Lbyb;ZLjava/util/List;)V
      intermediary method_49836 Lnet/minecraft/class_2625;method_49836(Lnet/minecraft/class_1657;ZLjava/util/List;)V
      named method_49836 Lnet/minecraft/block/entity/SignBlockEntity;method_49836(Lnet/minecraft/entity/player/PlayerEntity;ZLjava/util/List;)V
    • method_49841

      public boolean method_49841(UnaryOperator<class_8242> unaryOperator, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Ldag;a(Ljava/util/function/UnaryOperator;Z)Z
      intermediary method_49841 Lnet/minecraft/class_2625;method_49841(Ljava/util/function/UnaryOperator;Z)Z
      named method_49841 Lnet/minecraft/block/entity/SignBlockEntity;method_49841(Ljava/util/function/UnaryOperator;Z)Z
    • method_49835

      private class_8242 method_49835(PlayerEntity playerEntity, List<FilteredMessage> list, class_8242 class_8242)
      Mappings:
      Namespace Name Mixin selector
      official a Ldag;a(Lbyb;Ljava/util/List;Ldah;)Ldah;
      intermediary method_49835 Lnet/minecraft/class_2625;method_49835(Lnet/minecraft/class_1657;Ljava/util/List;Lnet/minecraft/class_8242;)Lnet/minecraft/class_8242;
      named method_49835 Lnet/minecraft/block/entity/SignBlockEntity;method_49835(Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;Lnet/minecraft/class_8242;)Lnet/minecraft/class_8242;
    • method_49840

      public boolean method_49840(class_8242 class_8242, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Ldag;a(Ldah;Z)Z
      intermediary method_49840 Lnet/minecraft/class_2625;method_49840(Lnet/minecraft/class_8242;Z)Z
      named method_49840 Lnet/minecraft/block/entity/SignBlockEntity;method_49840(Lnet/minecraft/class_8242;Z)Z
    • method_49839

      private boolean method_49839(class_8242 class_8242)
      Mappings:
      Namespace Name Mixin selector
      official a Ldag;a(Ldah;)Z
      intermediary method_49839 Lnet/minecraft/class_2625;method_49839(Lnet/minecraft/class_8242;)Z
      named method_49839 Lnet/minecraft/block/entity/SignBlockEntity;method_49839(Lnet/minecraft/class_8242;)Z
    • method_49846

      private boolean method_49846(class_8242 class_8242)
      Mappings:
      Namespace Name Mixin selector
      official b Ldag;b(Ldah;)Z
      intermediary method_49846 Lnet/minecraft/class_2625;method_49846(Lnet/minecraft/class_8242;)Z
      named method_49846 Lnet/minecraft/block/entity/SignBlockEntity;method_49846(Lnet/minecraft/class_8242;)Z
    • toUpdatePacket

      public BlockEntityUpdateS2CPacket toUpdatePacket()
      Description copied from class: BlockEntity
      Returns the packet to send to nearby players when the block entity's observable state changes, or null to not send the 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.

      "Observable state" is a state that clients can observe without specific interaction. For example, CampfireBlockEntity's cooked items are observable states, but chests' inventories are not observable states, since the player must first open that chest before they can see the contents.

      To sync block entity data using this method, use serverWorld.getChunkManager().markForUpdate(this.getPos());.

      Overrides:
      toUpdatePacket in class BlockEntity
      Returns:
      the packet to send to nearby players when the block entity's observable state changes, or null to not send the packet
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Ldag;j()Luy;
      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

      public NbtCompound toInitialChunkDataNbt()
      Returns the serialized state of this block entity that is observable by clients.

      This is sent alongside the initial chunk data, as well as when the block entity implements BlockEntity.toUpdatePacket() and decides to use the default BlockEntityUpdateS2CPacket.

      "Observable state" is a state that clients can observe without specific interaction. For example, CampfireBlockEntity's cooked items are observable states, but chests' inventories are not observable states, since the player must first open that chest before they can see the contents.

      To send all NBT data of this block entity saved to disk, return BlockEntity.createNbt().

      Overrides:
      toInitialChunkDataNbt in class BlockEntity
      Returns:
      the serialized state of this block entity that is observable by clients
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official ap_ Lcyy;ap_()Lqq;
      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()
      Returns whether the block item should require the player to have operator permissions to copy the block entity data on placement.

      Block entities that can execute commands should override this to return true.

      Overrides:
      copyItemDataRequiresOperator in class BlockEntity
      Returns:
      whether the block item should require the player to have operator permissions to copy the block entity data on placement
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official t Lcyy;t()Z
      intermediary method_11011 Lnet/minecraft/class_2586;method_11011()Z
      named copyItemDataRequiresOperator Lnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
    • setEditor

      public void setEditor(@Nullable @Nullable UUID editor)
      Mappings:
      Namespace Name Mixin selector
      official a Ldag;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

      @Nullable public @Nullable UUID getEditor()
      Mappings:
      Namespace Name Mixin selector
      official v Ldag;v()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;
    • updateListeners

      private void updateListeners()
      Mappings:
      Namespace Name Mixin selector
      official x Ldag;x()V
      intermediary method_34272 Lnet/minecraft/class_2625;method_34272()V
      named updateListeners Lnet/minecraft/block/entity/SignBlockEntity;updateListeners()V
    • method_49855

      public boolean method_49855()
      Mappings:
      Namespace Name Mixin selector
      official w Ldag;w()Z
      intermediary method_49855 Lnet/minecraft/class_2625;method_49855()Z
      named method_49855 Lnet/minecraft/block/entity/SignBlockEntity;method_49855()Z
    • method_49849

      public boolean method_49849(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official b Ldag;b(Z)Z
      intermediary method_49849 Lnet/minecraft/class_2625;method_49849(Z)Z
      named method_49849 Lnet/minecraft/block/entity/SignBlockEntity;method_49849(Z)Z
    • method_49847

      public boolean method_49847(UUID uUID)
      Mappings:
      Namespace Name Mixin selector
      official b Ldag;b(Ljava/util/UUID;)Z
      intermediary method_49847 Lnet/minecraft/class_2625;method_49847(Ljava/util/UUID;)Z
      named method_49847 Lnet/minecraft/block/entity/SignBlockEntity;method_49847(Ljava/util/UUID;)Z
    • method_49837

      public static void method_49837(World world, BlockPos blockPos, BlockState blockState, SignBlockEntity signBlockEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Ldag;a(Lcly;Lgt;Ldbm;Ldag;)V
      intermediary method_49837 Lnet/minecraft/class_2625;method_49837(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2625;)V
      named method_49837 Lnet/minecraft/block/entity/SignBlockEntity;method_49837(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/SignBlockEntity;)V
    • method_49838

      private void method_49838(SignBlockEntity signBlockEntity, World world, UUID uUID)
      Mappings:
      Namespace Name Mixin selector
      official a Ldag;a(Ldag;Lcly;Ljava/util/UUID;)V
      intermediary method_49838 Lnet/minecraft/class_2625;method_49838(Lnet/minecraft/class_2625;Lnet/minecraft/class_1937;Ljava/util/UUID;)V
      named method_49838 Lnet/minecraft/block/entity/SignBlockEntity;method_49838(Lnet/minecraft/block/entity/SignBlockEntity;Lnet/minecraft/world/World;Ljava/util/UUID;)V