Package me.hackware.api.util
Interface AntiCheatBridge.PlacementPolicy
- Enclosing interface:
AntiCheatBridge
public static interface AntiCheatBridge.PlacementPolicy
Placement limits, read live from the AntiCheat module's settings.
-
Method Summary
Modifier and TypeMethodDescriptiondefault intDeprecated.booleanbooleanbooleanbooleanbooleancheckInteractLimit(long timestamp, boolean increment) Consults the use budget, optionally consuming it.intPackets the Global limit (every packet on the wire) has left,Integer.MAX_VALUEwhile it is off.booleanintThe use budget's window: block and item uses (UseItemOn and UseItem), which the server counts together.intlongintbooleansimulate()
-
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_VALUEwhile it is off. -
actionRemaining
Deprecated.there is no action limit any more; this isglobalRemaining().
-
globalRemaining().