Add 1.6.4 compact class

This commit is contained in:
Shevchik 2014-01-12 02:35:32 +04:00
parent 445077a81e
commit ff38ead562
4 changed files with 23 additions and 2 deletions

BIN
libs/bukkit.jar Normal file

Binary file not shown.

BIN
libs/craftbukkit164.jar Normal file

Binary file not shown.

View File

@ -13,7 +13,8 @@ public class GetVehicleArrowClass {
if (nmspackageversion.equals("v1_7_R1")) if (nmspackageversion.equals("v1_7_R1"))
{ {
return Class.forName(pkgname+"."+"nms172"+"."+vehiclearrowclassname); return Class.forName(pkgname+"."+"nms172"+"."+vehiclearrowclassname);
} else if (nmspackageversion.equals("v1_6_R3")) } else
if (nmspackageversion.equals("v1_6_R3"))
{ {
return Class.forName(pkgname+"."+"nms164"+"."+vehiclearrowclassname); return Class.forName(pkgname+"."+"nms164"+"."+vehiclearrowclassname);
} }

View File

@ -1,5 +1,25 @@
package com.cnaude.chairs.vehiclearrow.nms164; package com.cnaude.chairs.vehiclearrow.nms164;
public class VehicleArrow { import net.minecraft.server.v1_6_R3.EntityArrow;
import org.bukkit.craftbukkit.v1_6_R3.CraftServer;
import org.bukkit.craftbukkit.v1_6_R3.entity.CraftArrow;
import org.bukkit.entity.Vehicle;
public class VehicleArrow extends CraftArrow implements Vehicle {
public VehicleArrow(CraftServer server, EntityArrow entity)
{
super(server, entity);
}
@Override
public void remove()
{
if (this.getPassenger() == null)
{
super.remove();
}
}
} }