Class BaseCheck

java.lang.Object
ac.boar.anticheat.check.api.BaseCheck
All Implemented Interfaces:
Check
Direct Known Subclasses:
BadPacketA, BadPacketB, DebugOffsetA, Inventory, Prediction, Reach, ServerBreakBlockValidator, Timer, Velocity

public class BaseCheck extends Object implements Check
  • Field Details

  • Constructor Details

    • BaseCheck

      public BaseCheck(BoarPlayer player)
    • BaseCheck

      public BaseCheck(BoarPlayer player, String name, String type, boolean experimental)
    • BaseCheck

      public BaseCheck(BoarPlayer player, String name, String type, boolean experimental, Class<?> origin)
      Makes a check that reports origin as its owner. A typed sub-check uses this constructor to keep the class of the parent check that made it.
      Parameters:
      origin - the class that owns the flag, or null to use the class of this check
  • Method Details

    • origin

      public Class<?> origin()
      Description copied from interface: Check
      The check class that owns this flag. A typed sub-check keeps the class of its parent check. Use this value to find which integration registered the check. Two integrations can register checks with the same name, so the name alone does not identify the owner.
      Specified by:
      origin in interface Check
    • name

      public String name()
      Specified by:
      name in interface Check
    • type

      public String type()
      Specified by:
      type in interface Check
    • experimental

      public boolean experimental()
      Specified by:
      experimental in interface Check
    • vl

      public int vl()
    • fail

      public void fail()
      Specified by:
      fail in interface Check
    • fail

      public void fail(String verbose)
      Specified by:
      fail in interface Check
    • fail

      public void fail(Enum<?> type, String verbose)
    • fail

      public void fail(String type, String verbose)
    • getDisplayName

      protected final String getDisplayName()