Class PixelmonPlayerResearchStage
java.lang.Object
com.pixelmonmod.pixelmon.api.storage.research.impl.PixelmonPlayerResearchStage
- All Implemented Interfaces:
PlayerResearchStage
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPixelmonPlayerResearchStage(UUID player, ServerPlayerResearch parent, ResearchStage stage) -
Method Summary
Modifier and TypeMethodDescriptionvoidClaims the reward for this stage of research.voidcomplete()Completes this stage of research.The objectives that the player has to complete in this stage of research.voiddeserialize(net.minecraft.nbt.CompoundTag tag) Deserializes this stage of research from aCompoundTag.booleanhandleInteractionEvent(InteractionEvent event, InteractionContext context) Handles an interaction event that the player has with the research.booleanWhether the player has claimed the reward for this stage of research.booleanWhether the player has completed this stage of research.net.minecraft.nbt.CompoundTagSerializes this stage of research to aCompoundTag.stage()The research stage that this player is currently on.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.storage.research.PlayerResearchStage
canClaimReward, write
-
Field Details
-
COMPLETE_TAG
- See Also:
-
CLAIMED_REWARD_TAG
- See Also:
-
OBJECTIVES_TAG
- See Also:
-
-
Constructor Details
-
PixelmonPlayerResearchStage
-
-
Method Details
-
stage
Description copied from interface:PlayerResearchStageThe research stage that this player is currently on.- Specified by:
stagein interfacePlayerResearchStage- Returns:
- The research stage that this player is currently on.
-
isComplete
public boolean isComplete()Description copied from interface:PlayerResearchStageWhether the player has completed this stage of research.- Specified by:
isCompletein interfacePlayerResearchStage- Returns:
- Whether the player has completed this stage of research.
-
hasClaimedReward
public boolean hasClaimedReward()Description copied from interface:PlayerResearchStageWhether the player has claimed the reward for this stage of research.- Specified by:
hasClaimedRewardin interfacePlayerResearchStage- Returns:
- Whether the player has claimed the reward for this stage of research.
-
currentObjectives
Description copied from interface:PlayerResearchStageThe objectives that the player has to complete in this stage of research.- Specified by:
currentObjectivesin interfacePlayerResearchStage- Returns:
- The objectives that the player has to complete in this stage of research.
-
handleInteractionEvent
Description copied from interface:PlayerResearchStageHandles an interaction event that the player has with the research.- Specified by:
handleInteractionEventin interfacePlayerResearchStage- Parameters:
event- The event that the player interacted with.context- The context of the interaction.- Returns:
- If the event caused the research to progress (not complete)
-
claimReward
public void claimReward()Description copied from interface:PlayerResearchStageClaims the reward for this stage of research.- Specified by:
claimRewardin interfacePlayerResearchStage
-
complete
public void complete()Description copied from interface:PlayerResearchStageCompletes this stage of research.- Specified by:
completein interfacePlayerResearchStage
-
serialize
public net.minecraft.nbt.CompoundTag serialize()Description copied from interface:PlayerResearchStageSerializes this stage of research to aCompoundTag.- Specified by:
serializein interfacePlayerResearchStage- Returns:
- The serialized stage of research.
-
deserialize
public void deserialize(net.minecraft.nbt.CompoundTag tag) Description copied from interface:PlayerResearchStageDeserializes this stage of research from aCompoundTag.- Specified by:
deserializein interfacePlayerResearchStage- Parameters:
tag- The serialized stage of research.
-