Package net.mathias2246.buildmc.api.team
Interface TeamManager
@NonExtendable
public interface TeamManager
-
Method Summary
Modifier and TypeMethodDescription@Nullable TeamTries to find a registered team with the given string identifier.@Nullable TeamgetTeamFromEntity(@NotNull org.bukkit.entity.Entity entity) Tries to return the team where the given entity is a member of.voidregisterTeam(@NotNull Team team) Registers a team so that it can be found and persist in storage.
-
Method Details
-
getTeam
Tries to find a registered team with the given string identifier.- Parameters:
teamIdentifier- the identifier of the team instance to get- Returns:
- The
Teamwith the given identifier, ornullif not found
-
registerTeam
Registers a team so that it can be found and persist in storage.- Parameters:
team- The team instance to register
-
getTeamFromEntity
Tries to return the team where the given entity is a member of.- Parameters:
entity- The entity to check- Returns:
- The
Teamthe entity is in, ornullif the entity is in no team.
-