Interface ResearchMethod
- All Known Subinterfaces:
ResearchMethodList
- All Known Implementing Classes:
AndResearchMethod,CheckItemPresenceResearchMethod,ConsumeItemResearchMethod,ConsumePackResearchMethod,OrResearchMethod
public interface ResearchMethod
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ResearchMethod> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ResearchMethod> -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckProgress(net.minecraft.world.level.Level level, net.minecraft.resources.ResourceKey<Research> research, ResearchProgress.Task task, ResearchMethod.MethodContext context) floatdefault net.minecraft.network.chat.Componentnet.minecraft.resources.ResourceLocationid()default boolean
-
Field Details
-
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()
-