类 SkullBlockEntity

所有已实现的接口:
ICapabilityProvider, ICapabilityProviderImpl<BlockEntity>, ICapabilitySerializable<CompoundTag>, IForgeBlockEntity, INBTSerializable<CompoundTag>

public class SkullBlockEntity extends BlockEntity
  • 字段详细资料

    • TAG_SKULL_OWNER

      public static final String TAG_SKULL_OWNER
      另请参阅:
    • TAG_NOTE_BLOCK_SOUND

      public static final String TAG_NOTE_BLOCK_SOUND
      另请参阅:
    • 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
  • 构造器详细资料

  • 方法详细资料

    • setup

      public static void setup(Services pServices, Executor pMainThreadExecutor)
    • clear

      public static void clear()
    • saveAdditional

      protected void saveAdditional(CompoundTag pTag)
      覆盖:
      saveAdditional 在类中 BlockEntity
    • load

      public void load(CompoundTag pTag)
      覆盖:
      load 在类中 BlockEntity
    • animation

      public static void animation(Level pLevel, BlockPos pPos, BlockState pState, SkullBlockEntity pBlockEntity)
    • getAnimation

      public float getAnimation(float pPartialTick)
    • getOwnerProfile

      @Nullable public com.mojang.authlib.GameProfile getOwnerProfile()
    • getNoteBlockSound

      @Nullable public ResourceLocation getNoteBlockSound()
    • getUpdatePacket

      public ClientboundBlockEntityDataPacket getUpdatePacket()
      覆盖:
      getUpdatePacket 在类中 BlockEntity
    • getUpdateTag

      public CompoundTag getUpdateTag()
      覆盖:
      getUpdateTag 在类中 BlockEntity
    • setOwner

      public void setOwner(@Nullable com.mojang.authlib.GameProfile pOwner)
    • updateOwnerProfile

      private void updateOwnerProfile()
    • updateGameprofile

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