Commits
md_5 authored b54b9409e02
7 7 | +// CraftBukkit start |
8 8 | +import org.bukkit.entity.LivingEntity; |
9 9 | +import org.bukkit.event.entity.EntityCombustByEntityEvent; |
10 10 | +import org.bukkit.event.entity.EntityCombustEvent; |
11 11 | +import org.bukkit.event.player.PlayerPickupArrowEvent; |
12 12 | +// CraftBukkit end |
13 13 | + |
14 14 | public abstract class EntityArrow extends Entity implements IProjectile { |
15 15 | |
16 16 | private static final Predicate<Entity> g = IEntitySelector.f.and(IEntitySelector.a.and(Entity::isInteractable)); |
17 + | |
18 + | public EntityArrow.PickupStatus fromPlayer; |
19 + | public int shake; |
20 + | public UUID shooter; |
21 + | - private int despawnCounter; |
22 + | + public int despawnCounter; // PAIL |
23 + | private int aB; |
24 + | private double damage; |
25 + | public int knockbackStrength; |
17 26 | |
18 27 | } |
19 28 | |
20 29 | protected void a(MovingObjectPosition movingobjectposition) { |
21 30 | + org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this, movingobjectposition); // CraftBukkit - Call event |
22 31 | if (movingobjectposition.entity != null) { |
23 32 | this.b(movingobjectposition); |
24 33 | } else { |
25 34 | |
26 35 | } |