Class BlockIgnoreProcessor

java.lang.Object
com.github.darksoulq.abyssallib.world.structure.processor.StructureProcessor
com.github.darksoulq.abyssallib.world.structure.processor.impl.BlockIgnoreProcessor

public class BlockIgnoreProcessor extends StructureProcessor
A structure processor that prevents specific blocks from being placed.

This processor checks the namespaced ID of every block in the structure against a list of ignored IDs. If a match is found, the block placement is cancelled. It supports both vanilla Minecraft blocks and AbyssalLib custom blocks.

  • Field Details

    • CODEC

      public static final Codec<BlockIgnoreProcessor> CODEC
      The codec used for serializing and deserializing the block ignore processor.

      It maps the "blocks" field, which is a list of strings representing the namespaced IDs to be ignored.

    • TYPE

      public static final StructureProcessorType<BlockIgnoreProcessor> TYPE
      The registered type definition for the block ignore structure processor.
  • Constructor Details

    • BlockIgnoreProcessor

      public BlockIgnoreProcessor(List<String> ignoredIds)
      Constructs a new BlockIgnoreProcessor.
      Parameters:
      ignoredIds - A list of block IDs (e.g., "minecraft:air", "abyssallib:test_block").
  • Method Details