Interface ResearchEffect

All Known Subinterfaces:
ResearchEffectList
All Known Implementing Classes:
AndResearchEffect, DecreaseValueEffect, DimensionUnlockEffect, DivideValueEffect, EmptyResearchEffect, IncreaseValueEffect, MultiplyValueEffect, RecipeUnlockEffect, UnlockItemEffect

public interface ResearchEffect
A Research Effect can be used to unlock content when researching
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<ResearchEffect>
     
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,ResearchEffect>
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default net.minecraft.network.chat.Component
     
    net.minecraft.resources.ResourceLocation
    id()
     
    void
    onUnlock(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceKey<Research> research)
     
  • Field Details

    • CODEC

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

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

    • onUnlock

      void onUnlock(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceKey<Research> research)
    • id

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

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

      ResearchEffectSerializer<?> getSerializer()