}
Minecart cart = blocks.rail.getWorld().spawn(location, type.toClass());
if(minecartDispenserPropel) {
BlockFace dir = SignUtil.getBack(blocks.sign);
Vector vel = new Vector(dir.getModX(), dir.getModY(), dir.getModZ());
cart.setVelocity(vel.normalize());
}
}
public enum CartType {
Minecart("Minecart", Minecart.class), StorageMinecart("Storage", StorageMinecart.class),