Class SignBlockEntity
- Direct Known Subclasses:
HangingSignBlockEntity
- Mappings:
Namespace Name official dagintermediary net/minecraft/class_2625named net/minecraft/block/entity/SignBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Loggerprivate class_8242private class_8242private booleanprivate static final intprivate static final intFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
ConstructorsConstructorDescriptionSignBlockEntity(BlockEntityType type, BlockPos pos, BlockState state) SignBlockEntity(BlockPos pos, BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the block item should require the player to have operator permissions to copy the block entity data on placement.intintbooleanmethod_49834(PlayerEntity playerEntity) private class_8242method_49835(PlayerEntity playerEntity, List<FilteredMessage> list, class_8242 class_8242) voidmethod_49836(PlayerEntity playerEntity, boolean bool, List<FilteredMessage> list) static voidmethod_49837(World world, BlockPos blockPos, BlockState blockState, SignBlockEntity signBlockEntity) private voidmethod_49838(SignBlockEntity signBlockEntity, World world, UUID uUID) private booleanmethod_49839(class_8242 class_8242) booleanmethod_49840(class_8242 class_8242, boolean bool) booleanmethod_49841(UnaryOperator<class_8242> unaryOperator, boolean bool) method_49843(boolean bool) method_49844(PlayerEntity playerEntity) private booleanmethod_49846(class_8242 class_8242) booleanmethod_49847(UUID uUID) booleanmethod_49849(boolean bool) protected class_8242booleanvoidreadNbt(NbtCompound nbt) Reads data fromnbt.voidReturns the serialized state of this block entity that is observable by clients.Returns the packet to send to nearby players when the block entity's observable state changes, ornullto not send the packet.private voidprotected voidwriteNbt(NbtCompound nbt) Writes data tonbt.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_43294
- Mappings:
Namespace Name Mixin selector official aLdag;a:Lorg/slf4j/Logger;intermediary field_43294Lnet/minecraft/class_2625;field_43294:Lorg/slf4j/Logger;named field_43294Lnet/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 bLdag;b:Iintermediary field_40335Lnet/minecraft/class_2625;field_40335:Inamed MAX_TEXT_WIDTHLnet/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 cLdag;c:Iintermediary field_40336Lnet/minecraft/class_2625;field_40336:Inamed TEXT_LINE_HEIGHTLnet/minecraft/block/entity/SignBlockEntity;TEXT_LINE_HEIGHT:I
-
editor
- Mappings:
Namespace Name Mixin selector official dLdag;d:Ljava/util/UUID;intermediary field_12046Lnet/minecraft/class_2625;field_12046:Ljava/util/UUID;named editorLnet/minecraft/block/entity/SignBlockEntity;editor:Ljava/util/UUID;
-
field_43295
- Mappings:
Namespace Name Mixin selector official eLdag;e:Ldah;intermediary field_43295Lnet/minecraft/class_2625;field_43295:Lnet/minecraft/class_8242;named field_43295Lnet/minecraft/block/entity/SignBlockEntity;field_43295:Lnet/minecraft/class_8242;
-
field_43296
- Mappings:
Namespace Name Mixin selector official fLdag;f:Ldah;intermediary field_43296Lnet/minecraft/class_2625;field_43296:Lnet/minecraft/class_8242;named field_43296Lnet/minecraft/block/entity/SignBlockEntity;field_43296:Lnet/minecraft/class_8242;
-
field_43297
private boolean field_43297- Mappings:
Namespace Name Mixin selector official gLdag;g:Zintermediary field_43297Lnet/minecraft/class_2625;field_43297:Znamed field_43297Lnet/minecraft/block/entity/SignBlockEntity;field_43297:Z
-
-
Constructor Details
-
SignBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Ldag;<init>(Lgt;Ldbm;)Vintermediary <init>Lnet/minecraft/class_2625;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/SignBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
SignBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcyy;<init>(Lcza;Lgt;Ldbm;)Vintermediary <init>Lnet/minecraft/class_2586;<init>(Lnet/minecraft/class_2591;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <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
- Mappings:
Namespace Name Mixin selector official fLdag;f()Ldah;intermediary method_49852Lnet/minecraft/class_2625;method_49852()Lnet/minecraft/class_8242;named method_49852Lnet/minecraft/block/entity/SignBlockEntity;method_49852()Lnet/minecraft/class_8242;
-
method_49834
- Mappings:
Namespace Name Mixin selector official aLdag;a(Lbyb;)Zintermediary method_49834Lnet/minecraft/class_2625;method_49834(Lnet/minecraft/class_1657;)Znamed method_49834Lnet/minecraft/block/entity/SignBlockEntity;method_49834(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
method_49844
- Mappings:
Namespace Name Mixin selector official bLdag;b(Lbyb;)Ldah;intermediary method_49844Lnet/minecraft/class_2625;method_49844(Lnet/minecraft/class_1657;)Lnet/minecraft/class_8242;named method_49844Lnet/minecraft/block/entity/SignBlockEntity;method_49844(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/class_8242;
-
method_49843
- Mappings:
Namespace Name Mixin selector official aLdag;a(Z)Ldah;intermediary method_49843Lnet/minecraft/class_2625;method_49843(Z)Lnet/minecraft/class_8242;named method_49843Lnet/minecraft/block/entity/SignBlockEntity;method_49843(Z)Lnet/minecraft/class_8242;
-
method_49853
- Mappings:
Namespace Name Mixin selector official gLdag;g()Ldah;intermediary method_49853Lnet/minecraft/class_2625;method_49853()Lnet/minecraft/class_8242;named method_49853Lnet/minecraft/block/entity/SignBlockEntity;method_49853()Lnet/minecraft/class_8242;
-
method_49854
- Mappings:
Namespace Name Mixin selector official iLdag;i()Ldah;intermediary method_49854Lnet/minecraft/class_2625;method_49854()Lnet/minecraft/class_8242;named method_49854Lnet/minecraft/block/entity/SignBlockEntity;method_49854()Lnet/minecraft/class_8242;
-
getTextLineHeight
public int getTextLineHeight()- Mappings:
Namespace Name Mixin selector official cLdag;c()Iintermediary method_45469Lnet/minecraft/class_2625;method_45469()Inamed getTextLineHeightLnet/minecraft/block/entity/SignBlockEntity;getTextLineHeight()I
-
getMaxTextWidth
public int getMaxTextWidth()- Mappings:
Namespace Name Mixin selector official dLdag;d()Iintermediary method_45470Lnet/minecraft/class_2625;method_45470()Inamed getMaxTextWidthLnet/minecraft/block/entity/SignBlockEntity;getMaxTextWidth()I
-
writeNbt
Writes data tonbt. 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:
writeNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector official bLcyy;b(Lqq;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readNbt
Reads data fromnbt. 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.
nbtmight 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:
readNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLcyy;a(Lqq;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
method_49836
- Mappings:
Namespace Name Mixin selector official aLdag;a(Lbyb;ZLjava/util/List;)Vintermediary method_49836Lnet/minecraft/class_2625;method_49836(Lnet/minecraft/class_1657;ZLjava/util/List;)Vnamed method_49836Lnet/minecraft/block/entity/SignBlockEntity;method_49836(Lnet/minecraft/entity/player/PlayerEntity;ZLjava/util/List;)V
-
method_49841
- Mappings:
Namespace Name Mixin selector official aLdag;a(Ljava/util/function/UnaryOperator;Z)Zintermediary method_49841Lnet/minecraft/class_2625;method_49841(Ljava/util/function/UnaryOperator;Z)Znamed method_49841Lnet/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 aLdag;a(Lbyb;Ljava/util/List;Ldah;)Ldah;intermediary method_49835Lnet/minecraft/class_2625;method_49835(Lnet/minecraft/class_1657;Ljava/util/List;Lnet/minecraft/class_8242;)Lnet/minecraft/class_8242;named method_49835Lnet/minecraft/block/entity/SignBlockEntity;method_49835(Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;Lnet/minecraft/class_8242;)Lnet/minecraft/class_8242;
-
method_49840
- Mappings:
Namespace Name Mixin selector official aLdag;a(Ldah;Z)Zintermediary method_49840Lnet/minecraft/class_2625;method_49840(Lnet/minecraft/class_8242;Z)Znamed method_49840Lnet/minecraft/block/entity/SignBlockEntity;method_49840(Lnet/minecraft/class_8242;Z)Z
-
method_49839
- Mappings:
Namespace Name Mixin selector official aLdag;a(Ldah;)Zintermediary method_49839Lnet/minecraft/class_2625;method_49839(Lnet/minecraft/class_8242;)Znamed method_49839Lnet/minecraft/block/entity/SignBlockEntity;method_49839(Lnet/minecraft/class_8242;)Z
-
method_49846
- Mappings:
Namespace Name Mixin selector official bLdag;b(Ldah;)Zintermediary method_49846Lnet/minecraft/class_2625;method_49846(Lnet/minecraft/class_8242;)Znamed method_49846Lnet/minecraft/block/entity/SignBlockEntity;method_49846(Lnet/minecraft/class_8242;)Z
-
toUpdatePacket
Description copied from class:BlockEntityReturns the packet to send to nearby players when the block entity's observable state changes, ornullto not send the packet.If the data returned by
initial chunk datais suitable for updates, the following shortcut can be used to create an update packet:BlockEntityUpdateS2CPacket.create(this). The NBT will be passed toBlockEntity.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:
toUpdatePacketin classBlockEntity- Returns:
- the packet to send to nearby players when the block entity's observable
state changes, or
nullto not send the packet - See Also:
- Mappings:
Namespace Name Mixin selector official jLdag;j()Luy;intermediary method_38249Lnet/minecraft/class_2625;method_38249()Lnet/minecraft/class_2622;named toUpdatePacketLnet/minecraft/block/entity/SignBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
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 defaultBlockEntityUpdateS2CPacket."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:
toInitialChunkDataNbtin classBlockEntity- 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_16887Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;named toInitialChunkDataNbtLnet/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:
copyItemDataRequiresOperatorin classBlockEntity- 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 tLcyy;t()Zintermediary method_11011Lnet/minecraft/class_2586;method_11011()Znamed copyItemDataRequiresOperatorLnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
-
setEditor
- Mappings:
Namespace Name Mixin selector official aLdag;a(Ljava/util/UUID;)Vintermediary method_11306Lnet/minecraft/class_2625;method_11306(Ljava/util/UUID;)Vnamed setEditorLnet/minecraft/block/entity/SignBlockEntity;setEditor(Ljava/util/UUID;)V
-
getEditor
- Mappings:
Namespace Name Mixin selector official vLdag;v()Ljava/util/UUID;intermediary method_11305Lnet/minecraft/class_2625;method_11305()Ljava/util/UUID;named getEditorLnet/minecraft/block/entity/SignBlockEntity;getEditor()Ljava/util/UUID;
-
updateListeners
private void updateListeners()- Mappings:
Namespace Name Mixin selector official xLdag;x()Vintermediary method_34272Lnet/minecraft/class_2625;method_34272()Vnamed updateListenersLnet/minecraft/block/entity/SignBlockEntity;updateListeners()V
-
method_49855
public boolean method_49855()- Mappings:
Namespace Name Mixin selector official wLdag;w()Zintermediary method_49855Lnet/minecraft/class_2625;method_49855()Znamed method_49855Lnet/minecraft/block/entity/SignBlockEntity;method_49855()Z
-
method_49849
public boolean method_49849(boolean bool) - Mappings:
Namespace Name Mixin selector official bLdag;b(Z)Zintermediary method_49849Lnet/minecraft/class_2625;method_49849(Z)Znamed method_49849Lnet/minecraft/block/entity/SignBlockEntity;method_49849(Z)Z
-
method_49847
- Mappings:
Namespace Name Mixin selector official bLdag;b(Ljava/util/UUID;)Zintermediary method_49847Lnet/minecraft/class_2625;method_49847(Ljava/util/UUID;)Znamed method_49847Lnet/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 aLdag;a(Lcly;Lgt;Ldbm;Ldag;)Vintermediary method_49837Lnet/minecraft/class_2625;method_49837(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2625;)Vnamed method_49837Lnet/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
- Mappings:
Namespace Name Mixin selector official aLdag;a(Ldag;Lcly;Ljava/util/UUID;)Vintermediary method_49838Lnet/minecraft/class_2625;method_49838(Lnet/minecraft/class_2625;Lnet/minecraft/class_1937;Ljava/util/UUID;)Vnamed method_49838Lnet/minecraft/block/entity/SignBlockEntity;method_49838(Lnet/minecraft/block/entity/SignBlockEntity;Lnet/minecraft/world/World;Ljava/util/UUID;)V
-