Class SkullBlockEntity

All Implemented Interfaces:
ICapabilityProvider, ICapabilityProviderImpl<BlockEntity>, ICapabilitySerializable<CompoundTag>, IForgeBlockEntity, INBTSerializable<CompoundTag>

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_298431_)
    • resolveGameProfile

      public static void resolveGameProfile(CompoundTag p_301404_)
    • resolveGameProfile

      private static void resolveGameProfile(CompoundTag p_299473_, String p_300818_)
    • fetchGameProfile

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

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

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