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:
    • 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
    • mouthTickCount

      private int mouthTickCount
    • isMovingMouth

      private boolean isMovingMouth
  • 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
    • 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

      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_)