Class class_8174
- Mappings:
Namespace Name official dam
intermediary net/minecraft/class_8174
named net/minecraft/class_8174
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Logger
private static final String
private static final String
private static final String
private static final String
private static final int
private static final int
private static final int
private int
private long
private long
private ItemStack
private @Nullable Identifier
private long
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
method_49215
(long long2, PlayerEntity playerEntity, Direction direction) void
method_49216
(Identifier identifier, long long2) void
method_49217
(PlayerEntity playerEntity) private void
method_49218
(PlayerEntity playerEntity) void
private void
method_49220
(PlayerEntity playerEntity) private boolean
method_49222
(NbtCompound nbtCompound) private boolean
method_49223
(NbtCompound nbtCompound) private int
void
readNbt
(NbtCompound nbt) Reads data fromnbt
.Returns 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, ornull
to not send the packet.protected void
writeNbt
(NbtCompound nbt) Writes data tonbt
.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, writeIdToNbt
-
Field Details
-
field_42801
- Mappings:
Namespace Name Mixin selector official a
Ldam;a:Lorg/slf4j/Logger;
intermediary field_42801
Lnet/minecraft/class_8174;field_42801:Lorg/slf4j/Logger;
named field_42801
Lnet/minecraft/class_8174;field_42801:Lorg/slf4j/Logger;
-
field_42802
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Ldam;b:Ljava/lang/String;
intermediary field_42802
Lnet/minecraft/class_8174;field_42802:Ljava/lang/String;
named field_42802
Lnet/minecraft/class_8174;field_42802:Ljava/lang/String;
-
field_42803
- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ldam;c:Ljava/lang/String;
intermediary field_42803
Lnet/minecraft/class_8174;field_42803:Ljava/lang/String;
named field_42803
Lnet/minecraft/class_8174;field_42803:Ljava/lang/String;
-
field_42804
- See Also:
- Mappings:
Namespace Name Mixin selector official d
Ldam;d:Ljava/lang/String;
intermediary field_42804
Lnet/minecraft/class_8174;field_42804:Ljava/lang/String;
named field_42804
Lnet/minecraft/class_8174;field_42804:Ljava/lang/String;
-
field_42805
- See Also:
- Mappings:
Namespace Name Mixin selector official e
Ldam;e:Ljava/lang/String;
intermediary field_42805
Lnet/minecraft/class_8174;field_42805:Ljava/lang/String;
named field_42805
Lnet/minecraft/class_8174;field_42805:Ljava/lang/String;
-
field_42806
private static final int field_42806- See Also:
- Mappings:
Namespace Name Mixin selector official f
Ldam;f:I
intermediary field_42806
Lnet/minecraft/class_8174;field_42806:I
named field_42806
Lnet/minecraft/class_8174;field_42806:I
-
field_42807
private static final int field_42807- See Also:
- Mappings:
Namespace Name Mixin selector official g
Ldam;g:I
intermediary field_42807
Lnet/minecraft/class_8174;field_42807:I
named field_42807
Lnet/minecraft/class_8174;field_42807:I
-
field_42808
private static final int field_42808- See Also:
- Mappings:
Namespace Name Mixin selector official h
Ldam;h:I
intermediary field_42808
Lnet/minecraft/class_8174;field_42808:I
named field_42808
Lnet/minecraft/class_8174;field_42808:I
-
field_42809
private int field_42809- Mappings:
Namespace Name Mixin selector official i
Ldam;i:I
intermediary field_42809
Lnet/minecraft/class_8174;field_42809:I
named field_42809
Lnet/minecraft/class_8174;field_42809:I
-
field_42810
private long field_42810- Mappings:
Namespace Name Mixin selector official j
Ldam;j:J
intermediary field_42810
Lnet/minecraft/class_8174;field_42810:J
named field_42810
Lnet/minecraft/class_8174;field_42810:J
-
field_42811
private long field_42811- Mappings:
Namespace Name Mixin selector official k
Ldam;k:J
intermediary field_42811
Lnet/minecraft/class_8174;field_42811:J
named field_42811
Lnet/minecraft/class_8174;field_42811:J
-
field_42812
- Mappings:
Namespace Name Mixin selector official l
Ldam;l:Lcfu;
intermediary field_42812
Lnet/minecraft/class_8174;field_42812:Lnet/minecraft/class_1799;
named field_42812
Lnet/minecraft/class_8174;field_42812:Lnet/minecraft/item/ItemStack;
-
field_42813
- Mappings:
Namespace Name Mixin selector official m
Ldam;m:Lgx;
intermediary field_42813
Lnet/minecraft/class_8174;field_42813:Lnet/minecraft/class_2350;
named field_42813
Lnet/minecraft/class_8174;field_42813:Lnet/minecraft/util/math/Direction;
-
field_42814
- Mappings:
Namespace Name Mixin selector official n
Ldam;n:Lada;
intermediary field_42814
Lnet/minecraft/class_8174;field_42814:Lnet/minecraft/class_2960;
named field_42814
Lnet/minecraft/class_8174;field_42814:Lnet/minecraft/util/Identifier;
-
field_42815
private long field_42815- Mappings:
Namespace Name Mixin selector official r
Ldam;r:J
intermediary field_42815
Lnet/minecraft/class_8174;field_42815:J
named field_42815
Lnet/minecraft/class_8174;field_42815:J
-
-
Constructor Details
-
class_8174
-
-
Method Details
-
method_49215
- Mappings:
Namespace Name Mixin selector official a
Ldam;a(JLbyl;Lgx;)Z
intermediary method_49215
Lnet/minecraft/class_8174;method_49215(JLnet/minecraft/class_1657;Lnet/minecraft/class_2350;)Z
named method_49215
Lnet/minecraft/class_8174;method_49215(JLnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Direction;)Z
-
method_49217
- Mappings:
Namespace Name Mixin selector official a
Ldam;a(Lbyl;)V
intermediary method_49217
Lnet/minecraft/class_8174;method_49217(Lnet/minecraft/class_1657;)V
named method_49217
Lnet/minecraft/class_8174;method_49217(Lnet/minecraft/entity/player/PlayerEntity;)V
-
method_49218
- Mappings:
Namespace Name Mixin selector official b
Ldam;b(Lbyl;)V
intermediary method_49218
Lnet/minecraft/class_8174;method_49218(Lnet/minecraft/class_1657;)V
named method_49218
Lnet/minecraft/class_8174;method_49218(Lnet/minecraft/entity/player/PlayerEntity;)V
-
method_49220
- Mappings:
Namespace Name Mixin selector official c
Ldam;c(Lbyl;)V
intermediary method_49220
Lnet/minecraft/class_8174;method_49220(Lnet/minecraft/class_1657;)V
named method_49220
Lnet/minecraft/class_8174;method_49220(Lnet/minecraft/entity/player/PlayerEntity;)V
-
method_49219
public void method_49219()- Mappings:
Namespace Name Mixin selector official c
Ldam;c()V
intermediary method_49219
Lnet/minecraft/class_8174;method_49219()V
named method_49219
Lnet/minecraft/class_8174;method_49219()V
-
method_49222
- Mappings:
Namespace Name Mixin selector official d
Ldam;d(Lrc;)Z
intermediary method_49222
Lnet/minecraft/class_8174;method_49222(Lnet/minecraft/class_2487;)Z
named method_49222
Lnet/minecraft/class_8174;method_49222(Lnet/minecraft/nbt/NbtCompound;)Z
-
method_49223
- Mappings:
Namespace Name Mixin selector official e
Ldam;e(Lrc;)Z
intermediary method_49223
Lnet/minecraft/class_8174;method_49223(Lnet/minecraft/class_2487;)Z
named method_49223
Lnet/minecraft/class_8174;method_49223(Lnet/minecraft/nbt/NbtCompound;)Z
-
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:
toInitialChunkDataNbt
in classBlockEntity
- Returns:
- the serialized state of this block entity that is observable by clients
- See Also:
- Mappings:
Namespace Name Mixin selector official ao_
Lczb;ao_()Lrc;
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;
-
toUpdatePacket
Description copied from class:BlockEntity
Returns the packet to send to nearby players when the block entity's observable state changes, ornull
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 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:
toUpdatePacket
in classBlockEntity
- 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 d
Ldam;d()Lvk;
intermediary method_49221
Lnet/minecraft/class_8174;method_49221()Lnet/minecraft/class_2622;
named toUpdatePacket
Lnet/minecraft/class_8174;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
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.
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 classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lczb;a(Lrc;)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
-
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:
writeNbt
in classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lczb;b(Lrc;)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
-
method_49216
- Mappings:
Namespace Name Mixin selector official a
Ldam;a(Lada;J)V
intermediary method_49216
Lnet/minecraft/class_8174;method_49216(Lnet/minecraft/class_2960;J)V
named method_49216
Lnet/minecraft/class_8174;method_49216(Lnet/minecraft/util/Identifier;J)V
-
method_49226
private int method_49226()- Mappings:
Namespace Name Mixin selector official i
Ldam;i()I
intermediary method_49226
Lnet/minecraft/class_8174;method_49226()I
named method_49226
Lnet/minecraft/class_8174;method_49226()I
-
method_49224
- Mappings:
Namespace Name Mixin selector official f
Ldam;f()Lgx;
intermediary method_49224
Lnet/minecraft/class_8174;method_49224()Lnet/minecraft/class_2350;
named method_49224
Lnet/minecraft/class_8174;method_49224()Lnet/minecraft/util/math/Direction;
-
method_49225
- Mappings:
Namespace Name Mixin selector official g
Ldam;g()Lcfu;
intermediary method_49225
Lnet/minecraft/class_8174;method_49225()Lnet/minecraft/class_1799;
named method_49225
Lnet/minecraft/class_8174;method_49225()Lnet/minecraft/item/ItemStack;
-