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>,IForgeBlockEntity
-
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.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>> -
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 interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidanimation(Level p_261710_, BlockPos p_262153_, BlockState p_262021_, SkullBlockEntity p_261594_) protected voidstatic voidclear()protected voidstatic CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchGameProfile(String p_298654_) static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchGameProfile(UUID p_331248_) (package private) static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchProfileById(UUID p_332548_, Services p_336268_, BooleanSupplier p_335205_) (package private) static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchProfileByName(String p_333451_, Services p_332839_) floatgetAnimation(float p_262053_) getUpdateTag(HolderLookup.Provider p_335540_) protected voidloadAdditional(CompoundTag p_335831_, HolderLookup.Provider p_329643_) voidremoveComponentsFromTag(CompoundTag p_332333_) protected voidsaveAdditional(CompoundTag p_187518_, HolderLookup.Provider p_329143_) voidsetOwner(ResolvableProfile p_328553_) static voidprivate voidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadCustomOnly, loadStatic, loadWithComponents, onChunkUnloaded, onlyOpCanSetNbt, parseCustomNameSafe, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, 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 p_333451_, Services p_332839_) -
fetchProfileById
static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchProfileById(UUID p_332548_, Services p_336268_, BooleanSupplier p_335205_) -
clear
public static void clear() -
saveAdditional
- Overrides:
saveAdditionalin classBlockEntity
-
loadAdditional
- Overrides:
loadAdditionalin 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
-
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 p_298654_) -
fetchGameProfile
public static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchGameProfile(UUID p_331248_) -
applyImplicitComponents
- Overrides:
applyImplicitComponentsin classBlockEntity
-
collectImplicitComponents
- Overrides:
collectImplicitComponentsin classBlockEntity
-
removeComponentsFromTag
- Overrides:
removeComponentsFromTagin classBlockEntity
-