Package net.minecraft.block.entity
Class SkullBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SkullBlockEntity
- Mappings:
Namespace Name official cmtintermediary net/minecraft/class_2631named net/minecraft/block/entity/SkullBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable com.mojang.authlib.GameProfileprivate booleanprivate static @Nullable com.mojang.authlib.minecraft.MinecraftSessionServicestatic final Stringprivate intFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable com.mojang.authlib.GameProfilegetOwner()floatgetTicksPowered(float tickDelta) private voidstatic voidloadProperties(@Nullable com.mojang.authlib.GameProfile owner, Consumer<com.mojang.authlib.GameProfile> callback) voidreadNbt(NbtCompound nbt) static voidsetExecutor(Executor executor) voidstatic voidsetSessionService(com.mojang.authlib.minecraft.MinecraftSessionService value) static voidsetUserCache(UserCache value) static voidtick(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 voidwriteNbt(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 aLcmt;a:Ljava/lang/String;intermediary field_31363Lnet/minecraft/class_2631;field_31363:Ljava/lang/String;named SKULL_OWNER_KEYLnet/minecraft/block/entity/SkullBlockEntity;SKULL_OWNER_KEY:Ljava/lang/String;
-
userCache
- Mappings:
Namespace Name Mixin selector official bLcmt;b:Lafo;intermediary field_12089Lnet/minecraft/class_2631;field_12089:Lnet/minecraft/class_3312;named userCacheLnet/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 cLcmt;c:Lcom/mojang/authlib/minecraft/MinecraftSessionService;intermediary field_12088Lnet/minecraft/class_2631;field_12088:Lcom/mojang/authlib/minecraft/MinecraftSessionService;named sessionServiceLnet/minecraft/block/entity/SkullBlockEntity;sessionService:Lcom/mojang/authlib/minecraft/MinecraftSessionService;
-
executor
- Mappings:
Namespace Name Mixin selector official dLcmt;d:Ljava/util/concurrent/Executor;intermediary field_34029Lnet/minecraft/class_2631;field_34029:Ljava/util/concurrent/Executor;named executorLnet/minecraft/block/entity/SkullBlockEntity;executor:Ljava/util/concurrent/Executor;
-
owner
- Mappings:
Namespace Name Mixin selector official eLcmt;e:Lcom/mojang/authlib/GameProfile;intermediary field_12087Lnet/minecraft/class_2631;field_12087:Lcom/mojang/authlib/GameProfile;named ownerLnet/minecraft/block/entity/SkullBlockEntity;owner:Lcom/mojang/authlib/GameProfile;
-
ticksPowered
private int ticksPowered- Mappings:
Namespace Name Mixin selector official fLcmt;f:Iintermediary field_12085Lnet/minecraft/class_2631;field_12085:Inamed ticksPoweredLnet/minecraft/block/entity/SkullBlockEntity;ticksPowered:I
-
powered
private boolean powered- Mappings:
Namespace Name Mixin selector official gLcmt;g:Zintermediary field_12086Lnet/minecraft/class_2631;field_12086:Znamed poweredLnet/minecraft/block/entity/SkullBlockEntity;powered:Z
-
-
Constructor Details
-
SkullBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcmt;<init>(Lgh;Lcnv;)Vintermediary <init>Lnet/minecraft/class_2631;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/SkullBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
setUserCache
- Mappings:
Namespace Name Mixin selector official aLcmt;a(Lafo;)Vintermediary method_11337Lnet/minecraft/class_2631;method_11337(Lnet/minecraft/class_3312;)Vnamed setUserCacheLnet/minecraft/block/entity/SkullBlockEntity;setUserCache(Lnet/minecraft/util/UserCache;)V
-
setSessionService
public static void setSessionService(com.mojang.authlib.minecraft.MinecraftSessionService value) - Mappings:
Namespace Name Mixin selector official aLcmt;a(Lcom/mojang/authlib/minecraft/MinecraftSessionService;)Vintermediary method_11336Lnet/minecraft/class_2631;method_11336(Lcom/mojang/authlib/minecraft/MinecraftSessionService;)Vnamed setSessionServiceLnet/minecraft/block/entity/SkullBlockEntity;setSessionService(Lcom/mojang/authlib/minecraft/MinecraftSessionService;)V
-
setExecutor
- Mappings:
Namespace Name Mixin selector official aLcmt;a(Ljava/util/concurrent/Executor;)Vintermediary method_37428Lnet/minecraft/class_2631;method_37428(Ljava/util/concurrent/Executor;)Vnamed setExecutorLnet/minecraft/block/entity/SkullBlockEntity;setExecutor(Ljava/util/concurrent/Executor;)V
-
writeNbt
- Overrides:
writeNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official bLcls;b(Lob;)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
- Overrides:
readNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official aLcls;a(Lob;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
tick
- Mappings:
Namespace Name Mixin selector official aLcmt;a(Lbzw;Lgh;Lcnv;Lcmt;)Vintermediary method_31695Lnet/minecraft/class_2631;method_31695(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2631;)Vnamed tickLnet/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 aLcmt;a(F)Fintermediary method_11338Lnet/minecraft/class_2631;method_11338(F)Fnamed getTicksPoweredLnet/minecraft/block/entity/SkullBlockEntity;getTicksPowered(F)F
-
getOwner
- Mappings:
Namespace Name Mixin selector official cLcmt;c()Lcom/mojang/authlib/GameProfile;intermediary method_11334Lnet/minecraft/class_2631;method_11334()Lcom/mojang/authlib/GameProfile;named getOwnerLnet/minecraft/block/entity/SkullBlockEntity;getOwner()Lcom/mojang/authlib/GameProfile;
-
toUpdatePacket
Description copied from class:BlockEntityImplement 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 datais 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:
toUpdatePacketin classBlockEntity- Mappings:
Namespace Name Mixin selector official dLcmt;d()Lqz;intermediary method_38250Lnet/minecraft/class_2631;method_38250()Lnet/minecraft/class_2622;named toUpdatePacketLnet/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:
toInitialChunkDataNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official Z_Lcls;Z_()Lob;intermediary method_16887Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;named toInitialChunkDataNbtLnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt()Lnet/minecraft/nbt/NbtCompound;
-
setOwner
- Mappings:
Namespace Name Mixin selector official aLcmt;a(Lcom/mojang/authlib/GameProfile;)Vintermediary method_11333Lnet/minecraft/class_2631;method_11333(Lcom/mojang/authlib/GameProfile;)Vnamed setOwnerLnet/minecraft/block/entity/SkullBlockEntity;setOwner(Lcom/mojang/authlib/GameProfile;)V
-
loadOwnerProperties
private void loadOwnerProperties()- Mappings:
Namespace Name Mixin selector official fLcmt;f()Vintermediary method_11339Lnet/minecraft/class_2631;method_11339()Vnamed loadOwnerPropertiesLnet/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 aLcmt;a(Lcom/mojang/authlib/GameProfile;Ljava/util/function/Consumer;)Vintermediary method_11335Lnet/minecraft/class_2631;method_11335(Lcom/mojang/authlib/GameProfile;Ljava/util/function/Consumer;)Vnamed loadPropertiesLnet/minecraft/block/entity/SkullBlockEntity;loadProperties(Lcom/mojang/authlib/GameProfile;Ljava/util/function/Consumer;)V
-