Interface Research

All Known Implementing Classes:
SimpleResearch

public interface Research
Most basic research, providing functionality and data for both displaying and research logic

The default research implementation is SimpleResearch which implements the methods listed here and should be suitable for most use-cases.

  • Field Details

    • CODEC

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

      static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,Research> STREAM_CODEC
    • RESOURCE_KEY_CODEC

      static final com.mojang.serialization.Codec<net.minecraft.resources.ResourceKey<Research>> RESOURCE_KEY_CODEC
    • RESOURCE_KEY_STREAM_CODEC

      static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.resources.ResourceKey<Research>> RESOURCE_KEY_STREAM_CODEC
  • Method Details

    • researchIcon

      ResearchIcon researchIcon()
      Returns:
      The research icon of this research
    • researchMethod

      ResearchMethod researchMethod()
      Returns:
      The research method that is required for this research to be completed
    • researchEffect

      ResearchEffect researchEffect()
      Returns:
      The research effect that happens after the research is completed
    • parents

      List<net.minecraft.resources.ResourceKey<Research>> parents()
      Returns:
      A List of ResourceKey pointing to the parent researchPacks of this research
    • requiresParent

      boolean requiresParent()
      Returns:
      whether the parent researchPacks need to be completed to start this research
    • getSerializer

      ResearchSerializer<?> getSerializer()
      Returns:
      serializer providing typed codecs for the Research
    • getLangName

      static net.minecraft.network.chat.Component getLangName(net.minecraft.resources.ResourceKey<Research> key)
    • getLangDesc

      static net.minecraft.network.chat.Component getLangDesc(net.minecraft.resources.ResourceKey<Research> key)