Class EmptyResearchEffect
java.lang.Object
com.portingdeadmods.researchd.impl.research.effect.EmptyResearchEffect
- All Implemented Interfaces:
ResearchEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final EmptyResearchEffectstatic final ResearchEffectSerializer<EmptyResearchEffect> Fields inherited from interface com.portingdeadmods.researchd.api.research.effects.ResearchEffect
CODEC, STREAM_CODEC -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationid()voidonLock(net.minecraft.world.level.Level level, ResearchTeam team, net.minecraft.resources.ResourceKey<Research> research) voidonUnlock(net.minecraft.world.level.Level level, ResearchTeam team, net.minecraft.resources.ResourceKey<Research> research) type()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.portingdeadmods.researchd.api.research.effects.ResearchEffect
getTranslation
-
Field Details
-
INSTANCE
-
ID
public static final net.minecraft.resources.ResourceLocation ID -
SERIALIZER
-
-
Method Details
-
onUnlock
public void onUnlock(net.minecraft.world.level.Level level, ResearchTeam team, net.minecraft.resources.ResourceKey<Research> research) - Specified by:
onUnlockin interfaceResearchEffect
-
onLock
public void onLock(net.minecraft.world.level.Level level, ResearchTeam team, net.minecraft.resources.ResourceKey<Research> research) Description copied from interface:ResearchEffectInverse ofResearchEffect.onUnlock(net.minecraft.world.level.Level, com.portingdeadmods.researchd.api.team.ResearchTeam, net.minecraft.resources.ResourceKey<com.portingdeadmods.researchd.api.research.Research>). Called when a previously-completed research is removed, and once per non-completed research at team-creation / datapack-reload time so the default "everything blocked" state is built up incrementally rather than from a separateinitDefaultpass.- Specified by:
onLockin interfaceResearchEffect
-
id
public net.minecraft.resources.ResourceLocation id()- Specified by:
idin interfaceResearchEffect
-
type
- Specified by:
typein interfaceResearchEffect
-
getSerializer
- Specified by:
getSerializerin interfaceResearchEffect
-