Class ResearchProgress.Task

java.lang.Object
com.portingdeadmods.researchd.impl.ResearchProgress.Task
Enclosing class:
ResearchProgress

public static class ResearchProgress.Task extends Object
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ResearchProgress.Task> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,ResearchProgress.Task> STREAM_CODEC
  • Constructor Details

  • Method Details

    • getMethod

      public ResearchMethod getMethod()
    • getProgress

      public float getProgress()
    • getMaxProgress

      public float getMaxProgress()
    • isComplete

      public boolean isComplete()
    • addProgress

      public void addProgress(float progress)
    • checkProgress

      public void checkProgress(net.minecraft.resources.ResourceKey<Research> research, net.minecraft.world.level.Level level, ResearchMethod.MethodContext context)