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 Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private static final Executor
private boolean
private static Executor
private ResourceLocation
private com.mojang.authlib.GameProfile
private static com.google.common.cache.LoadingCache<String,
CompletableFuture<Optional<com.mojang.authlib.GameProfile>>> static final String
static final String
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
animation
(Level p_261710_, BlockPos p_262153_, BlockState p_262021_, SkullBlockEntity p_261594_) static void
clear()
private static CompletableFuture<Optional<com.mojang.authlib.GameProfile>>
fetchGameProfile
(String p_298654_) float
getAnimation
(float p_262053_) static com.mojang.authlib.GameProfile
getOrResolveGameProfile
(CompoundTag p_298431_) com.mojang.authlib.GameProfile
private static boolean
hasTextures
(com.mojang.authlib.GameProfile p_300715_) void
load
(CompoundTag p_155745_) (package private) static CompletableFuture<Optional<com.mojang.authlib.GameProfile>>
loadProfile
(String p_310569_, Services p_313142_, BooleanSupplier p_312353_) static void
resolveGameProfile
(CompoundTag p_301404_) private static void
resolveGameProfile
(CompoundTag p_299473_, String p_300818_) protected void
saveAdditional
(CompoundTag p_187518_) void
setOwner
(com.mojang.authlib.GameProfile p_59770_) static void
private void
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, 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_310569_, Services p_313142_, BooleanSupplier p_312353_) -
saveAdditional
- Overrides:
saveAdditional
in classBlockEntity
-
load
- Overrides:
load
in 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:
getUpdatePacket
in classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTag
in 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_298431_) -
resolveGameProfile
-
resolveGameProfile
-
fetchGameProfile
private static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchGameProfile(String p_298654_) -
hasTextures
private static boolean hasTextures(com.mojang.authlib.GameProfile p_300715_)
-