aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/events/PlayerInteractEntityEvent.java
blob: 8e61b6a2831014a2f7db8d43c53b5a09465f5665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package kr.syeyoung.dungeonsguide.events;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import net.minecraft.entity.Entity;
import net.minecraftforge.fml.common.eventhandler.Event;

@AllArgsConstructor
public class PlayerInteractEntityEvent extends Event {

    @Getter @Setter
    private boolean attack;
    @Getter @Setter
    private Entity entity;

    @Override
    public boolean isCancelable() {
        return true;
    }
}