Class SkullBlockEntity

All Implemented Interfaces:
ICapabilityProvider, ICapabilityProviderImpl<BlockEntity>, ICapabilitySerializable<CompoundTag>, IBlockEntityExtension, INBTSerializable<CompoundTag>
Direct Known Subclasses:
CustomHeadTest.CustomSkullBlockEntity

public class SkullBlockEntity extends BlockEntity
  • Field Details

    • TAG_SKULL_OWNER

      public static final String TAG_SKULL_OWNER
      See Also:
    • TAG_NOTE_BLOCK_SOUND

      public static final String TAG_NOTE_BLOCK_SOUND
      See Also:
    • profileCache

      @Nullable private static GameProfileCache profileCache
    • sessionService

      @Nullable private static com.mojang.authlib.minecraft.MinecraftSessionService sessionService
    • mainThreadExecutor

      @Nullable private static Executor mainThreadExecutor
    • CHECKED_MAIN_THREAD_EXECUTOR

      private static final Executor CHECKED_MAIN_THREAD_EXECUTOR
    • owner

      @Nullable private com.mojang.authlib.GameProfile owner
    • noteBlockSound

      @Nullable private ResourceLocation noteBlockSound
    • animationTickCount

      private int animationTickCount
    • isAnimating

      private boolean isAnimating
  • Constructor Details

  • Method Details

    • setup

      public static void setup(Services p_222886_, Executor p_222887_)
    • clear

      public static void clear()
    • saveAdditional

      protected void saveAdditional(CompoundTag p_187518_)
      Overrides:
      saveAdditional in class BlockEntity
    • load

      public void load(CompoundTag p_155745_)
      Overrides:
      load in class BlockEntity
    • 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

      @Nullable public ResourceLocation getNoteBlockSound()
    • getUpdatePacket

      public ClientboundBlockEntityDataPacket getUpdatePacket()
      Overrides:
      getUpdatePacket in class BlockEntity
    • getUpdateTag

      public CompoundTag getUpdateTag()
      Overrides:
      getUpdateTag in class BlockEntity
    • 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_296019_)
    • resolveGameProfile

      public static void resolveGameProfile(CompoundTag p_294797_)
    • resolveGameProfile

      private static void resolveGameProfile(CompoundTag p_294887_, String p_296231_)
    • fetchGameProfile

      private static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fetchGameProfile(String p_295932_)
    • fillProfileTextures

      private static CompletableFuture<Optional<com.mojang.authlib.GameProfile>> fillProfileTextures(com.mojang.authlib.GameProfile p_295873_)
    • hasTextures

      private static boolean hasTextures(com.mojang.authlib.GameProfile p_295602_)