Class PrefabPasteUtil
java.lang.Object
com.hypixel.hytale.server.worldgen.prefab.PrefabPasteUtil
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerate(PrefabPasteUtil.PrefabPasteBuffer buffer, PrefabRotation rotation, WorldGenPrefabSupplier supplier, int x, int y, int z, int cx, int cz) private static voidgenerate0(PrefabPasteUtil.PrefabPasteBuffer _buffer, WorldGenPrefabSupplier supplier) private static voidgenerateChild(int cx, int cy, int cz, String path, boolean fitHeightmap, boolean inheritSeed, boolean inheritHeightCondition, PrefabWeights weights, PrefabRotation rotation, PrefabPasteUtil.PrefabPasteBuffer buffer, Random random) private static WorldGenPrefabSuppliernextPrefab(Random random, WorldGenPrefabSupplier[] prefabSuppliers, PrefabWeights weights) private static WorldGenPrefabSuppliernextRandomPrefab(Random random, WorldGenPrefabSupplier[] prefabSuppliers)
-
Field Details
-
MAX_RECURSION_DEPTH
public static final int MAX_RECURSION_DEPTH- See Also:
-
-
Constructor Details
-
PrefabPasteUtil
public PrefabPasteUtil()
-
-
Method Details
-
generate
public static void generate(@Nonnull PrefabPasteUtil.PrefabPasteBuffer buffer, PrefabRotation rotation, @Nonnull WorldGenPrefabSupplier supplier, int x, int y, int z, int cx, int cz) -
generate0
private static void generate0(@Nonnull PrefabPasteUtil.PrefabPasteBuffer _buffer, @Nonnull WorldGenPrefabSupplier supplier) -
generateChild
private static void generateChild(int cx, int cy, int cz, String path, boolean fitHeightmap, boolean inheritSeed, boolean inheritHeightCondition, @Nonnull PrefabWeights weights, @Nonnull PrefabRotation rotation, @Nonnull PrefabPasteUtil.PrefabPasteBuffer buffer, Random random) -
nextPrefab
@Nonnull private static WorldGenPrefabSupplier nextPrefab(@Nonnull Random random, @Nonnull WorldGenPrefabSupplier[] prefabSuppliers, @Nonnull PrefabWeights weights) -
nextRandomPrefab
@Nonnull private static WorldGenPrefabSupplier nextRandomPrefab(@Nonnull Random random, @Nonnull WorldGenPrefabSupplier[] prefabSuppliers)
-