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