Interface CubeDetector.IDetectionListener

Enclosing class:
CubeDetector

public static interface CubeDetector.IDetectionListener
Listener for detections.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onDetect(net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos location, net.minecraft.core.Vec3i size, boolean valid, net.minecraft.core.BlockPos originCorner)
    Called when a new structure has been detected.
  • Method Details

    • onDetect

      void onDetect(net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos location, net.minecraft.core.Vec3i size, boolean valid, net.minecraft.core.BlockPos originCorner)
      Called when a new structure has been detected.
      Parameters:
      world - The world.
      location - The location of a blockState of the structure.
      size - The size of the structure.
      valid - True if the structure should be validated, false if it should be invalidated.
      originCorner - The origin corner block of the structure.