Interface IBlockCountValidator

All Known Implementing Classes:
ExactBlockCountValidator, MaximumBlockCountValidator, MinimumBlockCountValidator

public interface IBlockCountValidator
Count validator for blocks. This validator will be called multiple times, for each time an allowed block is found.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.Component
    isValid(int count, boolean structureComplete, net.minecraft.world.level.block.Block block)
    Check if the block count is valid.
  • Method Details

    • isValid

      net.minecraft.network.chat.Component isValid(int count, boolean structureComplete, net.minecraft.world.level.block.Block block)
      Check if the block count is valid.
      Parameters:
      count - The block count up until now.
      structureComplete - If this check is done once the structure is fully complete.
      block - The block to check, used as reference for the error.
      Returns:
      Null if the location is valid, otherwise the error message.