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 voidAdd child elementsGet the child elementsvoidinit()Initialize the element.voidstop()Stop the element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ElementInitialize the element. Should be called before adding to the GUI. -
stop
public void stop()Description copied from interface:ElementStop the element. Should be called after removing from the GUI.
-