Package org.vivecraft.api.client
Interface ItemInUseTracker
- All Superinterfaces:
Tracker
A type of
Tracker
which can prevent the vanilla use key from being released, with itemInUse(LocalPlayer)
.- Since:
- 1.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.vivecraft.api.client.Tracker
Tracker.ProcessType
-
Method Summary
Modifier and TypeMethodDescriptionboolean
itemInUse
(LocalPlayer player) Called for the client player, to check if this tracker is currently causing the item to be used to not release the use key.Methods inherited from interface org.vivecraft.api.client.Tracker
activeProcess, idleProcess, inactiveProcess, isActive, processType
-
Method Details
-
itemInUse
boolean itemInUse(LocalPlayer player) Called for the client player, to check if this tracker is currently causing the item to be used to not release the use key. In other words, if you want the item currently being held to act as the use key being held, one should call the use item function, then return true from this method while the item should still remain used.- Parameters:
player
- The local player which is running this tracker.- Returns:
- Whether the item should remain in use.
- Since:
- 1.3.0
-