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 lombok.Getter;
import lombok.RequiredArgsConstructor;
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
 */
@Getter
@RequiredArgsConstructor
public class ClickData {
    /**
     * The Player who clicked.
     */
    private final Player player;

    /**
     * The relative position of the slot that got clicked
     */
    private final Vector2d position;
    /**
     * The InventoryAction of the Event
     */
    private final InventoryAction action;
    /**
     * The Event
     */
    private final InventoryClickEvent event;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy