Class SkullBlockEntity

All Implemented Interfaces:
ICapabilityProvider, ICapabilityProviderImpl<BlockEntity>, ICapabilitySerializable<CompoundTag>, IForgeBlockEntity, 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
    • 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()
    • updateGameprofile

      public static void updateGameprofile(@Nullable com.mojang.authlib.GameProfile p_155739_, Consumer<com.mojang.authlib.GameProfile> p_155740_)