Class ResearchProgress
java.lang.Object
com.portingdeadmods.researchd.impl.ResearchProgress
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ResearchProgress> static final net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, ResearchProgress> -
Constructor Summary
ConstructorsConstructorDescriptionResearchProgress(List<ResearchProgress.Task> tasks, ResearchProgress.Type type) -
Method Summary
Modifier and TypeMethodDescriptionstatic ResearchProgressand(List<ResearchMethod> methods) voidcheckProgress(net.minecraft.resources.ResourceKey<Research> research, net.minecraft.world.level.Level level, ResearchMethod.MethodContext context) booleanstatic ResearchProgressforResearch(net.minecraft.resources.ResourceKey<Research> key, net.minecraft.world.level.Level level) floatfloatgetTask(ResearchMethod method) inthashCode()booleanstatic ResearchProgressor(List<ResearchMethod> methods) static ResearchProgresssingle(ResearchMethod method) tasks()toString()type()
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,ResearchProgress> STREAM_CODEC
-
-
Constructor Details
-
ResearchProgress
-
-
Method Details
-
isComplete
public boolean isComplete() -
getProgress
public float getProgress() -
getMaxProgress
public float getMaxProgress() -
checkProgress
public void checkProgress(net.minecraft.resources.ResourceKey<Research> research, net.minecraft.world.level.Level level, ResearchMethod.MethodContext context) -
getTask
-
forResearch
public static ResearchProgress forResearch(net.minecraft.resources.ResourceKey<Research> key, net.minecraft.world.level.Level level) -
single
-
and
-
or
-
tasks
-
type
-
equals
-
hashCode
public int hashCode() -
toString
-