Interface ResearchMethod

All Known Subinterfaces:
ResearchMethodList
All Known Implementing Classes:
AndResearchMethod, CheckItemPresenceResearchMethod, ConsumeItemResearchMethod, ConsumePackResearchMethod, OrResearchMethod

public interface ResearchMethod
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<ResearchMethod> CODEC
    • STREAM_CODEC

      static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,ResearchMethod> STREAM_CODEC
  • Method Details

    • id

      net.minecraft.resources.ResourceLocation id()
    • checkProgress

      void checkProgress(net.minecraft.world.level.Level level, net.minecraft.resources.ResourceKey<Research> research, ResearchProgress.Task task, ResearchMethod.MethodContext context)
    • createProgress

      ResearchProgress createProgress()
    • getMaxProgress

      float getMaxProgress()
    • shouldCheckProgress

      default boolean shouldCheckProgress()
    • getTranslation

      default net.minecraft.network.chat.Component getTranslation()
    • getSerializer

      ResearchMethodSerializer<?> getSerializer()