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,ICapabilitySerializable<CompoundTag>,IForgeBlockEntity,INBTSerializable<CompoundTag>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static Executorprivate intprivate com.mojang.authlib.GameProfileprivate static GameProfileCacheprivate static com.mojang.authlib.minecraft.MinecraftSessionServicestatic 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 voiddragonHeadAnimation(Level p_155734_, BlockPos p_155735_, BlockState p_155736_, SkullBlockEntity p_155737_)floatgetMouthAnimation(float p_59763_)com.mojang.authlib.GameProfilevoidload(CompoundTag p_155745_)save(CompoundTag p_59774_)static voidsetMainThreadExecutor(Executor p_182463_)voidsetOwner(com.mojang.authlib.GameProfile p_59770_)static voidsetProfileCache(GameProfileCache p_59765_)static voidsetSessionService(com.mojang.authlib.minecraft.MinecraftSessionService p_59772_)static voidupdateGameprofile(com.mojang.authlib.GameProfile p_155739_, Consumer<com.mojang.authlib.GameProfile> p_155740_)private voidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, setBlockState, setChanged, setChanged, 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
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
TAG_SKULL_OWNER
- See Also:
- Constant Field Values
-
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
-
setProfileCache
-
setSessionService
public static void setSessionService(com.mojang.authlib.minecraft.MinecraftSessionService p_59772_) -
setMainThreadExecutor
-
save
- Overrides:
savein classBlockEntity
-
load
- Overrides:
loadin 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:
getUpdatePacketin classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTagin 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_)
-