public interface Challenger extends MetadataHolder, Component<Round>
Round
backed by Flint.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the username of this
Challenger . |
Round |
getRound()
Gets the
Round this Challenger is owned by. |
com.google.common.base.Optional<Team> |
getTeam()
Gets the
Team this challenger belongs to. |
java.util.UUID |
getUniqueId()
Gets the unique ID of this
Challenger . |
boolean |
isSpectating()
Returns whether this
Challenger is currently spectating. |
void |
removeFromRound()
Removes this
Challenger from its current Round . |
void |
setSpectating(boolean spectating)
Sets whether this
Challenger is currently spectating. |
getMetadata
Round getRound() throws OrphanedComponentException
Round
this Challenger
is owned by.
Note: This a convenience method for
Component.getOwner()
.
Round
this Challenger
is owned byOrphanedComponentException
- If this object is orphaned (see
Component
for details)java.lang.String getName() throws OrphanedComponentException
Challenger
.Challenger
OrphanedComponentException
- If this object is orphaned (see
Component
for details)java.util.UUID getUniqueId() throws OrphanedComponentException
Challenger
.Challenger
OrphanedComponentException
- If this object is orphaned (see
Component
for details)void removeFromRound() throws OrphanedComponentException
Challenger
from its current Round
.
Note that calling this method will orphan this object, causing all of
its methods to throw OrphanedComponentException
s.
OrphanedComponentException
- If this object is orphaned (see
Component
for details)com.google.common.base.Optional<Team> getTeam() throws OrphanedComponentException
Team
this challenger belongs to.Team
this challenger belongs toOrphanedComponentException
- If this object is orphaned (see
Component
for details)boolean isSpectating() throws OrphanedComponentException
Challenger
is currently spectating.
Spectators are not visible to others and may not interact with the
Round
they are contained by.
Challenger
is currently spectatingOrphanedComponentException
- If this object is orphaned (see
Component
for details)void setSpectating(boolean spectating) throws OrphanedComponentException
Challenger
is currently spectating.
Spectators are not visible to others and may not interact with the
Round
they are contained by.
spectating
- Whether this Challenger
is currently spectatingOrphanedComponentException
- If this object is orphaned (see
Component
for details)