-
-
Notifications
You must be signed in to change notification settings - Fork 104
/
EntityFakeArrow_v1_11_R1.java
34 lines (28 loc) · 1.1 KB
/
EntityFakeArrow_v1_11_R1.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package net.aufdemrand.denizen.nms.impl.entities;
import net.minecraft.server.v1_11_R1.EntitySpectralArrow;
import net.minecraft.server.v1_11_R1.ItemStack;
import net.minecraft.server.v1_11_R1.Items;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.craftbukkit.v1_11_R1.CraftServer;
import org.bukkit.craftbukkit.v1_11_R1.CraftWorld;
public class EntityFakeArrow_v1_11_R1 extends EntitySpectralArrow {
public EntityFakeArrow_v1_11_R1(CraftWorld craftWorld, Location location) {
super(craftWorld.getHandle());
bukkitEntity = new CraftFakeArrow_v1_11_R1((CraftServer) Bukkit.getServer(), this);
setPositionRotation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
world.addEntity(this);
}
@Override
public void A_() {
// Do nothing
}
@Override
protected ItemStack j() {
return new ItemStack(Items.ARROW);
}
@Override
public CraftFakeArrow_v1_11_R1 getBukkitEntity() {
return (CraftFakeArrow_v1_11_R1) bukkitEntity;
}
}