Class RecursivePrefabLoader.BlockSelectionLoader
java.lang.Object
com.hypixel.hytale.builtin.buildertools.utils.RecursivePrefabLoader<BlockSelection>
com.hypixel.hytale.builtin.buildertools.utils.RecursivePrefabLoader.BlockSelectionLoader
- All Implemented Interfaces:
BiFunction<String,Random, BlockSelection>
- Enclosing class:
RecursivePrefabLoader<T>
public static class RecursivePrefabLoader.BlockSelectionLoader
extends RecursivePrefabLoader<BlockSelection>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.builtin.buildertools.utils.RecursivePrefabLoader
RecursivePrefabLoader.BlockSelectionLoader, RecursivePrefabLoader.DistinctCollector<T> -
Field Summary
Fields inherited from class com.hypixel.hytale.builtin.buildertools.utils.RecursivePrefabLoader
prefabComponentType, prefabsLoader, rootPrefabsDir, visitedFiles -
Constructor Summary
ConstructorsConstructorDescriptionBlockSelectionLoader(Path rootPrefabsDir, Function<String, BlockSelection> prefabsLoader) -
Method Summary
Modifier and TypeMethodDescriptionprivate static PrefabRotationgetRotation(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType) protected BlockSelectionloadPrefab(int x, int y, int z, String file, PrefabRotation rotation, Random random) Methods inherited from class com.hypixel.hytale.builtin.buildertools.utils.RecursivePrefabLoader
apply, load, load, loadRandomPrefab, loadSinglePrefab, loadWeightedPrefabMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
BlockSelectionLoader
public BlockSelectionLoader(Path rootPrefabsDir, @Nonnull Function<String, BlockSelection> prefabsLoader)
-
-
Method Details
-
loadPrefab
@Nonnull protected BlockSelection loadPrefab(int x, int y, int z, String file, @Nonnull PrefabRotation rotation, @Nonnull Random random) - Specified by:
loadPrefabin classRecursivePrefabLoader<BlockSelection>
-
getRotation
@Nonnull private static PrefabRotation getRotation(@Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType)
-