Class InputHandler
java.lang.Object
net.timtaran.interactivemc.util.input.InputHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattemptGrab(PlayerBodyPart playerBodyPart) Sends packet to the server to grab an object using the specified playerBodyPart.static voidattemptRelease(PlayerBodyPart playerBodyPart) Sends a release packet to the server to remove the grab constraint.static TriggerStategetTriggerState(PlayerBodyPart playerBodyPart) static voidupdateTriggerState(PlayerBodyPart playerBodyPart, TriggerState triggerState)
-
Constructor Details
-
InputHandler
public InputHandler()
-
-
Method Details
-
attemptGrab
Sends packet to the server to grab an object using the specified playerBodyPart.- Parameters:
playerBodyPart- the playerBodyPart attempting to grab
-
attemptRelease
Sends a release packet to the server to remove the grab constraint.- Parameters:
playerBodyPart- the playerBodyPart to release
-
updateTriggerState
-
getTriggerState
-