Package net.minecraft.block.entity
Class SkullBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SkullBlockEntity
- Mappings:
Namespace Name official cna
intermediary net/minecraft/class_2631
named net/minecraft/block/entity/SkullBlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Nullable com.mojang.authlib.GameProfile
private boolean
private static @Nullable com.mojang.authlib.minecraft.MinecraftSessionService
static final String
private int
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
@Nullable com.mojang.authlib.GameProfile
getOwner()
float
getTicksPowered
(float tickDelta) private void
static void
loadProperties
(@Nullable com.mojang.authlib.GameProfile owner, Consumer<com.mojang.authlib.GameProfile> callback) void
readNbt
(NbtCompound nbt) void
static void
setServices
(UserCache userCache, com.mojang.authlib.minecraft.MinecraftSessionService sessionService, Executor executor) static void
tick
(World world, BlockPos pos, BlockState state, SkullBlockEntity blockEntity) Serializes the state of this block entity that is observable by clients.Implement and return a packet that should be sent to players nearby when the observable state of this block entity changes.protected void
writeNbt
(NbtCompound nbt) 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
-
SKULL_OWNER_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lcna;a:Ljava/lang/String;
intermediary field_31363
Lnet/minecraft/class_2631;field_31363:Ljava/lang/String;
named SKULL_OWNER_KEY
Lnet/minecraft/block/entity/SkullBlockEntity;SKULL_OWNER_KEY:Ljava/lang/String;
-
userCache
- Mappings:
Namespace Name Mixin selector official b
Lcna;b:Lafu;
intermediary field_12089
Lnet/minecraft/class_2631;field_12089:Lnet/minecraft/class_3312;
named userCache
Lnet/minecraft/block/entity/SkullBlockEntity;userCache:Lnet/minecraft/util/UserCache;
-
sessionService
@Nullable private static @Nullable com.mojang.authlib.minecraft.MinecraftSessionService sessionService- Mappings:
Namespace Name Mixin selector official c
Lcna;c:Lcom/mojang/authlib/minecraft/MinecraftSessionService;
intermediary field_12088
Lnet/minecraft/class_2631;field_12088:Lcom/mojang/authlib/minecraft/MinecraftSessionService;
named sessionService
Lnet/minecraft/block/entity/SkullBlockEntity;sessionService:Lcom/mojang/authlib/minecraft/MinecraftSessionService;
-
executor
- Mappings:
Namespace Name Mixin selector official d
Lcna;d:Ljava/util/concurrent/Executor;
intermediary field_34029
Lnet/minecraft/class_2631;field_34029:Ljava/util/concurrent/Executor;
named executor
Lnet/minecraft/block/entity/SkullBlockEntity;executor:Ljava/util/concurrent/Executor;
-
owner
- Mappings:
Namespace Name Mixin selector official e
Lcna;e:Lcom/mojang/authlib/GameProfile;
intermediary field_12087
Lnet/minecraft/class_2631;field_12087:Lcom/mojang/authlib/GameProfile;
named owner
Lnet/minecraft/block/entity/SkullBlockEntity;owner:Lcom/mojang/authlib/GameProfile;
-
ticksPowered
private int ticksPowered- Mappings:
Namespace Name Mixin selector official f
Lcna;f:I
intermediary field_12085
Lnet/minecraft/class_2631;field_12085:I
named ticksPowered
Lnet/minecraft/block/entity/SkullBlockEntity;ticksPowered:I
-
powered
private boolean powered- Mappings:
Namespace Name Mixin selector official g
Lcna;g:Z
intermediary field_12086
Lnet/minecraft/class_2631;field_12086:Z
named powered
Lnet/minecraft/block/entity/SkullBlockEntity;powered:Z
-
-
Constructor Details
-
SkullBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lcna;<init>(Lgh;Lcoc;)V
intermediary <init>
Lnet/minecraft/class_2631;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named <init>
Lnet/minecraft/block/entity/SkullBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
setServices
public static void setServices(UserCache userCache, com.mojang.authlib.minecraft.MinecraftSessionService sessionService, Executor executor) - Mappings:
Namespace Name Mixin selector official a
Lcna;a(Lafu;Lcom/mojang/authlib/minecraft/MinecraftSessionService;Ljava/util/concurrent/Executor;)V
intermediary method_39765
Lnet/minecraft/class_2631;method_39765(Lnet/minecraft/class_3312;Lcom/mojang/authlib/minecraft/MinecraftSessionService;Ljava/util/concurrent/Executor;)V
named setServices
Lnet/minecraft/block/entity/SkullBlockEntity;setServices(Lnet/minecraft/util/UserCache;Lcom/mojang/authlib/minecraft/MinecraftSessionService;Ljava/util/concurrent/Executor;)V
-
clearServices
public static void clearServices()- Mappings:
Namespace Name Mixin selector official c
Lcna;c()V
intermediary method_39766
Lnet/minecraft/class_2631;method_39766()V
named clearServices
Lnet/minecraft/block/entity/SkullBlockEntity;clearServices()V
-
writeNbt
- Overrides:
writeNbt
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lclz;b(Loc;)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
- Overrides:
readNbt
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lclz;a(Loc;)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
-
tick
- Mappings:
Namespace Name Mixin selector official a
Lcna;a(Lcad;Lgh;Lcoc;Lcna;)V
intermediary method_31695
Lnet/minecraft/class_2631;method_31695(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2631;)V
named tick
Lnet/minecraft/block/entity/SkullBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/SkullBlockEntity;)V
-
getTicksPowered
public float getTicksPowered(float tickDelta) - Mappings:
Namespace Name Mixin selector official a
Lcna;a(F)F
intermediary method_11338
Lnet/minecraft/class_2631;method_11338(F)F
named getTicksPowered
Lnet/minecraft/block/entity/SkullBlockEntity;getTicksPowered(F)F
-
getOwner
- Mappings:
Namespace Name Mixin selector official d
Lcna;d()Lcom/mojang/authlib/GameProfile;
intermediary method_11334
Lnet/minecraft/class_2631;method_11334()Lcom/mojang/authlib/GameProfile;
named getOwner
Lnet/minecraft/block/entity/SkullBlockEntity;getOwner()Lcom/mojang/authlib/GameProfile;
-
toUpdatePacket
Description copied from class:BlockEntity
Implement and return a packet that should be sent to players nearby when the observable state of this block entity changes. Return null to not send an update 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.- Overrides:
toUpdatePacket
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official f
Lcna;f()Lrf;
intermediary method_38250
Lnet/minecraft/class_2631;method_38250()Lnet/minecraft/class_2622;
named toUpdatePacket
Lnet/minecraft/block/entity/SkullBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
toInitialChunkDataNbt
Serializes the state of this block entity that is observable by clients. It is sent alongside the initial chunk data, as well as when the block entity implementsBlockEntity.toUpdatePacket()
and decides to use the defaultBlockEntityUpdateS2CPacket
.- Overrides:
toInitialChunkDataNbt
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official Z_
Lclz;Z_()Loc;
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;
-
setOwner
- Mappings:
Namespace Name Mixin selector official a
Lcna;a(Lcom/mojang/authlib/GameProfile;)V
intermediary method_11333
Lnet/minecraft/class_2631;method_11333(Lcom/mojang/authlib/GameProfile;)V
named setOwner
Lnet/minecraft/block/entity/SkullBlockEntity;setOwner(Lcom/mojang/authlib/GameProfile;)V
-
loadOwnerProperties
private void loadOwnerProperties()- Mappings:
Namespace Name Mixin selector official g
Lcna;g()V
intermediary method_11339
Lnet/minecraft/class_2631;method_11339()V
named loadOwnerProperties
Lnet/minecraft/block/entity/SkullBlockEntity;loadOwnerProperties()V
-
loadProperties
public static void loadProperties(@Nullable @Nullable com.mojang.authlib.GameProfile owner, Consumer<com.mojang.authlib.GameProfile> callback) - Mappings:
Namespace Name Mixin selector official a
Lcna;a(Lcom/mojang/authlib/GameProfile;Ljava/util/function/Consumer;)V
intermediary method_11335
Lnet/minecraft/class_2631;method_11335(Lcom/mojang/authlib/GameProfile;Ljava/util/function/Consumer;)V
named loadProperties
Lnet/minecraft/block/entity/SkullBlockEntity;loadProperties(Lcom/mojang/authlib/GameProfile;Ljava/util/function/Consumer;)V
-