Class PositionIteratorUtils
java.lang.Object
me.hsgamer.hscore.minecraft.block.utils.PositionIteratorUtils
The utility class for
PositionIterator-
Method Summary
Modifier and TypeMethodDescriptionstatic PositionIteratorGet thePositionIteratorby the typeGet the registered typesstatic PositionIteratorCreate aRandomTypePositionIteratorfor theBlockBoxstatic voidregisterType(String type, Function<BlockBox, PositionIterator> typeFunction) Register aPositionIteratortype
-
Method Details
-
registerType
Register aPositionIteratortype- Parameters:
type- the typetypeFunction- the function to create thePositionIterator
-
random
Create aRandomTypePositionIteratorfor theBlockBox- Parameters:
box- theBlockBox- Returns:
- the
PositionIterator
-
get
Get thePositionIteratorby the type- Parameters:
type- the typebox- theBlockBox- Returns:
- the
PositionIterator
-
getRegisteredTypes
Get the registered types- Returns:
- the registered types
-