diff --git a/src/com/cnaude/chairs/vehiclearrow/nms175/NMSChairsArrow.java b/src/com/cnaude/chairs/vehiclearrow/nms175/NMSChairsArrow.java new file mode 100644 index 0000000..b2f6fb9 --- /dev/null +++ b/src/com/cnaude/chairs/vehiclearrow/nms175/NMSChairsArrow.java @@ -0,0 +1,43 @@ +package com.cnaude.chairs.vehiclearrow.nms175; + +import net.minecraft.server.v1_7_R2.EntityArrow; + +import org.bukkit.Location; +import org.bukkit.Server; +import org.bukkit.craftbukkit.v1_7_R2.CraftServer; +import org.bukkit.craftbukkit.v1_7_R2.CraftWorld; +import org.bukkit.entity.Arrow; + +import com.cnaude.chairs.vehiclearrow.NMSChairsArrowInterface; + +public class NMSChairsArrow extends EntityArrow implements NMSChairsArrowInterface { + + public NMSChairsArrow(CraftWorld cworld) { + super(cworld.getHandle()); + } + + @Override + public void h() { + } + + @Override + public void setBukkitEntity(Server server) { + bukkitEntity = new CraftChairsArrow((CraftServer) server, this); + } + + @Override + public Arrow getBukkitArrow() { + return (Arrow) bukkitEntity; + } + + @Override + public void setArrowLocation(Location location) { + setPositionRotation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch()); + } + + @Override + public void addToWorld() { + world.addEntity(this); + } + +}