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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ResearchEffect> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ResearchEffect> -
Method Summary
-
Field Details
-
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()
-