Class PixelmonPlayerResearchObjective
java.lang.Object
com.pixelmonmod.pixelmon.api.storage.research.impl.PixelmonPlayerResearchObjective
- All Implemented Interfaces:
- PlayerResearchObjective
- 
Constructor SummaryConstructorsConstructorDescriptionPixelmonPlayerResearchObjective(UUID player, ServerPlayerResearch parent, PlayerResearchStage stage, ResearchObjective objective) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidClaims the reward for the objective.voidcomplete()Completes the objective.voiddeserialize(net.minecraft.nbt.CompoundTag tag) Deserializes the objective from aCompoundTag.intintbooleanhandleInteractionEvent(InteractionEvent event, InteractionContext context) Handles an interaction event for the objective.booleanbooleanGets the objective that this player research objective is for.net.minecraft.nbt.CompoundTagSerializes the objective to aCompoundTag.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.storage.research.PlayerResearchObjectivecanClaimReward, write
- 
Constructor Details- 
PixelmonPlayerResearchObjectivepublic PixelmonPlayerResearchObjective(UUID player, ServerPlayerResearch parent, PlayerResearchStage stage, ResearchObjective objective) 
 
- 
- 
Method Details- 
objectiveDescription copied from interface:PlayerResearchObjectiveGets the objective that this player research objective is for.- Specified by:
- objectivein interface- PlayerResearchObjective
- Returns:
- The objective.
 
- 
isCompletepublic boolean isComplete()- Specified by:
- isCompletein interface- PlayerResearchObjective
- Returns:
- If the objective has been completed.
 
- 
hasClaimedRewardpublic boolean hasClaimedReward()- Specified by:
- hasClaimedRewardin interface- PlayerResearchObjective
- Returns:
- If the reward for the objective has been claimed.
 
- 
getProgresspublic int getProgress()- Specified by:
- getProgressin interface- PlayerResearchObjective
- Returns:
- The progress of the objective.
 
- 
getTargetpublic int getTarget()- Specified by:
- getTargetin interface- PlayerResearchObjective
- Returns:
- The target of the objective.
 
- 
handleInteractionEventDescription copied from interface:PlayerResearchObjectiveHandles an interaction event for the objective.- Specified by:
- handleInteractionEventin interface- PlayerResearchObjective
- Parameters:
- event- The event.
- context- The context.
- Returns:
- If the event was handled.
 
- 
claimRewardpublic void claimReward()Description copied from interface:PlayerResearchObjectiveClaims the reward for the objective.- Specified by:
- claimRewardin interface- PlayerResearchObjective
 
- 
completepublic void complete()Description copied from interface:PlayerResearchObjectiveCompletes the objective.- Specified by:
- completein interface- PlayerResearchObjective
 
- 
serializepublic net.minecraft.nbt.CompoundTag serialize()Description copied from interface:PlayerResearchObjectiveSerializes the objective to aCompoundTag.- Specified by:
- serializein interface- PlayerResearchObjective
- Returns:
- The serialized objective.
 
- 
deserializepublic void deserialize(net.minecraft.nbt.CompoundTag tag) Description copied from interface:PlayerResearchObjectiveDeserializes the objective from aCompoundTag.- Specified by:
- deserializein interface- PlayerResearchObjective
- Parameters:
- tag- The tag to deserialize.
 
 
-