Class SkullBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.SkullBlockEntity
- All Implemented Interfaces:
 IAttachmentHolder,IBlockEntityExtension,INBTSerializable<CompoundTag>
- 
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final Executorprivate booleanprivate static Executorprivate ResourceLocationprivate com.mojang.authlib.GameProfileprivate static com.google.common.cache.LoadingCache<String,CompletableFuture<Optional<com.mojang.authlib.GameProfile>>> static final Stringstatic final StringFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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_295932_) floatgetAnimation(float p_262053_) static com.mojang.authlib.GameProfilegetOrResolveGameProfile(CompoundTag p_296019_) com.mojang.authlib.GameProfileprivate static booleanhasTextures(com.mojang.authlib.GameProfile p_295602_) voidload(CompoundTag p_155745_) (package private) static CompletableFuture<Optional<com.mojang.authlib.GameProfile>>loadProfile(String p_304754_, Services p_304699_, BooleanSupplier p_304484_) static voidresolveGameProfile(CompoundTag p_294797_) private static voidresolveGameProfile(CompoundTag p_294887_, String p_296231_) protected voidsaveAdditional(CompoundTag p_187518_) voidsetOwner(com.mojang.authlib.GameProfile p_59770_) static voidprivate voidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, removeData, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setData, setLevel, setRemoved, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
areAttachmentsCompatible, deserializeAttachments, getData, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
deserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT 
- 
Field Details
- 
TAG_SKULL_OWNER
- See Also:
 
 - 
TAG_NOTE_BLOCK_SOUND
- See Also:
 
 - 
mainThreadExecutor
 - 
profileCache
@Nullable private static com.google.common.cache.LoadingCache<String,CompletableFuture<Optional<com.mojang.authlib.GameProfile>>> profileCache - 
CHECKED_MAIN_THREAD_EXECUTOR
 - 
owner
@Nullable private com.mojang.authlib.GameProfile owner - 
noteBlockSound
 - 
animationTickCount
private int animationTickCount - 
isAnimating
private boolean isAnimating 
 - 
 - 
Constructor Details
- 
SkullBlockEntity
 
 - 
 - 
Method Details
- 
setup
 - 
clear
public static void clear() - 
loadProfile
static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> loadProfile(String p_304754_, Services p_304699_, BooleanSupplier p_304484_)  - 
saveAdditional
- Overrides:
 saveAdditionalin classBlockEntity
 - 
load
- Overrides:
 loadin classBlockEntity
 - 
animation
public static void animation(Level p_261710_, BlockPos p_262153_, BlockState p_262021_, SkullBlockEntity p_261594_)  - 
getAnimation
public float getAnimation(float p_262053_)  - 
getOwnerProfile
@Nullable public com.mojang.authlib.GameProfile getOwnerProfile() - 
getNoteBlockSound
 - 
getUpdatePacket
- Overrides:
 getUpdatePacketin classBlockEntity
 - 
getUpdateTag
- Overrides:
 getUpdateTagin classBlockEntity
 - 
setOwner
public void setOwner(@Nullable com.mojang.authlib.GameProfile p_59770_)  - 
updateOwnerProfile
private void updateOwnerProfile() - 
getOrResolveGameProfile
@Nullable public static com.mojang.authlib.GameProfile getOrResolveGameProfile(CompoundTag p_296019_)  - 
resolveGameProfile
 - 
resolveGameProfile
 - 
fetchGameProfile
private static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchGameProfile(String p_295932_)  - 
hasTextures
private static boolean hasTextures(com.mojang.authlib.GameProfile p_295602_)  
 -