All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.placeblock.betterinventories.content.item.ClickData Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package de.placeblock.betterinventories.content.item;

import de.placeblock.betterinventories.util.Vector2d;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryAction;
import org.bukkit.event.inventory.InventoryClickEvent;

/**
 * The Button receives the ClickData after an Interaction occurs
 *
 * @param player   The Player who clicked.
 * @param position The relative position of the slot that got clicked
 * @param action   The InventoryAction of the Event
 * @param event    The Event
 */
public record ClickData(Player player, Vector2d position, InventoryAction action, InventoryClickEvent event) {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy