Interface ResearchTeam
- All Known Implementing Classes:
SimpleResearchTeam
public interface ResearchTeam
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidvoidaddMember(UUID member, ResearchTeamRole role) voidcompleteResearch(net.minecraft.resources.ResourceKey<Research> research, long completionTime, net.minecraft.world.level.Level level) longGets the creation time of the teamdefault ResearchProgressFetches the progress of the research that is currently researching.default net.minecraft.resources.ResourceKey<Research> Gets the research that is currently researchinggetId()intgetName()getOwner()getQueue()Map<net.minecraft.resources.ResourceKey<Research>, ResearchInstance> Map<net.minecraft.resources.ResourceKey<Research>, ResearchProgress> booleanbooleanisModerator(UUID member) booleanvoidvoidremoveMember(UUID member) voidsetCreationTime(long creationTime) Sets the creation time of the team.voidSet the display name of this teamvoidsetRole(UUID member, ResearchTeamRole role)
-
Method Details
-
getName
String getName()- Returns:
- The display name of this team
-
setName
Set the display name of this team- Parameters:
name- The new display name of the team
-
getId
UUID getId()- Returns:
- The unique uuid of this team
-
getCreationTime
long getCreationTime()Gets the creation time of the team- Returns:
- the time in ticks when the team was created
-
setCreationTime
void setCreationTime(long creationTime) Sets the creation time of the team. This should be correctly relative to further calculations.- Parameters:
creationTime- The time in ticks when the team was created.
-
getOwner
TeamMember getOwner() -
getMembers
SequencedCollection<TeamMember> getMembers() -
getMembersAmount
int getMembersAmount() -
getMember
-
hasMember
-
addMember
-
addMember
-
removeMember
-
setRole
-
isModerator
-
isOwner
-
getCurrentResearch
Gets the research that is currently researching- Returns:
ResourceKeyof the research or null if no research is currently in progress
-
getCurrentProgress
Fetches the progress of the research that is currently researching.- Returns:
ResearchProgressof the research or null if no research is currently in progress.
-
getSocialManager
TeamSocialManager getSocialManager() -
getQueue
ResearchQueue getQueue() -
getResearches
Map<net.minecraft.resources.ResourceKey<Research>,ResearchInstance> getResearches() -
getResearchProgresses
Map<net.minecraft.resources.ResourceKey<Research>,ResearchProgress> getResearchProgresses() -
completeResearch
void completeResearch(net.minecraft.resources.ResourceKey<Research> research, long completionTime, net.minecraft.world.level.Level level) -
refreshResearchStatus
void refreshResearchStatus()
-