Interface AntiCheatBridge.PlacementPolicy

Enclosing interface:
AntiCheatBridge

public static interface AntiCheatBridge.PlacementPolicy
Placement limits, read live from the AntiCheat module's settings.
  • Method Details

    • airPlaceEnabled

      boolean airPlaceEnabled()
    • airPlaceForce

      boolean airPlaceForce()
    • airPlaceSounds

      boolean airPlaceSounds()
    • airPlaceOffhand

      boolean airPlaceOffhand()
    • simulate

      boolean simulate()
    • perBlockCooldownMs

      int perBlockCooldownMs()
    • interactRemaining

      int interactRemaining()
      The use budget's window: block and item uses (UseItemOn and UseItem), which the server counts together.
    • interactSent

      int interactSent()
    • interactWindowStart

      long interactWindowStart()
    • interactLimiterActive

      boolean interactLimiterActive()
    • checkInteractLimit

      boolean checkInteractLimit(long timestamp, boolean increment)
      Consults the use budget, optionally consuming it.
    • globalRemaining

      int globalRemaining()
      Packets the Global limit (every packet on the wire) has left, Integer.MAX_VALUE while it is off.
    • actionRemaining

      @Deprecated default int actionRemaining()
      Deprecated.
      there is no action limit any more; this is globalRemaining().