FakeActionManager

Functions

Link copied to clipboard
Link copied to clipboard
fun interact()

Gets run by the EntityPlayerSP mixin to perform the fake action.

Link copied to clipboard
fun queueLeftClickSlot(yaw: Float, pitch: Float, itemSlot: Int = mc.thePlayer.inventory.currentItem, swingItem: Boolean = true): FakeAction

Queues a left click action with the specified slot and the given rotation for the next availiable tick.

Link copied to clipboard
fun queueRightClickSlot(yaw: Float, pitch: Float, itemSlot: Int = mc.thePlayer.inventory.currentItem, forceSneak: Boolean = false): FakeAction

Queues a right click action with the specified slot and the given rotation for the next availiable tick.

Link copied to clipboard
fun reset()

Removes the completed action from the queue

Link copied to clipboard
Link copied to clipboard
fun stageLeftClickSlot(yaw: Double, pitch: Double, itemSlot: Int = mc.thePlayer.inventory.currentItem, swingItem: Boolean = true): FakeAction
fun stageLeftClickSlot(yaw: Float, pitch: Float, itemSlot: Int = mc.thePlayer.inventory.currentItem, swingItem: Boolean = true): FakeAction

Stages a left click action with the specified slot and the given rotation for this tick.

Link copied to clipboard
fun stageRightClickSlot(yaw: Double, pitch: Double, itemSlot: Int = mc.thePlayer.inventory.currentItem, forceSneak: Boolean = false): FakeAction
fun stageRightClickSlot(yaw: Float, pitch: Float, itemSlot: Int = mc.thePlayer.inventory.currentItem, forceSneak: Boolean = false): FakeAction

Stages a right click action with the specified slot and the given rotation for this tick.

Properties

Link copied to clipboard
Link copied to clipboard
var doAction: Boolean = false

Indicates whether a fake action is already staged for this tick. Use this and Subscribe event priority to avoid conflicts with different fake actions.