Class SkullBlockEntity

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

public class SkullBlockEntity extends BlockEntity
  • Field Details

    • TAG_SKULL_OWNER

      public static final String TAG_SKULL_OWNER
      See Also:
      Constant Field Values
    • 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

    • SkullBlockEntity

      public SkullBlockEntity​(BlockPos p_155731_, BlockState p_155732_)
  • Method Details

    • setProfileCache

      public static void setProfileCache​(GameProfileCache p_59765_)
    • setSessionService

      public static void setSessionService​(com.mojang.authlib.minecraft.MinecraftSessionService p_59772_)
    • setMainThreadExecutor

      public static void setMainThreadExecutor​(Executor p_182463_)
    • save

      public CompoundTag save​(CompoundTag p_59774_)
      Overrides:
      save 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

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