Interface ProtectedBlocksProcessor

All Superinterfaces:
StructureProcessor, Wrapper

@NullMarked @AsOf("3.4.0") public interface ProtectedBlocksProcessor extends StructureProcessor
Keeps the template from overwriting the listed world blocks. Vanilla protects the blocks in #minecraft:features_cannot_replace this way.
Since:
3.4.0
See Also:
  • Method Details

    • cannotReplace

      @AsOf("3.4.0") TagSet<Material> cannotReplace()
      The world blocks the template may not overwrite.
      Returns:
      the world blocks the template may not overwrite
      Since:
      3.4.0
    • of

      @AsOf("3.4.0") static ProtectedBlocksProcessor of(TagSet<Material> cannotReplace)
      Creates a new processor.
      Parameters:
      cannotReplace - the world blocks the template may not overwrite
      Returns:
      a new processor
      Since:
      3.4.0