Class MultiMask<T>
java.lang.Object
io.github.projectunified.craftux.mask.MultiMask<T>
- Type Parameters:
T
- the type of the child element
- Direct Known Subclasses:
AnimatedMask
,HybridMask
,ListMask
,MultiPositionMask
,OneTimeAnimatedMask
A base mask that handles multiple child elements
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R extends T>
voidadd
(Collection<R> elements) Add child elementsfinal void
Add child elementsGet the child elementsvoid
init()
Initialize the element.void
stop()
Stop the element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.craftux.common.Mask
apply, getActionMap
-
Field Details
-
elements
-
-
Constructor Details
-
MultiMask
public MultiMask()
-
-
Method Details
-
add
Add child elements- Type Parameters:
R
- the type of the child elements- Parameters:
elements
- the child elements
-
add
Add child elements- Parameters:
elements
- the child elements
-
getElements
Get the child elements- Returns:
- the child elements
-
init
public void init()Description copied from interface:Element
Initialize the element. Should be called before adding to the GUI. -
stop
public void stop()Description copied from interface:Element
Stop the element. Should be called after removing from the GUI.
-