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
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.ComponentHelper, BlockEntity.DataComponentInputNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic final Executorprivate Componentprivate booleanprivate static final org.slf4j.Loggerprivate static Executorprivate ResourceLocationprivate ResolvableProfileprivate static com.google.common.cache.LoadingCache<UUID, CompletableFuture<Optional<com.mojang.authlib.GameProfile>>> private static com.google.common.cache.LoadingCache<String, CompletableFuture<Optional<com.mojang.authlib.GameProfile>>> private static final Stringprivate static final Stringprivate static 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 level, BlockPos pos, BlockState state, SkullBlockEntity blockEntity) protected voidapplyImplicitComponents(BlockEntity.DataComponentInput componentInput) static voidclear()protected voidcollectImplicitComponents(DataComponentMap.Builder components) static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchGameProfile(String profileName) static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchGameProfile(UUID profileUuid) (package private) static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchProfileById(UUID id, Services services, BooleanSupplier cacheUninitialized) (package private) static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchProfileByName(String name, Services services) floatgetAnimation(float partialTick) getUpdateTag(HolderLookup.Provider registries) protected voidloadAdditional(CompoundTag tag, HolderLookup.Provider registries) voidprotected voidsaveAdditional(CompoundTag tag, HolderLookup.Provider registries) voidsetOwner(ResolvableProfile owner) static voidprivate voidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, 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, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate
-
Field Details
-
TAG_PROFILE
- See Also:
-
TAG_NOTE_BLOCK_SOUND
- See Also:
-
TAG_CUSTOM_NAME
- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
mainThreadExecutor
-
profileCacheByName
@Nullable private static com.google.common.cache.LoadingCache<String,CompletableFuture<Optional<com.mojang.authlib.GameProfile>>> profileCacheByName -
profileCacheById
@Nullable private static com.google.common.cache.LoadingCache<UUID,CompletableFuture<Optional<com.mojang.authlib.GameProfile>>> profileCacheById -
CHECKED_MAIN_THREAD_EXECUTOR
-
owner
-
noteBlockSound
-
animationTickCount
private int animationTickCount -
isAnimating
private boolean isAnimating -
customName
-
-
Constructor Details
-
SkullBlockEntity
-
-
Method Details
-
setup
-
fetchProfileByName
static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchProfileByName(String name, Services services) -
fetchProfileById
static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchProfileById(UUID id, Services services, BooleanSupplier cacheUninitialized) -
clear
public static void clear() -
saveAdditional
- Overrides:
saveAdditionalin classBlockEntity
-
loadAdditional
- Overrides:
loadAdditionalin classBlockEntity
-
animation
public static void animation(Level level, BlockPos pos, BlockState state, SkullBlockEntity blockEntity) -
getAnimation
public float getAnimation(float partialTick) -
getOwnerProfile
-
getNoteBlockSound
-
getUpdatePacket
- Overrides:
getUpdatePacketin classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTagin classBlockEntity
-
setOwner
-
updateOwnerProfile
private void updateOwnerProfile() -
fetchGameProfile
public static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchGameProfile(String profileName) -
fetchGameProfile
public static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchGameProfile(UUID profileUuid) -
applyImplicitComponents
- Overrides:
applyImplicitComponentsin classBlockEntity
-
collectImplicitComponents
- Overrides:
collectImplicitComponentsin classBlockEntity
-
removeComponentsFromTag
- Overrides:
removeComponentsFromTagin classBlockEntity
-