Class SuspiciousSandBlockEntity
- Mappings:
Namespace Name official dap
intermediary net/minecraft/class_8174
named net/minecraft/block/entity/SuspiciousSandBlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private static final Logger
private static final int
private static final int
private static final int
private static final String
private ItemStack
private static final String
private static final String
private static final String
private @Nullable Identifier
private long
private long
private long
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
brush
(long worldTime, PlayerEntity player, Direction hitDirection) private void
finishBrushing
(PlayerEntity player) void
generateItem
(PlayerEntity player) private int
getItem()
private boolean
void
readNbt
(NbtCompound nbt) Reads data fromnbt
.void
void
setLootTable
(Identifier lootTable, long seed) private void
spawnItem
(PlayerEntity player) 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.private boolean
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
Ldap;a:Lorg/slf4j/Logger;
intermediary field_42801
Lnet/minecraft/class_8174;field_42801:Lorg/slf4j/Logger;
named field_42801
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;field_42801:Lorg/slf4j/Logger;
-
LOOT_TABLE_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Ldap;b:Ljava/lang/String;
intermediary field_42802
Lnet/minecraft/class_8174;field_42802:Ljava/lang/String;
named LOOT_TABLE_NBT_KEY
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;LOOT_TABLE_NBT_KEY:Ljava/lang/String;
-
LOOT_TABLE_SEED_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ldap;c:Ljava/lang/String;
intermediary field_42803
Lnet/minecraft/class_8174;field_42803:Ljava/lang/String;
named LOOT_TABLE_SEED_NBT_KEY
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;LOOT_TABLE_SEED_NBT_KEY:Ljava/lang/String;
-
HIT_DIRECTION_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official d
Ldap;d:Ljava/lang/String;
intermediary field_42804
Lnet/minecraft/class_8174;field_42804:Ljava/lang/String;
named HIT_DIRECTION_NBT_KEY
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;HIT_DIRECTION_NBT_KEY:Ljava/lang/String;
-
ITEM_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official e
Ldap;e:Ljava/lang/String;
intermediary field_42805
Lnet/minecraft/class_8174;field_42805:Ljava/lang/String;
named ITEM_NBT_KEY
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;ITEM_NBT_KEY:Ljava/lang/String;
-
field_42806
private static final int field_42806- See Also:
- Mappings:
Namespace Name Mixin selector official f
Ldap;f:I
intermediary field_42806
Lnet/minecraft/class_8174;field_42806:I
named field_42806
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;field_42806:I
-
field_42807
private static final int field_42807- See Also:
- Mappings:
Namespace Name Mixin selector official g
Ldap;g:I
intermediary field_42807
Lnet/minecraft/class_8174;field_42807:I
named field_42807
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;field_42807:I
-
field_42808
private static final int field_42808- See Also:
- Mappings:
Namespace Name Mixin selector official h
Ldap;h:I
intermediary field_42808
Lnet/minecraft/class_8174;field_42808:I
named field_42808
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;field_42808:I
-
brushesCount
private int brushesCount- Mappings:
Namespace Name Mixin selector official i
Ldap;i:I
intermediary field_42809
Lnet/minecraft/class_8174;field_42809:I
named brushesCount
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;brushesCount:I
-
nextDustTime
private long nextDustTime- Mappings:
Namespace Name Mixin selector official j
Ldap;j:J
intermediary field_42810
Lnet/minecraft/class_8174;field_42810:J
named nextDustTime
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;nextDustTime:J
-
nextBrushTime
private long nextBrushTime- Mappings:
Namespace Name Mixin selector official k
Ldap;k:J
intermediary field_42811
Lnet/minecraft/class_8174;field_42811:J
named nextBrushTime
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;nextBrushTime:J
-
item
- Mappings:
Namespace Name Mixin selector official l
Ldap;l:Lcfv;
intermediary field_42812
Lnet/minecraft/class_8174;field_42812:Lnet/minecraft/class_1799;
named item
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;item:Lnet/minecraft/item/ItemStack;
-
hitDirection
- Mappings:
Namespace Name Mixin selector official m
Ldap;m:Lgz;
intermediary field_42813
Lnet/minecraft/class_8174;field_42813:Lnet/minecraft/class_2350;
named hitDirection
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;hitDirection:Lnet/minecraft/util/math/Direction;
-
lootTable
- Mappings:
Namespace Name Mixin selector official n
Ldap;n:Ladd;
intermediary field_42814
Lnet/minecraft/class_8174;field_42814:Lnet/minecraft/class_2960;
named lootTable
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;lootTable:Lnet/minecraft/util/Identifier;
-
lootTableSeed
private long lootTableSeed- Mappings:
Namespace Name Mixin selector official r
Ldap;r:J
intermediary field_42815
Lnet/minecraft/class_8174;field_42815:J
named lootTableSeed
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;lootTableSeed:J
-
-
Constructor Details
-
SuspiciousSandBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Ldap;<init>(Lgt;Ldbq;)V
intermediary <init>
Lnet/minecraft/class_8174;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named <init>
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
brush
- Mappings:
Namespace Name Mixin selector official a
Ldap;a(JLbym;Lgz;)Z
intermediary method_49215
Lnet/minecraft/class_8174;method_49215(JLnet/minecraft/class_1657;Lnet/minecraft/class_2350;)Z
named brush
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;brush(JLnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Direction;)Z
-
generateItem
- Mappings:
Namespace Name Mixin selector official a
Ldap;a(Lbym;)V
intermediary method_49217
Lnet/minecraft/class_8174;method_49217(Lnet/minecraft/class_1657;)V
named generateItem
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;generateItem(Lnet/minecraft/entity/player/PlayerEntity;)V
-
finishBrushing
- Mappings:
Namespace Name Mixin selector official b
Ldap;b(Lbym;)V
intermediary method_49218
Lnet/minecraft/class_8174;method_49218(Lnet/minecraft/class_1657;)V
named finishBrushing
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;finishBrushing(Lnet/minecraft/entity/player/PlayerEntity;)V
-
spawnItem
- Mappings:
Namespace Name Mixin selector official c
Ldap;c(Lbym;)V
intermediary method_49220
Lnet/minecraft/class_8174;method_49220(Lnet/minecraft/class_1657;)V
named spawnItem
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;spawnItem(Lnet/minecraft/entity/player/PlayerEntity;)V
-
scheduledTick
public void scheduledTick()- Mappings:
Namespace Name Mixin selector official c
Ldap;c()V
intermediary method_49219
Lnet/minecraft/class_8174;method_49219()V
named scheduledTick
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;scheduledTick()V
-
readLootTableFromNbt
- Mappings:
Namespace Name Mixin selector official d
Ldap;d(Lre;)Z
intermediary method_49222
Lnet/minecraft/class_8174;method_49222(Lnet/minecraft/class_2487;)Z
named readLootTableFromNbt
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;readLootTableFromNbt(Lnet/minecraft/nbt/NbtCompound;)Z
-
writeLootTableToNbt
- Mappings:
Namespace Name Mixin selector official e
Ldap;e(Lre;)Z
intermediary method_49223
Lnet/minecraft/class_8174;method_49223(Lnet/minecraft/class_2487;)Z
named writeLootTableToNbt
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;writeLootTableToNbt(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 aq_
Lcze;aq_()Lre;
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
Ldap;d()Lvm;
intermediary method_49221
Lnet/minecraft/class_8174;method_49221()Lnet/minecraft/class_2622;
named toUpdatePacket
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;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
Lcze;a(Lre;)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
Lcze;b(Lre;)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
-
setLootTable
- Mappings:
Namespace Name Mixin selector official a
Ldap;a(Ladd;J)V
intermediary method_49216
Lnet/minecraft/class_8174;method_49216(Lnet/minecraft/class_2960;J)V
named setLootTable
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;setLootTable(Lnet/minecraft/util/Identifier;J)V
-
getDustedLevel
private int getDustedLevel()- Mappings:
Namespace Name Mixin selector official i
Ldap;i()I
intermediary method_49226
Lnet/minecraft/class_8174;method_49226()I
named getDustedLevel
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;getDustedLevel()I
-
getHitDirection
- Mappings:
Namespace Name Mixin selector official f
Ldap;f()Lgz;
intermediary method_49224
Lnet/minecraft/class_8174;method_49224()Lnet/minecraft/class_2350;
named getHitDirection
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;getHitDirection()Lnet/minecraft/util/math/Direction;
-
getItem
- Mappings:
Namespace Name Mixin selector official g
Ldap;g()Lcfv;
intermediary method_49225
Lnet/minecraft/class_8174;method_49225()Lnet/minecraft/class_1799;
named getItem
Lnet/minecraft/block/entity/SuspiciousSandBlockEntity;getItem()Lnet/minecraft/item/ItemStack;
-