18 lines
583 B
Java
18 lines
583 B
Java
package me.tofaa.entitylib.entity;
|
|
|
|
import com.github.retrooper.packetevents.protocol.player.InteractionHand;
|
|
import com.github.retrooper.packetevents.protocol.player.User;
|
|
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientInteractEntity;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
@FunctionalInterface
|
|
public interface EntityInteractionProcessor {
|
|
|
|
void process(
|
|
@NotNull WrapperEntity entity,
|
|
@NotNull WrapperPlayClientInteractEntity.InteractAction action,
|
|
@NotNull InteractionHand hand,
|
|
@NotNull User user
|
|
);
|
|
|
|
}
|