Package kr.toxicity.hud.api.popup
Interface PopupIterator
- All Superinterfaces:
Comparable<PopupIterator>
Represents popup iterator.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this popup always checks condition.booleanChecks this popup is available.booleancanSave()Returns this popup can save.intgetIndex()Gets the index of iterator.@NotNull ObjectgetKey()Returns key.intGets the max index of iterator.intGets priority@NotNull PopupSortTypeReturns sort type.@NotNull UUIDgetUUID()Returns uuid.booleanisUnique()Returns whether this iterator is uniquebooleanReturns whether this popup is marked as removal.@NotNull Stringname()Gets name.@NotNull @Unmodifiable List<WidthComponent> next()Iterates this and returns next value.@NotNull Popupparent()Returns parent popup.booleanpush()When added, this iterator will reduce all iterator's index when true.voidremove()Removes this iteratorvoidsetIndex(int index) Sets the index of iterator.voidsetPriority(int priority) Sets priorityMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
parent
Returns parent popup.- Returns:
- parent
-
isUnique
boolean isUnique()Returns whether this iterator is unique- Returns:
- whether to unique
-
markedAsRemoval
boolean markedAsRemoval()Returns whether this popup is marked as removal.- Returns:
- whether to removal
-
push
boolean push()When added, this iterator will reduce all iterator's index when true.- Returns:
- whether to reduce
-
getIndex
int getIndex()Gets the index of iterator.- Returns:
- index
-
getMaxIndex
int getMaxIndex()Gets the max index of iterator.- Returns:
- index
-
setIndex
void setIndex(int index) Sets the index of iterator.- Parameters:
index- index
-
available
boolean available()Checks this popup is available.- Returns:
- whether to available
-
alwaysCheckCondition
boolean alwaysCheckCondition()Returns whether this popup always checks condition.- Returns:
- whether to always check
-
remove
void remove()Removes this iterator -
canSave
boolean canSave()Returns this popup can save.- Returns:
- can save or not
-
getUUID
Returns uuid.- Returns:
- uuid
-
getSortType
Returns sort type.- Returns:
- sort type
-
getKey
Returns key. It is normally uuid.- Returns:
- key
-
next
Iterates this and returns next value.- Returns:
- next component
-
name
Gets name.- Returns:
- name
-
getPriority
int getPriority()Gets priority- Returns:
- priority
-
setPriority
void setPriority(int priority) Sets priority- Parameters:
priority- priority
-