001package com.ericlam.mc.eld.managers;
002
003import org.bukkit.event.player.PlayerInteractEvent;
004import org.bukkit.event.player.PlayerItemConsumeEvent;
005
006import java.util.function.Consumer;
007
008/**
009 * 物品交互器
010 */
011public interface ItemInteractManager {
012
013    /**
014     * 設置左右鍵事件
015     * @param key 標識id
016     * @param eventConsumer 事件處理
017     */
018    void addInteractEvent(String key, Consumer<PlayerInteractEvent> eventConsumer);
019
020    /**
021     * 設置進食事件
022     * @param key 標識id
023     * @param eventConsumer 事件處理
024     */
025    void addConsumeEvent(String key, Consumer<PlayerItemConsumeEvent> eventConsumer);
026
027
028}