From a051e369a12c3b1113f338c8ecb3c24af48d1e6c Mon Sep 17 00:00:00 2001 From: Shevchik Date: Thu, 6 Mar 2014 22:18:56 +0400 Subject: [PATCH] Add 1.6.4 compact --- .../vehiclearrow/nms164/NMSChairsArrow.java | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/com/cnaude/chairs/vehiclearrow/nms164/NMSChairsArrow.java diff --git a/src/com/cnaude/chairs/vehiclearrow/nms164/NMSChairsArrow.java b/src/com/cnaude/chairs/vehiclearrow/nms164/NMSChairsArrow.java new file mode 100644 index 0000000..7dfd595 --- /dev/null +++ b/src/com/cnaude/chairs/vehiclearrow/nms164/NMSChairsArrow.java @@ -0,0 +1,43 @@ +package com.cnaude.chairs.vehiclearrow.nms164; + +import net.minecraft.server.v1_6_R3.EntityArrow; +import net.minecraft.server.v1_6_R3.World; + +import org.bukkit.Location; +import org.bukkit.Server; +import org.bukkit.craftbukkit.v1_6_R3.CraftServer; +import org.bukkit.entity.Arrow; + +import com.cnaude.chairs.vehiclearrow.NMSChairsArrowInterface; + +public class NMSChairsArrow extends EntityArrow implements NMSChairsArrowInterface { + + public NMSChairsArrow(World world) { + super(world); + } + + @Override + public void l_() { + } + + @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); + } + +}