Updated Hydrazine

This commit is contained in:
Felix Cravic 2020-08-13 20:24:40 +02:00
parent ef28720496
commit 3c64def9f9
2 changed files with 13 additions and 13 deletions

View File

@ -112,7 +112,7 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.12'
// Path finding
api 'com.github.MadMartian:hydrazine-path-finding:1.3.0'
api 'com.github.MadMartian:hydrazine-path-finding:1.3.1'
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
api 'com.github.jglrxavpok:Hephaistos:v1.0.5'

View File

@ -623,8 +623,8 @@ public class ItemStack implements DataContainer {
/**
* Called when the player right clicks with this item
*
* @param player
* @param hand
* @param player the player who used the item
* @param hand the hand used
*/
public void onRightClick(Player player, Player.Hand hand) {
}
@ -632,8 +632,8 @@ public class ItemStack implements DataContainer {
/**
* Called when the player left clicks with this item
*
* @param player
* @param hand
* @param player the player who used the item
* @param hand the hand used
*/
public void onLeftClick(Player player, Player.Hand hand) {
}
@ -641,10 +641,10 @@ public class ItemStack implements DataContainer {
/**
* Called when the player right clicks with this item on a block
*
* @param player
* @param hand
* @param position
* @param blockFace
* @param player the player who used the item
* @param hand the hand used
* @param position the position of the interacted block
* @param blockFace the block face
* @return true if it prevents normal item use (placing blocks for instance)
*/
public boolean onUseOnBlock(Player player, Player.Hand hand, BlockPosition position, Direction blockFace) {
@ -656,10 +656,10 @@ public class ItemStack implements DataContainer {
* <p>
* Executed before any events
*
* @param player
* @param clickType
* @param slot
* @param playerInventory
* @param player the player who clicked on the item
* @param clickType the click type
* @param slot the slot clicked
* @param playerInventory true if the click is in the player inventory
*/
public void onInventoryClick(Player player, ClickType clickType, int slot, boolean playerInventory) {