PlacedFeatureBuilder
Functions
Adds a BiomeFilter to this PlacedFeature, which returns the position if the configured feature is registered in the biome's feature list at the given position. Empty otherwise.
Adds a BlockPredicateFilter with the given BlockPredicate to this PlacedFeature, which returns the position if the BlockPredicate matches the block at the given position. Empty otherwise.
Adds a CarvingMaskPlacement to this PlacedFeature, which returns all positions in the given position's chunk that were carved out by a WorldCarver in the specified GenerationStep.Carving.
Sets the ConfiguredFeature that should be placed by this PlacedFeature via a Holder that either already contains the ConfiguredFeature, or is set later by the ConfiguredFeature Registry.
Sets the ConfiguredFeature that should be placed by this PlacedFeature via its ResourceKey. If the ConfiguredFeature is not yet registered, an empty Holder will be created and the ConfiguredFeature will be set later by the ConfiguredFeature Registry.
Sets the ConfiguredFeature that should be placed by this PlacedFeature via its ResourceLocation. If the ConfiguredFeature is not yet registered, an empty Holder will be created and the ConfiguredFeature will be set later by the ConfiguredFeature Registry.
Sets the ConfiguredFeature that should be placed by this PlacedFeature.
Adds an EnvironmentScanPlacement to this PlacedFeature, which scans for blocks matching the given target BlockPredicate up/down until it finds a matching block or the max number of steps is reached. If no matching block is found, empty is returned.
Adds an EnvironmentScanPlacement to this PlacedFeature, which scans for blocks matching the given target BlockPredicate up/down until it finds a matching block, the max number of steps is reached or the continuePredicate not matching the next block. If no matching block is found, empty is returned.
Adds a HeightRangePlacement with the given provider to this PlacedFeature, which takes the input position and sets the y-coordinate to a value provided by the given HeightProvider.
Adds a HeightRangePlacement with a trapezoid HeightProvider and a plateau of 0
.
Adds a InSquarePlacement to this PlacedFeature, which adds a random integer in the range [0; 15]
to the x- and z-coordinates of the given position.
Adds a HeightRangePlacement with a uniform distribution between the min y-level and the max terrain height.
Adds multiple PlacementModifiers to this PlacedFeature.
Adds a HeightmapPlacement with the Heightmap.Types.MOTION_BLOCKING heightmap to this PlacedFeature, which takes the input position and sets the y coordinate to one block above the heightmap at the given position.
Adds a HeightmapPlacement with the Heightmap.Types.OCEAN_FLOOR heightmap to this PlacedFeature, which takes the input position and sets the y coordinate to one block above the heightmap at the given position.
Adds a HeightmapPlacement with the Heightmap.Types.OCEAN_FLOOR_WG heightmap to this PlacedFeature, which takes the input position and sets the y coordinate to one block above the heightmap at the given position.
Adds a HeightmapPlacement with the Heightmap.Types.WORLD_SURFACE_WG heightmap to this PlacedFeature, which takes the input position and sets the y coordinate to one block above the heightmap at the given position.
Adds a NoiseThresholdCountPlacement with the given noiseLevel, belowNoise and aboveNoise values to this PlacedFeature, which gets the noise value at the given position and, if the value is positive, returns the given position multiple times.
Adds a RandomOffsetPlacement with a ySpread
value of 0
and the given xzSpread value to this PlacedFeature, which offsets the x- and z-coordinates of the given position by the provided value.
Adds a RandomOffsetPlacement with a ySpread
value of 0
and the given xzSpread value to this PlacedFeature, which offsets the x- and z-coordinates of the given position by the provided IntProvider's value. Please note, that the xzSpread is sampled separately for the x- and z-coordinates.
Adds a RandomOffsetPlacement with a xzSpread
value of 0
and the given ySpread value to this PlacedFeature, which offsets the y-coordinate of the given position by the provided value.
Adds a RandomOffsetPlacement with a xzSpread
value of 0
and the given ySpread value to this PlacedFeature, which offsets the y-coordinate of the given position by the provided IntProvider's value.
Adds a RarityFilter to this PlacedFeature, which returns the given position with a probability of 1 / onAverageOnceEvery
.