Class VectorIteratorUtil
java.lang.Object
me.hsgamer.hscore.bukkit.block.iterator.VectorIteratorUtil
The utility class for
VectorIterator-
Method Summary
Modifier and TypeMethodDescriptionstatic VectorIteratorGet theVectorIteratorby the typeGet the registered typesstatic VectorIteratorCreate aRandomTypeVectorIteratorfor theBlockBoxstatic voidregisterType(String type, Function<BlockBox, VectorIterator> typeFunction) Register aVectorIteratortype
-
Method Details
-
registerType
Register aVectorIteratortype- Parameters:
type- the typetypeFunction- the function to create theVectorIterator
-
random
Create aRandomTypeVectorIteratorfor theBlockBox- Parameters:
box- theBlockBox- Returns:
- the
VectorIterator
-
get
Get theVectorIteratorby the type- Parameters:
type- the typebox- theBlockBox- Returns:
- the
VectorIterator
-
getRegisteredTypes
Get the registered types- Returns:
- the registered types
-