Interface PlacedFeature

All Superinterfaces:
DefaultedRegistryValue

@CatalogedBy(PlacedFeatures.class) public interface PlacedFeature extends DefaultedRegistryValue
Placed Features are a combination of a Feature with a list of placement modifiers.

Modifiers can impact position, rarity, count and more.

  • Method Details

    • feature

      <F extends FeatureType> Feature feature()
      Returns the feature.
      Type Parameters:
      F - The feature type
      Returns:
      The feature configuration
    • placementModifiers

      List<PlacementModifier> placementModifiers()
      Returns the list of placement modifiers
      Returns:
      The list of placement modifiers
    • place

      boolean place(ServerWorld world, Vector3i pos)
      Places the feature at given position and world
      Parameters:
      world - The world
      pos - The position
      Returns:
      true when the feature was successfully placed
    • place

      boolean place(ServerLocation location)
      Places the feature at given location
      Parameters:
      location - The location
      Returns:
      true when the feature was successfully placed