Add 1.6.4 compact class
This commit is contained in:
parent
445077a81e
commit
ff38ead562
BIN
libs/bukkit.jar
Normal file
BIN
libs/bukkit.jar
Normal file
Binary file not shown.
BIN
libs/craftbukkit164.jar
Normal file
BIN
libs/craftbukkit164.jar
Normal file
Binary file not shown.
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user