Class SkullBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.SkullBlockEntity
- All Implemented Interfaces:
- ICapabilityProvider,- ICapabilityProviderImpl<BlockEntity>,- ICapabilitySerializable<CompoundTag>,- IForgeBlockEntity,- INBTSerializable<CompoundTag>
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate static final Executorprivate booleanprivate static Executorprivate ResourceLocationprivate com.mojang.authlib.GameProfileprivate static GameProfileCacheprivate static com.mojang.authlib.minecraft.MinecraftSessionServicestatic final Stringstatic final StringFields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABB
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidanimation(Level p_261710_, BlockPos p_262153_, BlockState p_262021_, SkullBlockEntity p_261594_) static voidclear()private static CompletableFuture<Optional<com.mojang.authlib.GameProfile>>fetchGameProfile(String p_298654_) private static CompletableFuture<Optional<com.mojang.authlib.GameProfile>>fillProfileTextures(com.mojang.authlib.GameProfile p_299217_) floatgetAnimation(float p_262053_) static com.mojang.authlib.GameProfilegetOrResolveGameProfile(CompoundTag p_298431_) com.mojang.authlib.GameProfileprivate static booleanhasTextures(com.mojang.authlib.GameProfile p_300715_) voidload(CompoundTag p_155745_) static voidresolveGameProfile(CompoundTag p_301404_) private static voidresolveGameProfile(CompoundTag p_299473_, String p_300818_) protected voidsaveAdditional(CompoundTag p_187518_) voidsetOwner(com.mojang.authlib.GameProfile p_59770_) static voidprivate voidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntitydeserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
- 
Field Details- 
TAG_SKULL_OWNER- See Also:
 
- 
TAG_NOTE_BLOCK_SOUND- See Also:
 
- 
profileCache
- 
sessionService@Nullable private static com.mojang.authlib.minecraft.MinecraftSessionService sessionService
- 
mainThreadExecutor
- 
CHECKED_MAIN_THREAD_EXECUTOR
- 
owner@Nullable private com.mojang.authlib.GameProfile owner
- 
noteBlockSound
- 
animationTickCountprivate int animationTickCount
- 
isAnimatingprivate boolean isAnimating
 
- 
- 
Constructor Details- 
SkullBlockEntity
 
- 
- 
Method Details- 
setup
- 
clearpublic static void clear()
- 
saveAdditional- Overrides:
- saveAdditionalin class- BlockEntity
 
- 
load- Overrides:
- loadin class- BlockEntity
 
- 
animationpublic static void animation(Level p_261710_, BlockPos p_262153_, BlockState p_262021_, SkullBlockEntity p_261594_) 
- 
getAnimationpublic float getAnimation(float p_262053_) 
- 
getOwnerProfile@Nullable public com.mojang.authlib.GameProfile getOwnerProfile()
- 
getNoteBlockSound
- 
getUpdatePacket- Overrides:
- getUpdatePacketin class- BlockEntity
 
- 
getUpdateTag- Overrides:
- getUpdateTagin class- BlockEntity
 
- 
setOwnerpublic void setOwner(@Nullable com.mojang.authlib.GameProfile p_59770_) 
- 
updateOwnerProfileprivate void updateOwnerProfile()
- 
getOrResolveGameProfile@Nullable public static com.mojang.authlib.GameProfile getOrResolveGameProfile(CompoundTag p_298431_) 
- 
resolveGameProfile
- 
resolveGameProfile
- 
fetchGameProfileprivate static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchGameProfile(String p_298654_) 
- 
fillProfileTexturesprivate static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fillProfileTextures(com.mojang.authlib.GameProfile p_299217_) 
- 
hasTexturesprivate static boolean hasTextures(com.mojang.authlib.GameProfile p_300715_) 
 
-