Interface CubeDetector.IValidationAction

Enclosing class:
CubeDetector

public static interface CubeDetector.IValidationAction
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.Component
    onValidate(net.minecraft.core.BlockPos location, net.minecraft.world.level.block.state.BlockState blockState)
    An action to execute when a location has been validated.
  • Method Details

    • onValidate

      net.minecraft.network.chat.Component onValidate(net.minecraft.core.BlockPos location, net.minecraft.world.level.block.state.BlockState blockState)
      An action to execute when a location has been validated.
      Parameters:
      location - The location that was successfully validated.
      blockState - The blockState on that location.
      Returns:
      Null if the location is valid, otherwise the error message.