mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-06-11 14:54:58 +00:00
b2fcfc493a
* AirJump, Attribute continuation * Remove AirJump * Revert "Remove AirJump" This reverts commit e6cf056bb746d70643931f523f163aea1738b482. * Revert "AirJump, Attribute continuation" This reverts commit b8198d7eaff34b089fb0ec1003e4b766503cb0ae. * Remove Attribute to redesign
41 lines
792 B
Java
41 lines
792 B
Java
package com.projectkorra.projectkorra.util;
|
|
|
|
/**
|
|
* An enum representation of the ways in which an ability can be activated.
|
|
*/
|
|
public enum ClickType {
|
|
/**
|
|
* Use this to call your own click type.
|
|
*/
|
|
CUSTOM,
|
|
/**
|
|
* Player has swung their arm.
|
|
*/
|
|
LEFT_CLICK,
|
|
/**
|
|
* For any instance of right clicking that isn't with an entity or a block
|
|
* (Right clicking air will not work).
|
|
*/
|
|
LEFT_CLICK_ENTITY,
|
|
/**
|
|
* Player has left clicked and hit an entity.
|
|
*/
|
|
RIGHT_CLICK,
|
|
/**
|
|
* Specifically for right clicking an entity.
|
|
*/
|
|
RIGHT_CLICK_ENTITY,
|
|
/**
|
|
* Specifically for right clicking a block.
|
|
*/
|
|
RIGHT_CLICK_BLOCK,
|
|
/**
|
|
* The shift key being pressed.
|
|
*/
|
|
SHIFT_DOWN,
|
|
/**
|
|
* The shift key being released.
|
|
*/
|
|
SHIFT_UP;
|
|
}
|