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>
- Direct Known Subclasses:
CustomHeadTest.CustomSkullBlockEntity
-
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 boolean
private static Executor
private int
private com.mojang.authlib.GameProfile
private static GameProfileCache
private static com.mojang.authlib.minecraft.MinecraftSessionService
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
clear()
static void
dragonHeadAnimation
(Level p_155734_, BlockPos p_155735_, BlockState p_155736_, SkullBlockEntity p_155737_) float
getMouthAnimation
(float p_59763_) com.mojang.authlib.GameProfile
void
load
(CompoundTag p_155745_) protected void
saveAdditional
(CompoundTag p_187518_) void
setOwner
(com.mojang.authlib.GameProfile p_59770_) static void
static void
updateGameprofile
(com.mojang.authlib.GameProfile p_155739_, Consumer<com.mojang.authlib.GameProfile> p_155740_) 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:
-
profileCache
-
sessionService
@Nullable private static com.mojang.authlib.minecraft.MinecraftSessionService sessionService -
mainThreadExecutor
-
owner
@Nullable private com.mojang.authlib.GameProfile owner -
mouthTickCount
private int mouthTickCount -
isMovingMouth
private boolean isMovingMouth
-
-
Constructor Details
-
SkullBlockEntity
-
-
Method Details
-
setup
-
clear
public static void clear() -
saveAdditional
- Overrides:
saveAdditional
in classBlockEntity
-
load
- Overrides:
load
in classBlockEntity
-
dragonHeadAnimation
public static void dragonHeadAnimation(Level p_155734_, BlockPos p_155735_, BlockState p_155736_, SkullBlockEntity p_155737_) -
getMouthAnimation
public float getMouthAnimation(float p_59763_) -
getOwnerProfile
@Nullable public com.mojang.authlib.GameProfile getOwnerProfile() -
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() -
updateGameprofile
public static void updateGameprofile(@Nullable com.mojang.authlib.GameProfile p_155739_, Consumer<com.mojang.authlib.GameProfile> p_155740_)
-