public class PrefabPasteUtil
Class PrefabPasteUtil. Provides prefabpasteutil functionality for the Hytale server.
java.lang.Object > PrefabPasteUtil
Field Summary
bx
Field bx.
bz
Field bz.
bx2
Field bx2.
by
Field by.
bz2
Field bz2.
currentBlock
Field currentBlock.
currentFluid
Field currentFluid.
clone
Field clone.
offset
Field offset.
_localX
Field _localX.
_localY
Field _localY.
_localZ
Field _localZ.
_worldX
Field _worldX.
_worldY
Field _worldY.
_worldZ
Field _worldZ.
_yOffset
Field _yOffset.
_originHeight
Field _originHeight.
_specificSeed
Field _specificSeed.
_rotation
Field _rotation.
_fitHeightmap
Field _fitHeightmap.
parentSpecificSeed
Field parentSpecificSeed.
parentFitHeightmap
Field parentFitHeightmap.
yOffset
Field yOffset.
posChunk
Field posChunk.
posWorld
Field posWorld.
prefabSuppliers
Field prefabSuppliers.
prefabSupplier
Field prefabSupplier.
execution
Field execution.
originHeight
Field originHeight.
seed
Field seed.
specificSeed
Field specificSeed.
fitHeightmap
Field fitHeightmap.
deepSearch
Field deepSearch.
blockMask
Field blockMask.
environmentId
Field environmentId.
priority
Field priority.
heightCondition
Field heightCondition.
spawnCondition
Field spawnCondition.
supplier
Field supplier.
depth
Field depth.
Method Detail
generate
void
generate
(@Nonnull final PrefabPasteBuffer buffer, final PrefabRotation rotation, @Nonnull final WorldGenPrefabSupplier supplier, final int x, final int y, final int z, final int cx, final int cz)
Method generate.
- Parameters:
@Nonnull final PrefabPasteBufferbufferfinal PrefabRotationrotation@Nonnull final WorldGenPrefabSuppliersupplierfinal intxfinal intyfinal intzfinal intcxfinal intcz
generate0
void
generate0
(@Nonnull final PrefabPasteBuffer _buffer, @Nonnull final WorldGenPrefabSupplier supplier)
Method generate0.
- Parameters:
@Nonnull final PrefabPasteBuffer_buffer@Nonnull final WorldGenPrefabSuppliersupplier
BlockFluidEntry
new
BlockFluidEntry
(block, 0, fluidId)
Method BlockFluidEntry.
- Parameters:
blockblock00fluidIdfluidId
generateChild
void
generateChild
(final int cx, final int cy, final int cz, final String path, final boolean fitHeightmap, final boolean inheritSeed, final boolean inheritHeightCondition, @Nonnull final PrefabWeights weights, @Nonnull final PrefabRotation rotation, @Nonnull final PrefabPasteBuffer buffer, final Random random)
Method generateChild.
- Parameters:
final intcxfinal intcyfinal intczfinal Stringpathfinal booleanfitHeightmapfinal booleaninheritSeedfinal booleaninheritHeightCondition@Nonnull final PrefabWeightsweights@Nonnull final PrefabRotationrotation@Nonnull final PrefabPasteBufferbufferfinal Randomrandom
nextPrefab
WorldGenPrefabSupplier
nextPrefab
(@Nonnull final Random random, @Nonnull final WorldGenPrefabSupplier[] prefabSuppliers, @Nonnull final PrefabWeights weights)
Method nextPrefab.
- Parameters:
@Nonnull final Randomrandom@Nonnull final WorldGenPrefabSupplier[]prefabSuppliers@Nonnull final PrefabWeightsweights
PrefabPasteBuffer
public
PrefabPasteBuffer
()
Method PrefabPasteBuffer.
setSeed
void
setSeed
(final int worldSeed, final long externalSeed)
Method setSeed.
- Parameters:
final intworldSeedfinal longexternalSeed
reset
void
reset
()
Method reset.