Class ExactBlockCountValidator

java.lang.Object
org.cyclops.cyclopscore.block.multi.ExactBlockCountValidator
All Implemented Interfaces:
IBlockCountValidator

public class ExactBlockCountValidator extends Object implements IBlockCountValidator
An exact block count validator.
  • Constructor Details

    • ExactBlockCountValidator

      public ExactBlockCountValidator()
  • Method Details

    • isValid

      public net.minecraft.network.chat.Component isValid(int count, boolean structureComplete, net.minecraft.world.level.block.Block block)
      Description copied from interface: IBlockCountValidator
      Check if the block count is valid.
      Specified by:
      isValid in interface IBlockCountValidator
      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.